14 if (!m_modulePath.empty()) {
38 if (!titleX.empty()) {
39 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
41 if (!titleY.empty()) {
42 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
44 if (TString(option) !=
"") {
45 me->
getTH1()->SetOption(option);
62 if (!titleX.empty()) {
63 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
65 if (!titleY.empty()) {
66 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
68 if (TString(option) !=
"") {
69 me->
getTH1()->SetOption(option);
84 if (!titleX.empty()) {
85 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
87 if (!titleY.empty()) {
88 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
90 if (TString(option) !=
"") {
91 me->
getTH1()->SetOption(option);
108 if (!titleX.empty()) {
109 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
111 if (!titleY.empty()) {
112 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
114 if (TString(option) !=
"") {
115 me->
getTH1()->SetOption(option);
133 if (!titleX.empty()) {
134 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
136 if (!titleY.empty()) {
137 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
139 if (TString(option) !=
"") {
140 me->
getTH1()->SetOption(option);
159 if (!titleX.empty()) {
160 me->
getTH1()->GetXaxis()->SetTitle(titleX.c_str());
162 if (!titleY.empty()) {
163 me->
getTH1()->GetYaxis()->SetTitle(titleY.c_str());
165 if (TString(option) !=
"") {
166 me->
getTH1()->SetOption(option);
183 if (!titleX.empty()) {
184 me->
getTProfile()->GetXaxis()->SetTitle(titleX.c_str());
186 if (!titleY.empty()) {
187 me->
getTProfile()->GetYaxis()->SetTitle(titleY.c_str());
189 if (TString(option) !=
"") {
203 TH1D *h_temp =
dynamic_cast<TH1D *
>(num->
getTH1()->Clone(name2.c_str()));
205 h_temp->Divide(num->
getTH1(), denom->
getTH1(), 1, 1,
"b");
206 h_temp->GetXaxis()->SetTitle(titleX.c_str());
207 h_temp->GetYaxis()->SetTitle(titleY.c_str());
208 if (!title.empty()) {
209 h_temp->SetTitle(title.c_str());
227 TH2D *h_temp =
dynamic_cast<TH2D *
>(num->
getTH1()->Clone(name2.c_str()));
229 h_temp->Divide(num->
getTH1(), denom->
getTH1(), 1, 1,
"b");
230 h_temp->GetXaxis()->SetTitle(titleX.c_str());
231 h_temp->GetYaxis()->SetTitle(titleY.c_str());
232 if (!title.empty()) {
233 h_temp->SetTitle(title.c_str());
251 TProfile *p1_temp = me2d->
getTH2D()->ProfileX();
252 if (!title.empty()) {
253 p1_temp->SetTitle(title.c_str());
255 if (!titleX.empty()) {
256 p1_temp->GetXaxis()->SetTitle(titleX.c_str());
258 if (!titleY.empty()) {
259 p1_temp->GetYaxis()->SetTitle(titleY.c_str());
261 if (minimum != -1111) {
262 p1_temp->SetMinimum(minimum);
264 if (maximum != -1111) {
265 p1_temp->SetMaximum(maximum);
280 TProfile *p1_temp = me2d->
getTH2D()->ProfileY();
281 if (!title.empty()) {
282 p1_temp->SetTitle(title.c_str());
284 if (!titleX.empty()) {
285 p1_temp->GetXaxis()->SetTitle(titleX.c_str());
287 if (!titleY.empty()) {
288 p1_temp->GetYaxis()->SetTitle(titleY.c_str());
290 if (minimum != -1111) {
291 p1_temp->SetMinimum(minimum);
293 if (maximum != -1111) {
294 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")
void setCurrentFolder(std::string const &fullpath)
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")
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")