1 #ifndef DPGAnalysis_SiStripTools_RunHistogramManager_H
2 #define DPGAnalysis_SiStripTools_RunHistogramManager_H
11 #include "TProfile2D.h"
33 const unsigned int nbinx=-1,
const double xmin = -1.,
const double xmax = -1.,
34 const unsigned int nbiny=-1,
const double ymin = -1.,
const double ymax = -1.):
57 sprintf(title,
"%s %s %d",
_title.c_str(),fillrun,irun);
66 LogDebug(
"TH1Fbooked") <<
"Histogram " <<
_name.c_str() <<
" booked " << _runpointers[irun];
92 const unsigned int nbinx=-1,
const double xmin = -1.,
const double xmax = -1.,
93 const unsigned int nbiny=-1,
const double ymin = -1.,
const double ymax = -1.):
117 sprintf(title,
"%s %s %d",
_title.c_str(),fillrun,irun);
129 LogDebug(
"TH2Fbooked") <<
"Histogram " <<
_name.c_str() <<
" booked " << _runpointers[irun];
156 const unsigned int nbinx=-1,
const double xmin = -1.,
const double xmax = -1.,
157 const unsigned int nbiny=-1,
const double ymin = -1.,
const double ymax = -1.):
181 sprintf(title,
"%s %s %d",
_title.c_str(),fillrun,irun);
193 LogDebug(
"TProfile2Dbooked") <<
"Histogram " <<
_name.c_str() <<
" booked " << _runpointers[irun];
223 TProfile**
makeTProfile(
const char* name,
const char* title,
const unsigned int nbinx,
const double xmin,
const double xmax);
224 TH2F**
makeTH2F(
const char* name,
const char* title,
const unsigned int nbinx,
const double xmin,
const double xmax,
const unsigned int nbiny,
const double ymin,
const double ymax);
225 TProfile2D**
makeTProfile2D(
const char* name,
const char* title,
const unsigned int nbinx,
const double xmin,
const double xmax,
const unsigned int nbiny,
const double ymin,
const double ymax);
229 void beginRun(
const unsigned int irun);
242 #endif // DPGAnalysis_SiStripTools_RunHistogramManager_H
HistoParams(TProfile2D **pointer, const std::string type, const std::string name, const std::string title, const unsigned int nbinx=-1, const double xmin=-1., const double xmax=-1., const unsigned int nbiny=-1, const double ymin=-1., const double ymax=-1.)
virtual void beginRun(const unsigned int irun, TFileDirectory &subrun, const char *fillrun)
HistoParams(T **pointer, const std::string type, const std::string name, const std::string title, const unsigned int nbinx=-1, const double xmin=-1., const double xmax=-1., const unsigned int nbiny=-1, const double ymin=-1., const double ymax=-1.)
RunHistogramManager(const bool fillHistograms=false)
std::map< unsigned int, T * > _runpointers
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
T * make(const Args &...args) const
make new ROOT object
std::vector< BaseHistoParams * > _histograms
HistoParams(TH2F **pointer, const std::string type, const std::string name, const std::string title, const unsigned int nbinx=-1, const double xmin=-1., const double xmax=-1., const unsigned int nbiny=-1, const double ymin=-1., const double ymax=-1.)
std::map< unsigned int, TH2F * > _runpointers
TProfile2D ** makeTProfile2D(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax, const unsigned int nbiny, const double ymin, const double ymax)
virtual ~BaseHistoParams()
void beginRun(const edm::Run &iRun)
std::map< unsigned int, TProfile2D * > _runpointers
TH2F ** makeTH2F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax, const unsigned int nbiny, const double ymin, const double ymax)
virtual void beginRun(const unsigned int irun, TFileDirectory &subrun, const char *fillrun)
virtual void beginRun(const unsigned int irun, TFileDirectory &subrun, const char *fillrun)=0
virtual void beginRun(const unsigned int irun, TFileDirectory &subrun, const char *fillrun)