14 if (!m_modulePath.empty()) {
33 int nchX,
double lowX,
double highX,
37 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
38 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
39 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
46 int nchX,
double lowX,
double highX,
52 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
53 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
54 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
61 int nchX,
float *xbinsize,
66 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
67 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
68 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
75 int nchX,
float *xbinsize,
82 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
83 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
84 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
91 int nchX,
double lowX,
double highX,
92 int nchY,
double lowY,
double highY,
96 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
97 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
98 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
105 int nchX,
double lowX,
double highX,
106 int nchY,
double lowY,
double highY,
108 Option_t * option ) {
111 if (titleX!=
"") { me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str()) ; }
112 if (titleY!=
"") { me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str()) ; }
113 if (TString(option)!=
"") { me->
getTH1()->SetOption(option) ; }
120 int nchX,
double lowX,
double highX,
121 double lowY,
double highY,
123 Option_t * option ) {
125 if (titleX!=
"") { me->
getTProfile()->GetXaxis()->SetTitle(titleX.c_str()) ; }
126 if (titleY!=
"") { me->
getTProfile()->GetYaxis()->SetTitle(titleY.c_str()) ; }
127 if (TString(option)!=
"") { me->
getTProfile()->SetOption(option) ; }
137 TH1D * h_temp =
dynamic_cast<TH1D*
>(num->
getTH1()->Clone(name2.c_str()) );
140 h_temp->GetXaxis()->SetTitle(titleX.c_str()) ;
141 h_temp->GetYaxis()->SetTitle(titleY.c_str()) ;
142 if (title!=
"") { h_temp->SetTitle(title.c_str()) ; }
155 TH2D * h_temp =
dynamic_cast<TH2D*
>(num->
getTH1()->Clone(name2.c_str()) );
158 h_temp->GetXaxis()->SetTitle(titleX.c_str()) ;
159 h_temp->GetYaxis()->SetTitle(titleY.c_str()) ;
160 if (title!=
"") { h_temp->SetTitle(title.c_str()) ; }
171 Double_t minimum, Double_t maximum ) {
173 TProfile * p1_temp = me2d->
getTH2D()->ProfileX() ;
174 if (title!=
"") { p1_temp->SetTitle(title.c_str()) ; }
175 if (titleX!=
"") { p1_temp->GetXaxis()->SetTitle(titleX.c_str()) ; }
176 if (titleY!=
"") { p1_temp->GetYaxis()->SetTitle(titleY.c_str()) ; }
177 if (minimum!=-1111) { p1_temp->SetMinimum(minimum) ; }
178 if (maximum!=-1111) { p1_temp->SetMaximum(maximum) ; }
188 Double_t minimum, Double_t maximum ) {
190 TProfile * p1_temp = me2d->
getTH2D()->ProfileY() ;
191 if (title!=
"") { p1_temp->SetTitle(title.c_str()) ; }
192 if (titleX!=
"") { p1_temp->GetXaxis()->SetTitle(titleX.c_str()) ; }
193 if (titleY!=
"") { p1_temp->GetYaxis()->SetTitle(titleY.c_str()) ; }
194 if (minimum!=-1111) { p1_temp->SetMinimum(minimum) ; }
195 if (maximum!=-1111) { p1_temp->SetMaximum(maximum) ; }
TProfile * getTProfile() const
T getUntrackedParameter(std::string const &, T const &) const
unsigned m_verbosityLevel
MonitorElement * bookProfile(Args &&...args)
void prepareBooking(DQMStore::IBooker &)
MonitorElement * bookH2andDivide(DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
const std::string & getName() const
get name of ME
MonitorElement * bookH1andDivide(DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
MonitorElement * bookH1withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
std::string newName(const std::string &name)
MonitorElement * book1D(Args &&...args)
MonitorElement * bookP1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
MonitorElement * profileY(DQMStore::IBooker &, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
ScoutingAnalyzerBase(const edm::ParameterSet &conf)
MonitorElement * bookH1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
void setCurrentFolder(const std::string &fullpath)
MonitorElement * bookH2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
~ScoutingAnalyzerBase() override
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * book2DD(Args &&...args)
MonitorElement * bookH1withSumw2BinArray(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, float *xbinsize, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
MonitorElement * profileX(DQMStore::IBooker &, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
MonitorElement * book1DD(Args &&...args)
MonitorElement * bookH1BinArray(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, float *xbinsize, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")