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 (MESetDet0D const &)
 
 MESetDet0D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
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, double, 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
 
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 (MESetEcal const &)
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
 
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 iterator begin (EcalElectronicsMapping const *electronicsMap)
 
virtual const_iterator begin (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator beginChannel (EcalElectronicsMapping const *electronicsMap)
 
virtual const_iterator beginChannel (EcalElectronicsMapping const *electronicsMap) const
 
virtual void clear () const
 
virtual iterator end (EcalElectronicsMapping const *electronicsMap)
 
virtual const_iterator end (EcalElectronicsMapping const *electronicsMap) const
 
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
virtual MonitorElementgetME (unsigned _iME)
 
virtual const MonitorElementgetME (unsigned _iME) const
 
binning::ObjectType getObjType () const
 
virtual const std::string & getPath () const
 
bool isActive () const
 
virtual bool maskMatches (DetId const &, uint32_t, StatusManager const *, EcalTrigTowerConstituentsMap const *) const
 
 MESet ()
 
 MESet (MESet const &)
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
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, double, double, double)
 
virtual void fill_ (unsigned, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
void throw_ (std::string const &_message) const
 
- Protected Attributes inherited from ecaldqm::MESetEcal
unsigned logicalDimensions_
 
const binning::AxisSpecsxaxis_
 
const binning::AxisSpecsyaxis_
 
const binning::AxisSpecszaxis_
 
- 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.

8  : MESetEcal(_fullPath, _otype, _btype, _kind, 0, nullptr, nullptr) {
9  switch (kind_) {
11  break;
12  default:
13  throw_("Unsupported MonitorElement kind");
14  }
15  }

References ecaldqm::MESet::kind_, MonitorElementData::REAL, and ecaldqm::MESet::throw_().

Referenced by clone().

◆ MESetDet0D() [2/2]

ecaldqm::MESetDet0D::MESetDet0D ( MESetDet0D const &  _orig)

Definition at line 17 of file MESetDet0D.cc.

17 : MESetEcal(_orig) {}

◆ ~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.

21  {
23  if (!_path.empty())
24  path_ = _path;
25  MESet *copy(new MESetDet0D(*this));
26  path_ = path;
27  return copy;
28  }

References filterCSVwithJSON::copy, MESetDet0D(), castor_dqm_sourceclient_file_cfg::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ 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.

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  }

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

Referenced by setBinContent().

◆ 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.

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  }

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

◆ 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.

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  }

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

◆ 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.

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  }

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

◆ 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.

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  }

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

◆ 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.

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  }

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

◆ 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.

90  {
91  unsigned nME(mes_.size());
92  for (unsigned iME(0); iME < nME; iME++)
93  mes_[iME]->Fill(_value);
94  }

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

◆ 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.

25  {
26  fill(edso, _id, _value);
27  }

References fill().

◆ 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.

28  {
29  fill(edso, _id, _value);
30  }

References fill().

◆ 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.

31  {
32  fill(edso, _dcctccid, _value);
33  }

References fill().

ecaldqm::MESet::throw_
void throw_(std::string const &_message) const
Definition: MESet.h:149
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
ecaldqm::MESet::otype_
binning::ObjectType otype_
Definition: MESet.h:154
ecaldqm::MESet::active_
bool active_
Definition: MESet.h:161
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESet::btype_
binning::BinningType btype_
Definition: MESet.h:155
ecaldqm::MESet::path_
std::string path_
Definition: MESet.h:153
HcalObjRepresent::Fill
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Definition: HcalObjRepresent.h:1053
ecaldqm::MESet::mes_
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
ecaldqm::MESet::checkME_
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ecaldqm::MESet::MESet
MESet()
Definition: MESet.cc:14
ecaldqm::binning::findPlotIndex
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
Definition: MESetBinningUtils.cc:316
ecaldqm::MESetDet0D::fill
void fill(EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
ecaldqm::MESet::kind_
MonitorElement::Kind kind_
Definition: MESet.h:156
ecaldqm::MESetDet0D::MESetDet0D
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:4
MonitorElementData::Kind::REAL
ecaldqm::MESetEcal::MESetEcal
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