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 (EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
 
void fill (EcalDQMSetupObjects const, EcalElectronicsId const &, double, double=0., double=0.) override
 
void fill (EcalDQMSetupObjects const, int, double, double=0., double=0.) override
 
double getBinContent (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinContent (EcalDQMSetupObjects const, int, int=0) const override
 
 MESetDet0D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESetDet0D (MESetDet0D const &)
 
void reset (EcalElectronicsMapping const *, double=0., double=0., double=0.) override
 
void setBinContent (EcalDQMSetupObjects const edso, DetId const &_id, int, double _value) override
 
void setBinContent (EcalDQMSetupObjects const edso, EcalElectronicsId const &_id, int, double _value) override
 
void setBinContent (EcalDQMSetupObjects const edso, int _dcctccid, int, double _value) override
 
 ~MESetDet0D () override
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &, EcalElectronicsMapping const *) override
 
MESetclone (std::string const &="") const override
 
void fill (EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, int, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, double, double=1., double=1.) override
 
virtual int findBin (EcalDQMSetupObjects const, DetId const &, double, double=0.) const
 
virtual int findBin (EcalDQMSetupObjects const, EcalElectronicsId const &, double, double=0.) const
 
virtual int findBin (EcalDQMSetupObjects const, int, double, double=0.) const
 
std::vector< std::string > generatePaths (EcalElectronicsMapping const *) const
 
double getBinContent (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinContent (EcalDQMSetupObjects const, int, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, int, int) const override
 
double getBinError (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinError (EcalDQMSetupObjects const, int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
 
 MESetEcal (MESetEcal const &)
 
MESetoperator= (MESet const &) override
 
bool retrieve (EcalElectronicsMapping const *, DQMStore::IGetter &, std::string *=nullptr) const override
 
void setBinContent (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinContent (EcalDQMSetupObjects const, int, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, int, int, double) override
 
void setBinError (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinError (EcalDQMSetupObjects const, int, int, double) override
 
 ~MESetEcal () override
 
- Public Member Functions inherited from ecaldqm::MESet
virtual const_iterator begin (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator begin (EcalElectronicsMapping const *electronicsMap)
 
virtual const_iterator beginChannel (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator beginChannel (EcalElectronicsMapping const *electronicsMap)
 
virtual void clear () const
 
virtual const_iterator end (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator end (EcalElectronicsMapping const *electronicsMap)
 
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 *, EcalTrigTowerConstituentsMap const *) const
 
 MESet ()
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
virtual void setBinContent (EcalDQMSetupObjects const, DetId const &, double)
 
virtual void setBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, double)
 
virtual void setBinContent (EcalDQMSetupObjects const, int, double)
 
virtual void setBinEntries (EcalDQMSetupObjects const, DetId const &, double)
 
virtual void setBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, double)
 
virtual void setBinEntries (EcalDQMSetupObjects const, int, double)
 
virtual void setBinError (EcalDQMSetupObjects const, DetId const &, double)
 
virtual void setBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, double)
 
virtual void setBinError (EcalDQMSetupObjects const, int, double)
 
void setLumiFlag ()
 
virtual ~MESet ()
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
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

◆ MESetDet0D() [1/2]

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 ecaldqm::MESet::kind_, MonitorElementData::REAL, 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:158
void throw_(std::string const &_message) const
Definition: MESet.h:149
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
Definition: MESetEcal.cc:10

◆ MESetDet0D() [2/2]

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 *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
Definition: MESetEcal.cc:10

◆ ~MESetDet0D()

ecaldqm::MESetDet0D::~MESetDet0D ( )
override

Definition at line 19 of file MESetDet0D.cc.

19 {}

Member Function Documentation

◆ clone()

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

Reimplemented from ecaldqm::MESet.

Definition at line 21 of file MESetDet0D.cc.

References filterCSVwithJSON::copy, MESetDet0D(), EnsembleCalibrationLA_cfg::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  }
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:4
std::string path_
Definition: MESet.h:155

◆ fill() [1/3]

void ecaldqm::MESetDet0D::fill ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, 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(edso.electronicsMap, otype_, _id));
35  checkME_(iME);
36 
37  mes_[iME]->Fill(_value);
38  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ fill() [2/3]

void ecaldqm::MESetDet0D::fill ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

40  {
41  if (!active_)
42  return;
43 
44  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
45  checkME_(iME);
46 
47  mes_[iME]->Fill(_value);
48  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ fill() [3/3]

void ecaldqm::MESetDet0D::fill ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

50  {
51  if (!active_)
52  return;
53 
54  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
55  checkME_(iME);
56 
57  mes_[iME]->Fill(_value);
58  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
binning::BinningType btype_
Definition: MESet.h:157
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ getBinContent() [1/3]

double ecaldqm::MESetDet0D::getBinContent ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

60  {
61  if (!active_)
62  return 0.;
63 
64  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
65  checkME_(iME);
66 
67  return mes_[iME]->getFloatValue();
68  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ getBinContent() [2/3]

double ecaldqm::MESetDet0D::getBinContent ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

70  {
71  if (!active_)
72  return 0.;
73 
74  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
75  checkME_(iME);
76 
77  return mes_[iME]->getFloatValue();
78  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ getBinContent() [3/3]

double ecaldqm::MESetDet0D::getBinContent ( EcalDQMSetupObjects const  edso,
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::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

80  {
81  if (!active_)
82  return 0.;
83 
84  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
85  checkME_(iME);
86 
87  return mes_[iME]->getFloatValue();
88  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:163
binning::ObjectType otype_
Definition: MESet.h:156
binning::BinningType btype_
Definition: MESet.h:157
std::vector< MonitorElement * > mes_
Definition: MESet.h:153

◆ reset()

void ecaldqm::MESetDet0D::reset ( EcalElectronicsMapping const *  electronicsMap,
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_.

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:153

◆ setBinContent() [1/3]

void ecaldqm::MESetDet0D::setBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 25 of file MESetDet0D.h.

References fill().

25  {
26  fill(edso, _id, _value);
27  }
void fill(EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30

◆ setBinContent() [2/3]

void ecaldqm::MESetDet0D::setBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 28 of file MESetDet0D.h.

References fill().

28  {
29  fill(edso, _id, _value);
30  }
void fill(EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30

◆ setBinContent() [3/3]

void ecaldqm::MESetDet0D::setBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 31 of file MESetDet0D.h.

References fill().

31  {
32  fill(edso, _dcctccid, _value);
33  }
void fill(EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30