9 #include "TProfile2D.h" 24 : _fillHistograms(fillHistograms),
26 _conditionsInRunToken(iC.consumes<
edm::ConditionsInRunBlock,
edm::
InRun>(
edm::
InputTag(
"conditionsInEdm"))) {}
34 const char*
name,
const char*
title,
const unsigned int nbinx,
const double xmin,
const double xmax) {
35 TH1F** pointer =
new TH1F*(
nullptr);
40 LogDebug(
"TH1Fmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked:" <<
_histograms.size();
49 LogDebug(
"Destructor") <<
"All BaseHistoParams destroyed ";
53 const char*
name,
const char*
title,
const unsigned int nbinx,
const double xmin,
const double xmax) {
54 TProfile** pointer =
new TProfile*(
nullptr);
59 LogDebug(
"TProfilemade") <<
"Histogram " << name <<
" " << title <<
" pre-booked:" <<
_histograms.size();
66 const unsigned int nbinx,
69 const unsigned int nbiny,
72 TH2F** pointer =
new TH2F*(
nullptr);
77 LogDebug(
"TH2Fmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked :" <<
_histograms.size();
84 const unsigned int nbinx,
87 const unsigned int nbiny,
90 TProfile2D** pointer =
new TProfile2D*(
nullptr);
96 LogDebug(
"TProfile2Dmade") <<
"Histogram " << name <<
" " << title <<
" pre-booked :" <<
_histograms.size();
110 unsigned int fillnum = 0;
133 sprintf(fillrun,
"%s",
"run");
135 sprintf(fillrun,
"%s",
"fill");
139 sprintf(dirname,
"%s_%d", fillrun, irun);
144 for (
unsigned int ih = 0; ih <
_histograms.size(); ++ih) {
edm::EDGetTokenT< edm::ConditionsInRunBlock > _conditionsInRunToken
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)