21 std::string HistoPath ) :
22 fInputFile( InputFile ), fHistoName( HistoName ), fHistoPath( HistoPath ) {;}
25 return (
TH1*) fhData.GetObject();
29 return (
TH1*) fhData.GetObject();
36 stream <<
"\t \t InputFile: " << fInputFile
37 <<
"\t HistoName: " << fHistoName
38 <<
"\t HistoPath: " << fHistoPath
48 if( histData != NULL) {
55 fInputFile = OutputFileName;
56 fHistoName = histData->
GetName();
66 xml <<
" <Data HistoName=\"" << GetHistoName() <<
"\" "
67 <<
"InputFile=\"" << GetInputFile() <<
"\" "
68 <<
"HistoPath=\"" << GetHistoPath() <<
"\" ";
69 if(!GetName().empty()) {
70 xml <<
"Name=\"" << GetName() <<
"\" ";
72 xml <<
" /> " << std::endl << std::endl;
void Print(std::ostream &=std::cout)
void PrintXML(std::ostream &) const
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)