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 () override
 
- 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 () override
 
- 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 13 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 4 of file MESetDet0D.cc.

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

Referenced by clone().

8  : MESetEcal(_fullPath, _otype, _btype, _kind, 0, nullptr, nullptr) {
9  switch (kind_) {
11  break;
12  default:
13  throw_("Unsupported MonitorElement kind");
14  }
15  }
MonitorElement::Kind kind_
Definition: MESet.h:129
void throw_(std::string const &_message) const
Definition: MESet.h:122
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:10
ecaldqm::MESetDet0D::MESetDet0D ( MESetDet0D const &  _orig)

Definition at line 17 of file MESetDet0D.cc.

17 : MESetEcal(_orig) {}
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:10
ecaldqm::MESetDet0D::~MESetDet0D ( )
override

Definition at line 19 of file MESetDet0D.cc.

19 {}

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 21 of file MESetDet0D.cc.

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

21  {
23  if (!_path.empty())
24  path_ = _path;
25  MESet *copy(new MESetDet0D(*this));
26  path_ = path;
27  return copy;
28  }
def copy(args, dbName)
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:4
std::string path_
Definition: MESet.h:126
void ecaldqm::MESetDet0D::fill ( DetId const &  _id,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 30 of file MESetDet0D.cc.

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

Referenced by setBinContent().

30  {
31  if (!active_)
32  return;
33 
34  unsigned iME(binning::findPlotIndex(otype_, _id));
35  checkME_(iME);
36 
37  mes_[iME]->Fill(_value);
38  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet0D::fill ( EcalElectronicsId const &  _id,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 40 of file MESetDet0D.cc.

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

40  {
41  if (!active_)
42  return;
43 
44  unsigned iME(binning::findPlotIndex(otype_, _id));
45  checkME_(iME);
46 
47  mes_[iME]->Fill(_value);
48  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet0D::fill ( int  _dcctccid,
double  _value,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 50 of file MESetDet0D.cc.

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

50  {
51  if (!active_)
52  return;
53 
54  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
55  checkME_(iME);
56 
57  mes_[iME]->Fill(_value);
58  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet0D::getBinContent ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 60 of file MESetDet0D.cc.

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

Referenced by setBinContent().

60  {
61  if (!active_)
62  return 0.;
63 
64  unsigned iME(binning::findPlotIndex(otype_, _id));
65  checkME_(iME);
66 
67  return mes_[iME]->getFloatValue();
68  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet0D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 70 of file MESetDet0D.cc.

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

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

Reimplemented from ecaldqm::MESet.

Definition at line 80 of file MESetDet0D.cc.

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

80  {
81  if (!active_)
82  return 0.;
83 
84  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
85  checkME_(iME);
86 
87  return mes_[iME]->getFloatValue();
88  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet0D::reset ( double  _value = 0.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 90 of file MESetDet0D.cc.

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

Referenced by setBinContent().

90  {
91  unsigned nME(mes_.size());
92  for (unsigned iME(0); iME < nME; iME++)
93  mes_[iME]->Fill(_value);
94  }
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet0D::setBinContent ( DetId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 25 of file MESetDet0D.h.

References fill().

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

Reimplemented from ecaldqm::MESet.

Definition at line 26 of file MESetDet0D.h.

References fill().

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

Reimplemented from ecaldqm::MESet.

Definition at line 27 of file MESetDet0D.h.

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

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