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 (MESetDet0D const &)
 
 MESetDet0D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
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 (double, 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
 
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 (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 (DQMStore::IGetter &, std::string *=nullptr) 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 iterator begin ()
 
virtual const_iterator begin () const
 
virtual iterator beginChannel ()
 
virtual const_iterator beginChannel () const
 
virtual void clear () const
 
virtual iterator end ()
 
virtual const_iterator end () 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 *) 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 (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 ~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 ( 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(otype_, _id));
35  checkME_(iME);
36 
37  mes_[iME]->Fill(_value);
38  }

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

Referenced by setBinContent().

◆ fill() [2/3]

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.

40  {
41  if (!active_)
42  return;
43 
44  unsigned iME(binning::findPlotIndex(otype_, _id));
45  checkME_(iME);
46 
47  mes_[iME]->Fill(_value);
48  }

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

◆ fill() [3/3]

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.

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  }

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

◆ getBinContent() [1/3]

double ecaldqm::MESetDet0D::getBinContent ( 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(otype_, _id));
65  checkME_(iME);
66 
67  return mes_[iME]->getFloatValue();
68  }

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

◆ getBinContent() [2/3]

double ecaldqm::MESetDet0D::getBinContent ( 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(otype_, _id));
75  checkME_(iME);
76 
77  return mes_[iME]->getFloatValue();
78  }

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

◆ getBinContent() [3/3]

double ecaldqm::MESetDet0D::getBinContent ( 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(otype_, _dcctccid, btype_));
85  checkME_(iME);
86 
87  return mes_[iME]->getFloatValue();
88  }

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

◆ reset()

void ecaldqm::MESetDet0D::reset ( 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 ( DetId const &  _id,
int  ,
double  _value 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 25 of file MESetDet0D.h.

25 { fill(_id, _value); }

References fill().

◆ setBinContent() [2/3]

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

Reimplemented from ecaldqm::MESet.

Definition at line 26 of file MESetDet0D.h.

26 { fill(_id, _value); }

References fill().

◆ setBinContent() [3/3]

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

Reimplemented from ecaldqm::MESet.

Definition at line 27 of file MESetDet0D.h.

27 { fill(_dcctccid, _value); }

References fill().

ecaldqm::MESet::throw_
void throw_(std::string const &_message) const
Definition: MESet.h:121
ecaldqm::MESetDet0D::fill
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
ecaldqm::MESet::otype_
binning::ObjectType otype_
Definition: MESet.h:126
ecaldqm::MESet::active_
bool active_
Definition: MESet.h:133
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESet::btype_
binning::BinningType btype_
Definition: MESet.h:127
ecaldqm::MESet::path_
std::string path_
Definition: MESet.h:125
ecaldqm::binning::findPlotIndex
unsigned findPlotIndex(ObjectType, DetId const &)
Definition: MESetBinningUtils.cc:299
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:123
ecaldqm::MESet::checkME_
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:113
ecaldqm::MESet::MESet
MESet()
Definition: MESet.cc:14
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
ecaldqm::MESet::kind_
MonitorElement::Kind kind_
Definition: MESet.h:128
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