9 #include "TProfile2D.h" 26 _fillHistograms(fillHistograms),
28 _conditionsInRunToken(iC.consumes<
edm::ConditionsInRunBlock,
edm::
InRun>(
edm::InputTag(
"conditionsInEdm"))) {}
37 TH1F** pointer =
new TH1F*(0);
42 LogDebug(
"TH1Fmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked:" <<
_histograms.size();
55 LogDebug(
"Destructor") <<
"All BaseHistoParams destroyed ";
61 TProfile** pointer =
new TProfile*(0);
66 LogDebug(
"TProfilemade") <<
"Histogram " << name <<
" " << title <<
" pre-booked:" <<
_histograms.size();
74 TH2F** pointer =
new TH2F*(0);
79 LogDebug(
"TH2Fmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked :" <<
_histograms.size();
86 TProfile2D** pointer =
new TProfile2D*(0);
91 LogDebug(
"TProfile2Dmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked :" <<
_histograms.size();
134 sprintf(fillrun,
"%s",
"run");
137 sprintf(fillrun,
"%s",
"fill");
141 sprintf(dirname,
"%s_%d",fillrun,irun);
146 for(
unsigned int ih=0;ih<
_histograms.size();++ih) {
edm::EDGetTokenT< edm::ConditionsInRunBlock > _conditionsInRunToken
boost::uint32_t lhcFillNumber
TFileDirectory & tFileDirectory()
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
RunHistogramManager(edm::ConsumesCollector &&iC, const bool fillHistograms=false)
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
std::vector< BaseHistoParams * > _histograms
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
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)
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)