CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::MESetDet0D Class Reference

#include <MESetDet0D.h>

Inheritance diagram for ecaldqm::MESetDet0D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

MESetclone (std::string const &="") const override
 
void fill (DetId const &, double, double=0., double=0.) override
 
void fill (EcalElectronicsId const &, double, double=0., double=0.) override
 
void fill (int, double, double=0., double=0.) override
 
double getBinContent (DetId const &, int=0) const override
 
double getBinContent (EcalElectronicsId const &, int=0) const override
 
double getBinContent (int, int=0) const override
 
 MESetDet0D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESetDet0D (MESetDet0D const &)
 
void reset (double=0., double=0., double=0.) override
 
void setBinContent (DetId const &_id, int, double _value) override
 
void setBinContent (EcalElectronicsId const &_id, int, double _value) override
 
void setBinContent (int _dcctccid, int, double _value) override
 
 ~MESetDet0D ()
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (int, double=1., double=1., double=1.) override
 
void fill (double, double=1., double=1.) override
 
virtual int findBin (DetId const &, double, double=0.) const
 
virtual int findBin (EcalElectronicsId const &, double, double=0.) const
 
virtual int findBin (int, double, double=0.) const
 
std::vector< std::string > generatePaths () const
 
double getBinContent (DetId const &, int) const override
 
double getBinContent (EcalElectronicsId const &, int) const override
 
double getBinContent (int, int) const override
 
double getBinEntries (DetId const &, int) const override
 
double getBinEntries (EcalElectronicsId const &, int) const override
 
double getBinEntries (int, int) const override
 
double getBinError (DetId const &, int) const override
 
double getBinError (EcalElectronicsId const &, int) const override
 
double getBinError (int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
 
 MESetEcal (MESetEcal const &)
 
MESetoperator= (MESet const &) override
 
bool retrieve (DQMStore::IGetter &, std::string *=0) const override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetEcal ()
 
- Public Member Functions inherited from ecaldqm::MESet
virtual const_iterator begin () const
 
virtual iterator begin ()
 
virtual const_iterator beginChannel () const
 
virtual iterator beginChannel ()
 
virtual void clear () const
 
virtual const_iterator end () const
 
virtual iterator end ()
 
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
virtual MonitorElement const * getME (unsigned _iME) const
 
virtual MonitorElementgetME (unsigned _iME)
 
binning::ObjectType getObjType () const
 
virtual std::string const & getPath () const
 
bool isActive () const
 
virtual bool maskMatches (DetId const &, uint32_t, StatusManager const *) const
 
 MESet ()
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void recoverStats ()
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
virtual void setBinContent (DetId const &, double)
 
virtual void setBinContent (EcalElectronicsId const &, double)
 
virtual void setBinContent (int, double)
 
virtual void setBinEntries (DetId const &, double)
 
virtual void setBinEntries (EcalElectronicsId const &, double)
 
virtual void setBinEntries (int, double)
 
virtual void setBinError (DetId const &, double)
 
virtual void setBinError (EcalElectronicsId const &, double)
 
virtual void setBinError (int, double)
 
void setLumiFlag ()
 
virtual void softReset ()
 
virtual ~MESet ()
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef std::map< std::string, std::string > PathReplacements
 
- Protected Member Functions inherited from ecaldqm::MESet
virtual void checkME_ (unsigned _iME) const
 
virtual void fill_ (unsigned, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
virtual void fill_ (unsigned, double, double, double)
 
void throw_ (std::string const &_message) const
 
- Protected Attributes inherited from ecaldqm::MESetEcal
unsigned logicalDimensions_
 
binning::AxisSpecs const * xaxis_
 
binning::AxisSpecs const * yaxis_
 
binning::AxisSpecs const * zaxis_
 
- Protected Attributes inherited from ecaldqm::MESet
bool active_
 
bool batchMode_
 
binning::BinningType btype_
 
MonitorElement::Kind kind_
 
bool lumiFlag_
 
std::vector< MonitorElement * > mes_
 
binning::ObjectType otype_
 
std::string path_
 

Detailed Description

Definition at line 14 of file MESetDet0D.h.

Constructor & Destructor Documentation

ecaldqm::MESetDet0D::MESetDet0D ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind 
)

Definition at line 5 of file MESetDet0D.cc.

References MonitorElement::DQM_KIND_REAL, ecaldqm::MESet::kind_, and ecaldqm::MESet::throw_().

Referenced by clone().

5  :
6  MESetEcal(_fullPath, _otype, _btype, _kind, 0, 0, 0)
7  {
8  switch(kind_){
10  break;
11  default:
12  throw_("Unsupported MonitorElement kind");
13  }
14  }
MonitorElement::Kind kind_
Definition: MESet.h:134
void throw_(std::string const &_message) const
Definition: MESet.h:124
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetEcal.cc:11
ecaldqm::MESetDet0D::MESetDet0D ( MESetDet0D const &  _orig)

Definition at line 16 of file MESetDet0D.cc.

16  :
17  MESetEcal(_orig)
18  {
19  }
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetEcal.cc:11
ecaldqm::MESetDet0D::~MESetDet0D ( )

Definition at line 21 of file MESetDet0D.cc.

22  {
23  }

Member Function Documentation

MESet * ecaldqm::MESetDet0D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 26 of file MESetDet0D.cc.

References popcon2dropbox::copy(), MESetDet0D(), callgraph::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

27  {
29  if(_path != "") path_ = _path;
30  MESet* copy(new MESetDet0D(*this));
31  path_ = path;
32  return copy;
33  }
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:5
std::string path_
Definition: MESet.h:131
void ecaldqm::MESetDet0D::fill ( DetId const &  _id,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 36 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

Referenced by setBinContent().

37  {
38  if(!active_) return;
39 
40  unsigned iME(binning::findPlotIndex(otype_, _id));
41  checkME_(iME);
42 
43  mes_[iME]->Fill(_value);
44  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
void ecaldqm::MESetDet0D::fill ( EcalElectronicsId const &  _id,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 47 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

48  {
49  if(!active_) return;
50 
51  unsigned iME(binning::findPlotIndex(otype_, _id));
52  checkME_(iME);
53 
54  mes_[iME]->Fill(_value);
55  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
void ecaldqm::MESetDet0D::fill ( int  _dcctccid,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 58 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

59  {
60  if(!active_) return;
61 
62  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
63  checkME_(iME);
64 
65  mes_[iME]->Fill(_value);
66  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet0D::getBinContent ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 69 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

Referenced by setBinContent().

70  {
71  if(!active_) return 0.;
72 
73  unsigned iME(binning::findPlotIndex(otype_, _id));
74  checkME_(iME);
75 
76  return mes_[iME]->getFloatValue();
77  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
double ecaldqm::MESetDet0D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 80 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

81  {
82  if(!active_) return 0.;
83 
84  unsigned iME(binning::findPlotIndex(otype_, _id));
85  checkME_(iME);
86 
87  return mes_[iME]->getFloatValue();
88  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
double ecaldqm::MESetDet0D::getBinContent ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 91 of file MESetDet0D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

92  {
93  if(!active_) return 0.;
94 
95  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
96  checkME_(iME);
97 
98  return mes_[iME]->getFloatValue();
99  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet0D::reset ( double  _value = 0.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 102 of file MESetDet0D.cc.

References HcalObjRepresent::Fill(), and ecaldqm::MESet::mes_.

Referenced by setBinContent().

103  {
104  unsigned nME(mes_.size());
105  for(unsigned iME(0); iME < nME; iME++)
106  mes_[iME]->Fill(_value);
107  }
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void ecaldqm::MESetDet0D::setBinContent ( DetId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 27 of file MESetDet0D.h.

References fill().

27 { fill(_id, _value); }
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:36
void ecaldqm::MESetDet0D::setBinContent ( EcalElectronicsId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 28 of file MESetDet0D.h.

References fill().

28 { fill(_id, _value); }
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:36
void ecaldqm::MESetDet0D::setBinContent ( int  _dcctccid,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 29 of file MESetDet0D.h.

References fill(), getBinContent(), and reset().

29 { fill(_dcctccid, _value); }
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:36