37 if (!titleX.empty()) {
38 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
40 if (!titleY.empty()) {
41 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
43 if (TString(
option) !=
"") {
60 me->getTH1()->Sumw2();
61 if (!titleX.empty()) {
62 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
64 if (!titleY.empty()) {
65 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
67 if (TString(
option) !=
"") {
83 if (!titleX.empty()) {
84 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
86 if (!titleY.empty()) {
87 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
89 if (TString(
option) !=
"") {
106 me->getTH1()->Sumw2();
107 if (!titleX.empty()) {
108 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
110 if (!titleY.empty()) {
111 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
113 if (TString(
option) !=
"") {
132 if (!titleX.empty()) {
133 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
135 if (!titleY.empty()) {
136 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
138 if (TString(
option) !=
"") {
157 me->getTH1()->Sumw2();
158 if (!titleX.empty()) {
159 me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
161 if (!titleY.empty()) {
162 me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
164 if (TString(
option) !=
"") {
182 if (!titleX.empty()) {
183 me->getTProfile()->GetXaxis()->SetTitle(titleX.c_str());
185 if (!titleY.empty()) {
186 me->getTProfile()->GetYaxis()->SetTitle(titleY.c_str());
188 if (TString(
option) !=
"") {
189 me->getTProfile()->SetOption(
option);
202 TH1D *h_temp =
dynamic_cast<TH1D *
>(
num->getTH1()->Clone(
name2.c_str()));
204 h_temp->Divide(
num->getTH1(),
denom->getTH1(), 1, 1,
"b");
205 h_temp->GetXaxis()->SetTitle(titleX.c_str());
206 h_temp->GetYaxis()->SetTitle(titleY.c_str());
207 if (!
title.empty()) {
208 h_temp->SetTitle(
title.c_str());
226 TH2D *h_temp =
dynamic_cast<TH2D *
>(
num->getTH1()->Clone(
name2.c_str()));
228 h_temp->Divide(
num->getTH1(),
denom->getTH1(), 1, 1,
"b");
229 h_temp->GetXaxis()->SetTitle(titleX.c_str());
230 h_temp->GetYaxis()->SetTitle(titleY.c_str());
231 if (!
title.empty()) {
232 h_temp->SetTitle(
title.c_str());
250 TProfile *p1_temp = me2d->
getTH2D()->ProfileX();
251 if (!
title.empty()) {
252 p1_temp->SetTitle(
title.c_str());
254 if (!titleX.empty()) {
255 p1_temp->GetXaxis()->SetTitle(titleX.c_str());
257 if (!titleY.empty()) {
258 p1_temp->GetYaxis()->SetTitle(titleY.c_str());
260 if (minimum != -1111) {
261 p1_temp->SetMinimum(minimum);
263 if (maximum != -1111) {
264 p1_temp->SetMaximum(maximum);
279 TProfile *p1_temp = me2d->
getTH2D()->ProfileY();
280 if (!
title.empty()) {
281 p1_temp->SetTitle(
title.c_str());
283 if (!titleX.empty()) {
284 p1_temp->GetXaxis()->SetTitle(titleX.c_str());
286 if (!titleY.empty()) {
287 p1_temp->GetYaxis()->SetTitle(titleY.c_str());
289 if (minimum != -1111) {
290 p1_temp->SetMinimum(minimum);
292 if (maximum != -1111) {
293 p1_temp->SetMaximum(maximum);
MonitorElement * bookH2andDivide(DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
unsigned m_verbosityLevel
virtual void setCurrentFolder(std::string const &fullpath)
void prepareBooking(DQMStore::IBooker &)
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")
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 * 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")
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
std::string newName(const std::string &name)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
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 * 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")
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 * bookH1andDivide(DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
~ScoutingAnalyzerBase() override
MonitorElement * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
const std::string & getName() const
get name of ME
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 * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
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 * 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")