11 #ifndef HISTFACTORY_DATA_H
12 #define HISTFACTORY_DATA_H
22 namespace HistFactory {
31 Data( std::string HistoName, std::string InputFile, std::string HistoPath=
"" );
33 std::string GetName() {
return fName; }
34 void SetName(
const std::string& name) { fName=name; }
36 void SetInputFile(
const std::string& InputFile) { fInputFile = InputFile; }
37 std::string GetInputFile() {
return fInputFile; }
39 void SetHistoName(
const std::string& HistoName) { fHistoName = HistoName; }
40 std::string GetHistoName() {
return fHistoName; }
42 void SetHistoPath(
const std::string& HistoPath) { fHistoPath = HistoPath; }
43 std::string GetHistoPath() {
return fHistoPath; }
45 void Print(std::ostream& = std::cout);
46 void PrintXML( std::ostream& );
47 void writeToFile( std::string FileName, std::string DirName );
50 void SetHisto(TH1* Hist) { fhData = Hist; fHistoName=Hist->GetName(); }
56 std::string fInputFile;
57 std::string fHistoName;
58 std::string fHistoPath;