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::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > 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")
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
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::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 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 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 &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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 () 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
 
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)
 
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 21 of file ScoutingAnalyzerBase.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file ScoutingAnalyzerBase.cc.

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

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

Definition at line 19 of file ScoutingAnalyzerBase.cc.

19 {}

Member Function Documentation

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

Definition at line 26 of file ScoutingAnalyzerBase.h.

26 {}
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 31 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book1DD(), bookH1withSumw2(), MonitorElement::getTH1(), and newName().

Referenced by endLuminosityBlock(), and prepareBooking().

35  {
36  MonitorElement * me = iBooker.book1DD(newName(name),title,nchX,lowX,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) ; }
40  return me ;
41 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:130
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 132 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book1DD(), bookH2andDivide(), MonitorElement::getTH1(), m_verbosityLevel, newName(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by bookP1(), and endLuminosityBlock().

135  {
136  std::string name2 = newName(name) ;
137  TH1D * h_temp = dynamic_cast<TH1D*>(num->getTH1()->Clone(name2.c_str()) );
138  h_temp->Reset() ;
139  h_temp->Divide(num->getTH1(),denom->getTH1(),1,1,"b") ;
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()) ; }
143  if (m_verbosityLevel>0) { h_temp->Print() ; }
144  MonitorElement * me = iBooker.book1DD(name2,h_temp) ;
145  delete h_temp ;
146  return me ;
147 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:130
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 59 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book1D(), bookH1withSumw2BinArray(), MonitorElement::getTH1(), and newName().

Referenced by bookH1withSumw2(), and endLuminosityBlock().

63  {
64  MonitorElement * me = iBooker.book1D(newName(name),title,nchX,xbinsize) ;
65  //book1DD not implemented in DQMServices/Core/src/DQMStore.cc
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) ; }
69  return me ;
70 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
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 44 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book1DD(), bookH1BinArray(), gather_cfg::cout, MonitorElement::getTH1(), and newName().

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

48  {
49  std::cout << newName(name) << std::endl;
50  MonitorElement * me = iBooker.book1DD(newName(name),title,nchX,lowX,highX) ;
51  me->getTH1()->Sumw2() ;
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) ; }
55  return me ;
56 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:130
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 73 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book1D(), bookH2(), gather_cfg::cout, MonitorElement::getTH1(), and newName().

Referenced by bookH1BinArray(), DiJetVarAnalyzer::bookHistograms(), and endLuminosityBlock().

77  {
78  std::cout << newName(name) << std::endl;
79  MonitorElement * me = iBooker.book1D(newName(name),title,nchX,xbinsize) ;
80  //book1DD not implemented in DQMServices/Core/src/DQMStore.cc
81  me->getTH1()->Sumw2() ;
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) ; }
85  return me ;
86 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
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 89 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book2DD(), bookH2withSumw2(), MonitorElement::getTH1(), and newName().

Referenced by bookH1withSumw2BinArray(), and endLuminosityBlock().

94  {
95  MonitorElement * me = iBooker.book2DD(newName(name),title,nchX,lowX,highX,nchY,lowY,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) ; }
99  return me ;
100 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:148
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 150 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book2DD(), MonitorElement::getTH1(), m_verbosityLevel, newName(), profileX(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by bookH1andDivide(), and endLuminosityBlock().

153  {
154  std::string name2 = newName(name) ;
155  TH2D * h_temp = dynamic_cast<TH2D*>(num->getTH1()->Clone(name2.c_str()) );
156  h_temp->Reset() ;
157  h_temp->Divide(num->getTH1(),denom->getTH1(),1,1,"b") ;
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()) ; }
161  if (m_verbosityLevel>0) { h_temp->Print() ; }
162  MonitorElement * me = iBooker.book2DD(name2,h_temp) ;
163  delete h_temp ;
164  return me ;
165 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:148
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 103 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::book2DD(), bookP1(), MonitorElement::getTH1(), and newName().

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

108  {
109  MonitorElement * me = iBooker.book2DD(newName(name),title,nchX,lowX,highX,nchY,lowY,highY) ;
110  me->getTH1()->Sumw2() ;
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) ; }
114  return me ;
115 }
TH1 * getTH1() const
std::string newName(const std::string &name)
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:148
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 118 of file ScoutingAnalyzerBase.cc.

References bookH1andDivide(), DQMStore::IBooker::bookProfile(), MonitorElement::getTProfile(), and newName().

Referenced by bookH2withSumw2(), and endLuminosityBlock().

123  {
124  MonitorElement * me = iBooker.bookProfile(newName(name),title,nchX,lowX,highX,lowY,highY," ") ;
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) ; }
128  return me ;
129 }
TProfile * getTProfile() const
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
std::string newName(const std::string &name)
void ScoutingAnalyzerBase::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlineoverrideprotected
std::string ScoutingAnalyzerBase::newName ( const std::string &  name)
inlineprotected

Definition at line 21 of file ScoutingAnalyzerBase.cc.

References dataset::name.

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

21  {
22  // let's keep it in case we need massage
23  return name;
24 }
void ScoutingAnalyzerBase::prepareBooking ( DQMStore::IBooker iBooker)
protected
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 168 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::bookProfile(), MonitorElement::getName(), MonitorElement::getTH2D(), profileY(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by bookH2andDivide(), and endLuminosityBlock().

171  {
172  std::string name2 = me2d->getName()+"_pfx" ;
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) ; }
179  MonitorElement * me = iBooker.bookProfile(name2,p1_temp) ;
180  delete p1_temp ;
181  return me ;
182 }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
const std::string & getName() const
get name of ME
TH2D * getTH2D() const
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 185 of file ScoutingAnalyzerBase.cc.

References DQMStore::IBooker::bookProfile(), MonitorElement::getName(), MonitorElement::getTH2D(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by endLuminosityBlock(), and profileX().

188  {
189  std::string name2 = me2d->getName()+"_pfy" ;
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) ; }
196  MonitorElement * me = iBooker.bookProfile(name2,p1_temp) ;
197  delete p1_temp ;
198  return me ;
199 }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
const std::string & getName() const
get name of ME
TH2D * getTH2D() const

Member Data Documentation

std::string ScoutingAnalyzerBase::m_MEsPath
private

Definition at line 112 of file ScoutingAnalyzerBase.h.

Referenced by prepareBooking(), and ScoutingAnalyzerBase().

std::string ScoutingAnalyzerBase::m_modulePath
private

Definition at line 111 of file ScoutingAnalyzerBase.h.

Referenced by ScoutingAnalyzerBase().

unsigned ScoutingAnalyzerBase::m_verbosityLevel
private

Definition at line 113 of file ScoutingAnalyzerBase.h.

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