1 #ifndef __FUN4ALLHISTOMANAGER_H
2 #define __FUN4ALLHISTOMANAGER_H
17 void Print(
const std::string &what =
"ALL")
const;
18 bool registerHisto(
const std::string &hname, TNamed *h1d,
const int replace = 0);
28 TNamed *
getHisto(
const std::string &hname)
const;
29 TNamed *
getHisto(
const unsigned int ihisto)
const;
30 const char *
getHistoName(
const unsigned int ihisto)
const;
31 unsigned int nHistos()
const {
return Histo.size();}
33 int dumpHistos(
const std::string &filename =
"",
const std::string &openmode=
"RECREATE");
37 std::string outfilename;
38 std::map<const std::string, TNamed*> Histo;
void setOutfileName(const std::string &filename)
virtual ~Fun4AllHistoManager()
unsigned int nHistos() const
int dumpHistos(const std::string &filename="", const std::string &openmode="RECREATE")
const char * getHistoName(const unsigned int ihisto) const
bool registerHisto(const std::string &hname, TNamed *h1d, const int replace=0)
Fun4AllHistoManager(const std::string &name)
TNamed * getHisto(const std::string &hname) const
int isHistoRegistered(const std::string &name) const
void Print(const std::string &what="ALL") const