CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Protected Member Functions | Private Attributes
ScoutingAnalyzerBase Class Reference

#include <ScoutingAnalyzerBase.h>

Inheritance diagram for ScoutingAnalyzerBase:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator > AlphaTVarAnalyzer DiJetVarAnalyzer RazorVarAnalyzer ScoutingTestAnalyzer

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
MonitorElementbookH1 (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")
 
MonitorElementbookH1andDivide (DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH1BinArray (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")
 
MonitorElementbookH1withSumw2 (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")
 
MonitorElementbookH1withSumw2BinArray (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")
 
MonitorElementbookH2 (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")
 
MonitorElementbookH2andDivide (DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH2withSumw2 (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")
 
MonitorElementbookP1 (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")
 
std::string newName (const std::string &name)
 
void prepareBooking (DQMStore::IBooker &)
 
MonitorElementprofileX (DQMStore::IBooker &, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
 
MonitorElementprofileY (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)
 
 ~ScoutingAnalyzerBase () override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Attributes

std::string m_MEsPath
 
std::string m_modulePath
 
unsigned m_verbosityLevel
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 19 of file ScoutingAnalyzerBase.h.

Constructor & Destructor Documentation

ScoutingAnalyzerBase::ScoutingAnalyzerBase ( const edm::ParameterSet conf)
explicitprotected

Definition at line 9 of file ScoutingAnalyzerBase.cc.

References edm::ParameterSet::getUntrackedParameter(), m_MEsPath, m_modulePath, m_verbosityLevel, and AlCaHLTBitMon_QueryRunRegistry::string.

9  {
10  m_MEsPath = conf.getUntrackedParameter<std::string>("rootPath", "DataScouting");
11  m_modulePath = conf.getUntrackedParameter<std::string>("modulePath", "DataScouting");
12  m_verbosityLevel = conf.getUntrackedParameter<unsigned int>("verbosityLevel", 0);
13  if (!m_modulePath.empty()) {
14  m_MEsPath += "/" + m_modulePath;
15  }
16 }
T getUntrackedParameter(std::string const &, T const &) const
ScoutingAnalyzerBase::~ScoutingAnalyzerBase ( )
overrideprotected

Definition at line 18 of file ScoutingAnalyzerBase.cc.

18 {}

Member Function Documentation

void ScoutingAnalyzerBase::analyze ( const edm::Event e,
const edm::EventSetup c 
)
inlineoverrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Reimplemented in DiJetVarAnalyzer, RazorVarAnalyzer, ScoutingTestAnalyzer, and AlphaTVarAnalyzer.

Definition at line 25 of file ScoutingAnalyzerBase.h.

25 {}
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH1 ( DQMStore::IBooker 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" 
)
protected

Definition at line 27 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book1DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

35  {
36  MonitorElement *me = iBooker.book1DD(newName(name), title, nchX, lowX, highX);
37  if (!titleX.empty()) {
38  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
39  }
40  if (!titleY.empty()) {
41  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
42  }
43  if (TString(option) != "") {
44  me->getTH1()->SetOption(option);
45  }
46  return me;
47 }
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
std::string newName(const std::string &name)
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH1andDivide ( DQMStore::IBooker iBooker,
const std::string &  name,
MonitorElement num,
MonitorElement denom,
const std::string &  titleX,
const std::string &  titleY,
const std::string &  title = "" 
)
protected

Definition at line 194 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book1DD(), dqm::impl::MonitorElement::getTH1(), m_verbosityLevel, hlt_dqm_clientPB-live_cfg::me, newName(), and AlCaHLTBitMon_QueryRunRegistry::string.

200  {
201  std::string name2 = newName(name);
202  TH1D *h_temp = dynamic_cast<TH1D *>(num->getTH1()->Clone(name2.c_str()));
203  h_temp->Reset();
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());
209  }
210  if (m_verbosityLevel > 0) {
211  h_temp->Print();
212  }
213  MonitorElement *me = iBooker.book1DD(name2, h_temp);
214  delete h_temp;
215  return me;
216 }
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
std::string newName(const std::string &name)
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH1BinArray ( DQMStore::IBooker 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" 
)
protected

Definition at line 73 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book1D(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

80  {
81  MonitorElement *me = iBooker.book1D(newName(name), title, nchX, xbinsize);
82  // book1DD not implemented in DQMServices/Core/src/DQMStore.cc
83  if (!titleX.empty()) {
84  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
85  }
86  if (!titleY.empty()) {
87  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
88  }
89  if (TString(option) != "") {
90  me->getTH1()->SetOption(option);
91  }
92  return me;
93 }
std::string newName(const std::string &name)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH1withSumw2 ( DQMStore::IBooker 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" 
)
protected

Definition at line 49 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book1DD(), gather_cfg::cout, dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by AlphaTVarAnalyzer::bookHistograms(), ScoutingTestAnalyzer::bookHistograms(), and DiJetVarAnalyzer::bookHistograms().

57  {
58  std::cout << newName(name) << std::endl;
59  MonitorElement *me = iBooker.book1DD(newName(name), title, nchX, lowX, highX);
60  me->getTH1()->Sumw2();
61  if (!titleX.empty()) {
62  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
63  }
64  if (!titleY.empty()) {
65  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
66  }
67  if (TString(option) != "") {
68  me->getTH1()->SetOption(option);
69  }
70  return me;
71 }
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
std::string newName(const std::string &name)
tuple cout
Definition: gather_cfg.py:144
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH1withSumw2BinArray ( DQMStore::IBooker 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" 
)
protected

Definition at line 95 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book1D(), gather_cfg::cout, dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by DiJetVarAnalyzer::bookHistograms().

102  {
103  std::cout << newName(name) << std::endl;
104  MonitorElement *me = iBooker.book1D(newName(name), title, nchX, xbinsize);
105  // book1DD not implemented in DQMServices/Core/src/DQMStore.cc
106  me->getTH1()->Sumw2();
107  if (!titleX.empty()) {
108  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
109  }
110  if (!titleY.empty()) {
111  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
112  }
113  if (TString(option) != "") {
114  me->getTH1()->SetOption(option);
115  }
116  return me;
117 }
std::string newName(const std::string &name)
tuple cout
Definition: gather_cfg.py:144
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH2 ( DQMStore::IBooker 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" 
)
protected

Definition at line 119 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

130  {
131  MonitorElement *me = iBooker.book2DD(newName(name), title, nchX, lowX, highX, nchY, lowY, highY);
132  if (!titleX.empty()) {
133  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
134  }
135  if (!titleY.empty()) {
136  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
137  }
138  if (TString(option) != "") {
139  me->getTH1()->SetOption(option);
140  }
141  return me;
142 }
std::string newName(const std::string &name)
MonitorElement * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:261
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH2andDivide ( DQMStore::IBooker iBooker,
const std::string &  name,
MonitorElement num,
MonitorElement denom,
const std::string &  titleX,
const std::string &  titleY,
const std::string &  title = "" 
)
protected

Definition at line 218 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), m_verbosityLevel, hlt_dqm_clientPB-live_cfg::me, newName(), and AlCaHLTBitMon_QueryRunRegistry::string.

224  {
225  std::string name2 = newName(name);
226  TH2D *h_temp = dynamic_cast<TH2D *>(num->getTH1()->Clone(name2.c_str()));
227  h_temp->Reset();
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());
233  }
234  if (m_verbosityLevel > 0) {
235  h_temp->Print();
236  }
237  MonitorElement *me = iBooker.book2DD(name2, h_temp);
238  delete h_temp;
239  return me;
240 }
std::string newName(const std::string &name)
MonitorElement * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:261
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookH2withSumw2 ( DQMStore::IBooker 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" 
)
protected

Definition at line 144 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by AlphaTVarAnalyzer::bookHistograms(), ScoutingTestAnalyzer::bookHistograms(), RazorVarAnalyzer::bookHistograms(), and DiJetVarAnalyzer::bookHistograms().

155  {
156  MonitorElement *me = iBooker.book2DD(newName(name), title, nchX, lowX, highX, nchY, lowY, highY);
157  me->getTH1()->Sumw2();
158  if (!titleX.empty()) {
159  me->getTH1()->GetXaxis()->SetTitle(titleX.c_str());
160  }
161  if (!titleY.empty()) {
162  me->getTH1()->GetYaxis()->SetTitle(titleY.c_str());
163  }
164  if (TString(option) != "") {
165  me->getTH1()->SetOption(option);
166  }
167  return me;
168 }
std::string newName(const std::string &name)
MonitorElement * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:261
virtual TH1 * getTH1() const
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::bookP1 ( DQMStore::IBooker 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" 
)
protected

Definition at line 170 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::bookProfile(), dqm::impl::MonitorElement::getTProfile(), hlt_dqm_clientPB-live_cfg::me, and newName().

180  {
181  MonitorElement *me = iBooker.bookProfile(newName(name), title, nchX, lowX, highX, lowY, highY, " ");
182  if (!titleX.empty()) {
183  me->getTProfile()->GetXaxis()->SetTitle(titleX.c_str());
184  }
185  if (!titleY.empty()) {
186  me->getTProfile()->GetYaxis()->SetTitle(titleY.c_str());
187  }
188  if (TString(option) != "") {
189  me->getTProfile()->SetOption(option);
190  }
191  return me;
192 }
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())
Definition: DQMStore.h:322
virtual TProfile * getTProfile() const
std::string ScoutingAnalyzerBase::newName ( const std::string &  name)
inlineprotected

Definition at line 20 of file ScoutingAnalyzerBase.cc.

References mergeVDriftHistosByStation::name.

Referenced by bookH1(), bookH1andDivide(), bookH1BinArray(), bookH1withSumw2(), bookH1withSumw2BinArray(), bookH2(), bookH2andDivide(), bookH2withSumw2(), and bookP1().

20  {
21  // let's keep it in case we need massage
22  return name;
23 }
void ScoutingAnalyzerBase::prepareBooking ( DQMStore::IBooker iBooker)
protected
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::profileX ( DQMStore::IBooker iBooker,
MonitorElement me2d,
const std::string &  title = "",
const std::string &  titleX = "",
const std::string &  titleY = "",
Double_t  minimum = -1111,
Double_t  maximum = -1111 
)
protected

Definition at line 242 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::bookProfile(), dqm::impl::MonitorElement::getName(), dqm::impl::MonitorElement::getTH2D(), hlt_dqm_clientPB-live_cfg::me, and AlCaHLTBitMon_QueryRunRegistry::string.

248  {
249  std::string name2 = me2d->getName() + "_pfx";
250  TProfile *p1_temp = me2d->getTH2D()->ProfileX();
251  if (!title.empty()) {
252  p1_temp->SetTitle(title.c_str());
253  }
254  if (!titleX.empty()) {
255  p1_temp->GetXaxis()->SetTitle(titleX.c_str());
256  }
257  if (!titleY.empty()) {
258  p1_temp->GetYaxis()->SetTitle(titleY.c_str());
259  }
260  if (minimum != -1111) {
261  p1_temp->SetMinimum(minimum);
262  }
263  if (maximum != -1111) {
264  p1_temp->SetMaximum(maximum);
265  }
266  MonitorElement *me = iBooker.bookProfile(name2, p1_temp);
267  delete p1_temp;
268  return me;
269 }
virtual TH2D * getTH2D() const
const std::string & getName() const
get name of ME
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())
Definition: DQMStore.h:322
ScoutingAnalyzerBase::MonitorElement * ScoutingAnalyzerBase::profileY ( DQMStore::IBooker iBooker,
MonitorElement me2d,
const std::string &  title = "",
const std::string &  titleX = "",
const std::string &  titleY = "",
Double_t  minimum = -1111,
Double_t  maximum = -1111 
)
protected

Definition at line 271 of file ScoutingAnalyzerBase.cc.

References dqm::implementation::IBooker::bookProfile(), dqm::impl::MonitorElement::getName(), dqm::impl::MonitorElement::getTH2D(), hlt_dqm_clientPB-live_cfg::me, and AlCaHLTBitMon_QueryRunRegistry::string.

277  {
278  std::string name2 = me2d->getName() + "_pfy";
279  TProfile *p1_temp = me2d->getTH2D()->ProfileY();
280  if (!title.empty()) {
281  p1_temp->SetTitle(title.c_str());
282  }
283  if (!titleX.empty()) {
284  p1_temp->GetXaxis()->SetTitle(titleX.c_str());
285  }
286  if (!titleY.empty()) {
287  p1_temp->GetYaxis()->SetTitle(titleY.c_str());
288  }
289  if (minimum != -1111) {
290  p1_temp->SetMinimum(minimum);
291  }
292  if (maximum != -1111) {
293  p1_temp->SetMaximum(maximum);
294  }
295  MonitorElement *me = iBooker.bookProfile(name2, p1_temp);
296  delete p1_temp;
297  return me;
298 }
virtual TH2D * getTH2D() const
const std::string & getName() const
get name of ME
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())
Definition: DQMStore.h:322

Member Data Documentation

std::string ScoutingAnalyzerBase::m_MEsPath
private

Definition at line 142 of file ScoutingAnalyzerBase.h.

Referenced by prepareBooking(), and ScoutingAnalyzerBase().

std::string ScoutingAnalyzerBase::m_modulePath
private

Definition at line 141 of file ScoutingAnalyzerBase.h.

Referenced by ScoutingAnalyzerBase().

unsigned ScoutingAnalyzerBase::m_verbosityLevel
private

Definition at line 143 of file ScoutingAnalyzerBase.h.

Referenced by bookH1andDivide(), bookH2andDivide(), and ScoutingAnalyzerBase().