test
CMS 3D CMS Logo

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

#include <ScoutingAnalyzerBase.h>

Inheritance diagram for ScoutingAnalyzerBase:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase AlphaTVarAnalyzer DiJetVarAnalyzer RazorVarAnalyzer ScoutingTestAnalyzer

Protected Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &c)
 
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")
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
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)
 
virtual ~ScoutingAnalyzerBase ()
 
- 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::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

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.size() != 0) {
16  }
17 }
T getUntrackedParameter(std::string const &, T const &) const
ScoutingAnalyzerBase::~ScoutingAnalyzerBase ( )
protectedvirtual

Definition at line 19 of file ScoutingAnalyzerBase.cc.

19 {}

Member Function Documentation

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

Implements edm::stream::EDAnalyzerBase.

Reimplemented in DiJetVarAnalyzer, RazorVarAnalyzer, ScoutingTestAnalyzer, and AlphaTVarAnalyzer.

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(), and MonitorElement::getTH1().

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:127
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(), MonitorElement::getTH1(), and AlCaHLTBitMon_QueryRunRegistry::string.

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:127
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(), and MonitorElement::getTH1().

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 }
std::string newName(const std::string &name)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1 * getTH1(void) const
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(), gather_cfg::cout, and MonitorElement::getTH1().

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

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
tuple cout
Definition: gather_cfg.py:145
MonitorElement * book1DD(Args &&...args)
Definition: DQMStore.h:127
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(), gather_cfg::cout, and MonitorElement::getTH1().

Referenced by DiJetVarAnalyzer::bookHistograms().

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 }
std::string newName(const std::string &name)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1 * getTH1(void) const
tuple cout
Definition: gather_cfg.py:145
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(), and MonitorElement::getTH1().

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:145
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(), and AlCaHLTBitMon_QueryRunRegistry::string.

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:145
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(), and MonitorElement::getTH1().

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

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 }
std::string newName(const std::string &name)
TH1 * getTH1(void) const
MonitorElement * book2DD(Args &&...args)
Definition: DQMStore.h:145
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 DQMStore::IBooker::bookProfile(), and MonitorElement::getTProfile().

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 }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
std::string newName(const std::string &name)
TProfile * getTProfile(void) const
virtual void ScoutingAnalyzerBase::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlineprotectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 27 of file ScoutingAnalyzerBase.h.

27 {}
std::string ScoutingAnalyzerBase::newName ( const std::string &  name)
inlineprotected

Definition at line 21 of file ScoutingAnalyzerBase.cc.

References mergeVDriftHistosByStation::name.

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(), and AlCaHLTBitMon_QueryRunRegistry::string.

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 }
const std::string & getName(void) const
get name of ME
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
TH2D * getTH2D(void) 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.

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 }
const std::string & getName(void) const
get name of ME
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
TH2D * getTH2D(void) 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 ScoutingAnalyzerBase().