CMS 3D CMS Logo

List of all members | Protected Member Functions | Private Attributes
ScoutingAnalyzerBase Class Reference

#include <ScoutingAnalyzerBase.h>

Inheritance diagram for ScoutingAnalyzerBase:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper 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 edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

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 
)
inlineoverrideprotected
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::dqmstoreimpl::DQMStore::IBooker::book1DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze().

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 }
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::dqmstoreimpl::DQMStore::IBooker::book1DD(), dqm::impl::MonitorElement::getTH1(), m_verbosityLevel, hlt_dqm_clientPB-live_cfg::me, hfnoseParametersInitialization_cfi::name2, newName(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

200  {
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 }
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::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze().

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)
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::dqmstoreimpl::DQMStore::IBooker::book1DD(), gather_cfg::cout, dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze(), 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 }
std::string newName(const std::string &name)
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::dqmstoreimpl::DQMStore::IBooker::book1D(), gather_cfg::cout, dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze(), and 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)
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::dqmstoreimpl::DQMStore::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze().

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)
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::dqmstoreimpl::DQMStore::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), m_verbosityLevel, hlt_dqm_clientPB-live_cfg::me, hfnoseParametersInitialization_cfi::name2, newName(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

224  {
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)
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::dqmstoreimpl::DQMStore::IBooker::book2DD(), dqm::impl::MonitorElement::getTH1(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze(), 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)
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::dqmstoreimpl::DQMStore::IBooker::bookProfile(), dqm::impl::MonitorElement::getTProfile(), hlt_dqm_clientPB-live_cfg::me, and newName().

Referenced by analyze().

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)
virtual TProfile * getTProfile() const
std::string ScoutingAnalyzerBase::newName ( const std::string &  name)
inlineprotected

Definition at line 20 of file ScoutingAnalyzerBase.cc.

References Skims_PA_cff::name.

Referenced by analyze(), 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::dqmstoreimpl::DQMStore::IBooker::bookProfile(), dqm::impl::MonitorElement::getName(), dqm::impl::MonitorElement::getTH2D(), hlt_dqm_clientPB-live_cfg::me, hfnoseParametersInitialization_cfi::name2, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

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
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::dqmstoreimpl::DQMStore::IBooker::bookProfile(), dqm::impl::MonitorElement::getName(), dqm::impl::MonitorElement::getTH2D(), hlt_dqm_clientPB-live_cfg::me, hfnoseParametersInitialization_cfi::name2, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

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

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().