25 std::string HistoPath ) :
26 fInputFile( InputFile ), fHistoName( HistoName ), fHistoPath( HistoPath ) {;}
29 return (
TH1*) fhData.GetObject();
33 return (
TH1*) fhData.GetObject();
40 stream <<
"\t \t InputFile: " << fInputFile
41 <<
"\t HistoName: " << fHistoName
42 <<
"\t HistoPath: " << fHistoPath
52 if( histData != NULL) {
59 fInputFile = OutputFileName;
60 fHistoName = histData->
GetName();
70 xml <<
" <Data HistoName=\"" << GetHistoName() <<
"\" "
71 <<
"InputFile=\"" << GetInputFile() <<
"\" "
72 <<
"HistoPath=\"" << GetHistoPath() <<
"\" "
73 <<
" /> " << std::endl << std::endl;
void PrintXML(std::ostream &)
void Print(std::ostream &=std::cout)
void writeToFile(std::string FileName, std::string DirName)
TH1 is the base class of all histogram classes in ROOT.
virtual const char * GetName() const
Returns name of object.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
TH1 * GetHisto(TFile *inFile, const std::string name)