CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions
ecaldqm::MESetDet1D Class Reference

#include <MESetDet1D.h>

Inheritance diagram for ecaldqm::MESetDet1D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

void book (DQMStore::IBooker &, EcalElectronicsMapping const *) override
 
MESetclone (std::string const &="") const override
 
void fill (EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=0.) override
 
void fill (EcalDQMSetupObjects const, EcalElectronicsId const &, double=1., double=1., double=0.) override
 
void fill (EcalDQMSetupObjects const, int, double=1., double=1., double=0.) override
 
int findBin (EcalDQMSetupObjects const, DetId const &) const
 
int findBin (EcalDQMSetupObjects const, EcalElectronicsId const &) const
 
int findBin (EcalDQMSetupObjects const, int) const
 
int findBin (EcalDQMSetupObjects const, DetId const &, double, double=0.) const override
 
int findBin (EcalDQMSetupObjects const, EcalElectronicsId const &, double, double=0.) const override
 
int findBin (EcalDQMSetupObjects const, int, double, double=0.) const 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
 
double getBinEntries (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinEntries (EcalDQMSetupObjects const, int, int=0) const override
 
double getBinError (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinError (EcalDQMSetupObjects const, int, int=0) const override
 
 MESetDet1D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
 
 MESetDet1D (MESetDet1D const &)
 
void reset (EcalElectronicsMapping const *, double=0., double=0., double=0.) override
 
void setBinContent (EcalDQMSetupObjects const, DetId const &, double) override
 
void setBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinContent (EcalDQMSetupObjects const, int, double) 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 &, double) override
 
void setBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinEntries (EcalDQMSetupObjects const, 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 &, double) override
 
void setBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinError (EcalDQMSetupObjects const, 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
 
 ~MESetDet1D () 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
 
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 ()
 
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 MESetDet1D.h.

Constructor & Destructor Documentation

◆ MESetDet1D() [1/2]

ecaldqm::MESetDet1D::MESetDet1D ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind,
binning::AxisSpecs const *  _yaxis = nullptr 
)

Definition at line 7 of file MESetDet1D.cc.

References ecaldqm::MESet::kind_, MonitorElementData::TH1F, MonitorElementData::TH2F, ecaldqm::MESet::throw_(), MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

Referenced by clone().

12  : MESetEcal(_fullPath, _otype, _btype, _kind, 1, nullptr, _yaxis, nullptr) {
13  switch (kind_) {
18  break;
19  default:
20  throw_("Unsupported MonitorElement kind");
21  }
22  }
MonitorElement::Kind kind_
Definition: MESet.h:156
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

◆ MESetDet1D() [2/2]

ecaldqm::MESetDet1D::MESetDet1D ( MESetDet1D const &  _orig)

Definition at line 24 of file MESetDet1D.cc.

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

◆ ~MESetDet1D()

ecaldqm::MESetDet1D::~MESetDet1D ( )
override

Definition at line 26 of file MESetDet1D.cc.

26 {}

Member Function Documentation

◆ book()

void ecaldqm::MESetDet1D::book ( DQMStore::IBooker _ibooker,
EcalElectronicsMapping const *  electronicsMap 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 37 of file MESetDet1D.cc.

References ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), ecaldqm::binning::getObject(), SurfaceOrientation::inner, ecaldqm::innerTCCs(), ecaldqm::binning::kDCC, ecaldqm::binning::kEB, ecaldqm::kEBmLow, ecaldqm::binning::kEE, ecaldqm::binning::kEEm, ecaldqm::kEEmHigh, ecaldqm::binning::kEEp, ecaldqm::kEEpLow, ecaldqm::binning::kEESM, ecaldqm::binning::kSM, ecaldqm::binning::kTriggerTower, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, ecaldqm::nTTInner, ecaldqm::nTTOuter, hltrates_dqm_sourceclient-live_cfg::offset, ecaldqm::MESet::otype_, SurfaceOrientation::outer, ecaldqm::outerTCCs(), and contentValuesCheck::ss.

37  {
38  MESetEcal::book(_ibooker, electronicsMap);
39 
40  if (btype_ == binning::kDCC) {
41  for (unsigned iME(0); iME < mes_.size(); iME++) {
42  MonitorElement *me(mes_[iME]);
43 
44  binning::ObjectType actualObject(binning::getObject(otype_, iME));
45  if (actualObject == binning::kEB) {
46  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
47  me->setBinLabel(iBin, binning::channelName(electronicsMap, iBin + kEBmLow));
48  } else if (actualObject == binning::kEE) {
49  for (int iBin(1); iBin <= me->getNbinsX() / 2; iBin++) {
50  me->setBinLabel(iBin, binning::channelName(electronicsMap, iBin));
51  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(electronicsMap, iBin + 45));
52  }
53  } else if (actualObject == binning::kEEm) {
54  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
55  me->setBinLabel(iBin, binning::channelName(electronicsMap, iBin));
56  } else if (actualObject == binning::kEEp) {
57  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
58  me->setBinLabel(iBin, binning::channelName(electronicsMap, iBin + 45));
59  }
60  }
61  } else if (btype_ == binning::kTriggerTower) {
62  for (unsigned iME(0); iME < mes_.size(); iME++) {
63  MonitorElement *me(mes_[iME]);
64 
65  binning::ObjectType actualObject(binning::getObject(otype_, iME));
66  unsigned dccid(0);
67  if (actualObject == binning::kSM && (iME <= kEEmHigh || iME >= kEEpLow))
68  dccid = iME + 1;
69  else if (actualObject == binning::kEESM)
70  dccid = iME <= kEEmHigh ? iME + 1 : iME + 37;
71 
72  if (dccid > 0) {
73  std::stringstream ss;
74  std::pair<unsigned, unsigned> inner(innerTCCs(iME + 1));
75  std::pair<unsigned, unsigned> outer(outerTCCs(iME + 1));
76  ss << "TCC" << inner.first << " TT1";
77  me->setBinLabel(1, ss.str());
78  ss.str("");
79  ss << "TCC" << inner.second << " TT1";
80  me->setBinLabel(1 + nTTInner, ss.str());
81  ss.str("");
82  ss << "TCC" << outer.first << " TT1";
83  me->setBinLabel(1 + 2 * nTTInner, ss.str());
84  ss.str("");
85  ss << "TCC" << outer.second << " TT1";
86  me->setBinLabel(1 + 2 * nTTInner + nTTOuter, ss.str());
87  // Bins are numbered:
88  // inner1:(1)-->(nTTInner)
89  // inner2:(1+nTTInner)-->(1+nTTInner + nTTInner-1 = 2*nTTInner)
90  // outer1:(1+2*nTTInner)-->(1+2*nTTInner+nTTOuter-1=2*nTTInner+nTTOuter)
91  // outer2:(1+2*nTTInner+nTTOuter)-->(1+2*nTTInner+nTTOuter + nTTOuter-1
92  // = 2*nTTInner+2*nTTOuter)
93  int offset(0);
94  for (int iBin(4); iBin <= (2 * nTTOuter + 2 * nTTInner); iBin += 4) {
95  if (iBin == 4 + nTTInner)
96  offset = nTTInner;
97  else if (iBin == 4 + 2 * nTTInner)
98  offset = 2 * nTTInner;
99  else if (iBin == 4 + 2 * nTTInner + nTTOuter)
100  offset = 2 * nTTInner + nTTOuter;
101  ss.str("");
102  ss << iBin - offset;
103  me->setBinLabel(iBin, ss.str());
104  }
105  }
106  }
107  }
108  }
std::pair< unsigned, unsigned > outerTCCs(unsigned)
ObjectType getObject(ObjectType, unsigned)
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
Definition: MESetEcal.cc:70
std::pair< unsigned, unsigned > innerTCCs(unsigned)
binning::ObjectType otype_
Definition: MESet.h:154
std::string channelName(EcalElectronicsMapping const *, uint32_t, BinningType _btype=kDCC)
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ clone()

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

Reimplemented from ecaldqm::MESet.

Definition at line 28 of file MESetDet1D.cc.

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

28  {
30  if (!_path.empty())
31  path_ = _path;
32  MESet *copy(new MESetDet1D(*this));
33  path_ = path;
34  return copy;
35  }
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet1D.cc:7
std::string path_
Definition: MESet.h:153

◆ fill() [1/3]

void ecaldqm::MESetDet1D::fill ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 110 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

111  {
112  if (!active_)
113  return;
114 
115  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
116  checkME_(iME);
117 
119  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
120 
122  fill_(iME, xbin, _wy, _w);
123  else
124  fill_(iME, xbin, _wy);
125  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ fill() [2/3]

void ecaldqm::MESetDet1D::fill ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 127 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

128  {
129  if (!active_)
130  return;
131 
132  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
133  checkME_(iME);
134 
136  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
137 
139  fill_(iME, xbin, _wy, _w);
140  else
141  fill_(iME, xbin, _wy);
142  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ fill() [3/3]

void ecaldqm::MESetDet1D::fill ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 144 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

145  {
146  if (!active_)
147  return;
148 
149  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
150  checkME_(iME);
151 
153  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
154 
156  fill_(iME, xbin, _wy, _w);
157  else
158  fill_(iME, xbin, _wy);
159  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ findBin() [1/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
DetId const &  _id 
) const

Definition at line 659 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

659  {
660  if (!active_)
661  return -1;
663  return -1;
664 
665  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
666  checkME_(iME);
667 
669  return binning::findBin1D(edso.electronicsMap, obj, btype_, _id);
670  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ findBin() [2/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id 
) const

Definition at line 672 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

672  {
673  if (!active_)
674  return -1;
676  return -1;
677 
678  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
679  checkME_(iME);
680 
682  return binning::findBin1D(edso.electronicsMap, obj, btype_, _id);
683  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ findBin() [3/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
int  _dcctccid 
) const

Definition at line 685 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

685  {
686  if (!active_)
687  return -1;
689  return -1;
690 
691  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
692  checkME_(iME);
693 
695  return binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid);
696  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)

◆ findBin() [4/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 698 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

698  {
699  if (!active_)
700  return -1;
702  return -1;
703 
704  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
705  checkME_(iME);
706 
707  MonitorElement *me(mes_[iME]);
708 
710  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
711  int nbinsX(me->getTH1()->GetNbinsX());
712  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
713  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ findBin() [5/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 715 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

715  {
716  if (!active_)
717  return -1;
719  return -1;
720 
721  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
722  checkME_(iME);
723 
724  MonitorElement *me(mes_[iME]);
725 
727  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
728  int nbinsX(me->getTH1()->GetNbinsX());
729  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
730  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ findBin() [6/6]

int ecaldqm::MESetDet1D::findBin ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 732 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

732  {
733  if (!active_)
734  return -1;
736  return -1;
737 
738  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
739  checkME_(iME);
740 
741  MonitorElement *me(mes_[iME]);
742 
744  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
745  int nbinsX(me->getTH1()->GetNbinsX());
746  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
747  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinContent() [1/3]

double ecaldqm::MESetDet1D::getBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 503 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

503  {
504  if (!active_)
505  return 0.;
506 
507  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
508  checkME_(iME);
509 
510  MonitorElement *me(mes_[iME]);
511 
513  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
514  int nbinsX(me->getTH1()->GetNbinsX());
515 
516  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
517  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinContent() [2/3]

double ecaldqm::MESetDet1D::getBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 519 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

521  {
522  if (!active_)
523  return 0.;
524 
525  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
526  checkME_(iME);
527 
528  MonitorElement *me(mes_[iME]);
529 
531  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
532  int nbinsX(me->getTH1()->GetNbinsX());
533 
534  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
535  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinContent() [3/3]

double ecaldqm::MESetDet1D::getBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 537 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

537  {
538  if (!active_)
539  return 0.;
540 
541  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
542  checkME_(iME);
543 
544  MonitorElement *me(mes_[iME]);
545 
547  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
548  int nbinsX(me->getTH1()->GetNbinsX());
549 
550  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
551  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinEntries() [1/3]

double ecaldqm::MESetDet1D::getBinEntries ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 603 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

603  {
604  if (!active_)
605  return 0.;
607  return 0.;
608 
609  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
610  checkME_(iME);
611 
612  MonitorElement *me(mes_[iME]);
613 
615  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
616  int nbinsX(me->getTH1()->GetNbinsX());
617 
618  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
619  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinEntries() [2/3]

double ecaldqm::MESetDet1D::getBinEntries ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 621 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

623  {
624  if (!active_)
625  return 0.;
627  return 0.;
628 
629  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
630  checkME_(iME);
631 
632  MonitorElement *me(mes_[iME]);
633 
635  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
636  int nbinsX(me->getTH1()->GetNbinsX());
637 
638  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
639  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinEntries() [3/3]

double ecaldqm::MESetDet1D::getBinEntries ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 641 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

641  {
642  if (!active_)
643  return 0.;
645  return 0.;
646 
647  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
648  checkME_(iME);
649 
650  MonitorElement *me(mes_[iME]);
651 
653  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
654  int nbinsX(me->getTH1()->GetNbinsX());
655 
656  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
657  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinError() [1/3]

double ecaldqm::MESetDet1D::getBinError ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 553 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

553  {
554  if (!active_)
555  return 0.;
556 
557  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
558  checkME_(iME);
559 
560  MonitorElement *me(mes_[iME]);
561 
563  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
564  int nbinsX(me->getTH1()->GetNbinsX());
565 
566  return me->getBinError((nbinsX + 2) * _ybin + xbin);
567  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinError() [2/3]

double ecaldqm::MESetDet1D::getBinError ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 569 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

571  {
572  if (!active_)
573  return 0.;
574 
575  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
576  checkME_(iME);
577 
578  MonitorElement *me(mes_[iME]);
579 
581  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
582  int nbinsX(me->getTH1()->GetNbinsX());
583 
584  return me->getBinError((nbinsX + 2) * _ybin + xbin);
585  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ getBinError() [3/3]

double ecaldqm::MESetDet1D::getBinError ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 587 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

587  {
588  if (!active_)
589  return 0.;
590 
591  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
592  checkME_(iME);
593 
594  MonitorElement *me(mes_[iME]);
595 
597  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
598  int nbinsX(me->getTH1()->GetNbinsX());
599 
600  return me->getBinError((nbinsX + 2) * _ybin + xbin);
601  }
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ reset()

void ecaldqm::MESetDet1D::reset ( EcalElectronicsMapping const *  ,
double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 749 of file MESetDet1D.cc.

References btvTracks_cfi::_content, newFWLiteAna::bin, ecaldqm::binning::getNObjects(), fastTrackerRecHitType::is2D(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, L1THistDefinitions_cff::nbinsY, ecaldqm::MESet::otype_, MonitorElementData::TH2F, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

752  {
753  unsigned nME(binning::getNObjects(otype_));
754 
757 
758  for (unsigned iME(0); iME < nME; iME++) {
759  MonitorElement *me(mes_[iME]);
760 
761  int nbinsX(me->getTH1()->GetNbinsX());
762  int nbinsY(me->getTH1()->GetNbinsY());
763  for (int ix(1); ix <= nbinsX; ix++) {
764  for (int iy(1); iy <= nbinsY; iy++) {
765  int bin(is2D ? (nbinsX + 2) * iy + ix : ix);
766  me->setBinContent(bin, _content);
767  me->setBinError(bin, _err);
768  if (isProfile)
769  me->setBinEntries(bin, _entries);
770  }
771  }
772  }
773  }
MonitorElement::Kind kind_
Definition: MESet.h:156
unsigned getNObjects(ObjectType)
bool is2D(HitType hitType)
binning::ObjectType otype_
Definition: MESet.h:154
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [1/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 161 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

161  {
162  if (!active_)
163  return;
164 
165  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
166  checkME_(iME);
167 
168  MonitorElement *me(mes_[iME]);
169 
171  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
172 
174  int nbinsY(me->getTH1()->GetNbinsY());
175  for (int iY(1); iY <= nbinsY; iY++)
176  me->setBinContent(xbin, iY, _content);
177  } else
178  me->setBinContent(xbin, _content);
179  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [2/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 181 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

181  {
182  if (!active_)
183  return;
184 
185  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
186  checkME_(iME);
187 
188  MonitorElement *me(mes_[iME]);
189 
191  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
192 
194  int nbinsY(me->getTH1()->GetNbinsY());
195  for (int iY(1); iY <= nbinsY; iY++)
196  me->setBinContent(xbin, iY, _content);
197  } else
198  me->setBinContent(xbin, _content);
199  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [3/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 201 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

201  {
202  if (!active_)
203  return;
204 
205  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
206  checkME_(iME);
207 
208  MonitorElement *me(mes_[iME]);
209 
211  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
212 
214  int nbinsY(me->getTH1()->GetNbinsY());
215  for (int iY(1); iY <= nbinsY; iY++)
216  me->setBinContent(xbin, iY, _content);
217  } else
218  me->setBinContent(xbin, _content);
219  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [4/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 221 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

221  {
222  if (!active_)
223  return;
225  return;
226 
227  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
228  checkME_(iME);
229 
230  MonitorElement *me(mes_[iME]);
231 
233  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
234  me->setBinContent(xbin, _ybin, _content);
235  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [5/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 237 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

240  {
241  if (!active_)
242  return;
244  return;
245 
246  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
247  checkME_(iME);
248 
249  MonitorElement *me(mes_[iME]);
250 
252  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
253  me->setBinContent(xbin, _ybin, _content);
254  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinContent() [6/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 256 of file MESetDet1D.cc.

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

256  {
257  if (!active_)
258  return;
260  return;
261 
262  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
263  checkME_(iME);
264 
265  MonitorElement *me(mes_[iME]);
266 
268  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
269  me->setBinContent(xbin, _ybin, _content);
270  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [1/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 380 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

380  {
381  if (!active_)
382  return;
384  return;
385 
386  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
387  checkME_(iME);
388 
389  MonitorElement *me(mes_[iME]);
390 
392  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
393 
395  int nbinsX(me->getTH1()->GetNbinsX());
396  int nbinsY(me->getTH1()->GetNbinsY());
397  for (int iY(1); iY <= nbinsY; iY++)
398  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
399  } else
400  me->setBinEntries(xbin, _entries);
401  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [2/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 403 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

403  {
404  if (!active_)
405  return;
407  return;
408 
409  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
410  checkME_(iME);
411 
412  MonitorElement *me(mes_[iME]);
413 
415  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
416 
418  int nbinsX(me->getTH1()->GetNbinsX());
419  int nbinsY(me->getTH1()->GetNbinsY());
420  for (int iY(1); iY <= nbinsY; iY++)
421  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
422  } else
423  me->setBinEntries(xbin, _entries);
424  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [3/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 426 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

426  {
427  if (!active_)
428  return;
430  return;
431 
432  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
433  checkME_(iME);
434 
435  MonitorElement *me(mes_[iME]);
436 
438  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
439 
441  int nbinsX(me->getTH1()->GetNbinsX());
442  int nbinsY(me->getTH1()->GetNbinsY());
443  for (int iY(1); iY <= nbinsY; iY++)
444  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
445  } else
446  me->setBinEntries(xbin, _entries);
447  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [4/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 449 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

449  {
450  if (!active_)
451  return;
453  return;
454 
455  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
456  checkME_(iME);
457 
458  MonitorElement *me(mes_[iME]);
459 
461  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
462  int nbinsX(me->getTH1()->GetNbinsX());
463  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
464  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [5/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 466 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

469  {
470  if (!active_)
471  return;
473  return;
474 
475  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
476  checkME_(iME);
477 
478  MonitorElement *me(mes_[iME]);
479 
481  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
482  int nbinsX(me->getTH1()->GetNbinsX());
483  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
484  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinEntries() [6/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 486 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

486  {
487  if (!active_)
488  return;
490  return;
491 
492  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
493  checkME_(iME);
494 
495  MonitorElement *me(mes_[iME]);
496 
498  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
499  int nbinsX(me->getTH1()->GetNbinsX());
500  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
501  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [1/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 272 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

272  {
273  if (!active_)
274  return;
275 
276  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
277  checkME_(iME);
278 
279  MonitorElement *me(mes_[iME]);
280 
282  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
283 
285  int nbinsY(me->getTH1()->GetNbinsY());
286  for (int iY(1); iY <= nbinsY; iY++)
287  me->setBinError(xbin, iY, _error);
288  } else
289  me->setBinError(xbin, _error);
290  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [2/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 292 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

292  {
293  if (!active_)
294  return;
295 
296  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
297  checkME_(iME);
298 
299  MonitorElement *me(mes_[iME]);
300 
302  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
303 
305  int nbinsY(me->getTH1()->GetNbinsY());
306  for (int iY(1); iY <= nbinsY; iY++)
307  me->setBinError(xbin, iY, _error);
308  } else
309  me->setBinError(xbin, _error);
310  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [3/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 312 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, L1THistDefinitions_cff::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

312  {
313  if (!active_)
314  return;
315 
316  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid, btype_));
317  checkME_(iME);
318 
319  MonitorElement *me(mes_[iME]);
320 
322  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
323 
325  int nbinsY(me->getTH1()->GetNbinsY());
326  for (int iY(1); iY <= nbinsY; iY++)
327  me->setBinError(xbin, iY, _error);
328  } else
329  me->setBinError(xbin, _error);
330  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [4/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 332 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

332  {
333  if (!active_)
334  return;
336  return;
337 
338  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
339  checkME_(iME);
340 
341  MonitorElement *me(mes_[iME]);
342 
344  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
345  me->setBinError(xbin, _ybin, _error);
346  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [5/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 348 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

348  {
349  if (!active_)
350  return;
352  return;
353 
354  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
355  checkME_(iME);
356 
357  MonitorElement *me(mes_[iME]);
358 
360  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _id));
361  me->setBinError(xbin, _ybin, _error);
362  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151

◆ setBinError() [6/6]

void ecaldqm::MESetDet1D::setBinError ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 364 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

364  {
365  if (!active_)
366  return;
368  return;
369 
370  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
371  checkME_(iME);
372 
373  MonitorElement *me(mes_[iME]);
374 
376  int xbin(binning::findBin1D(edso.electronicsMap, obj, btype_, _dcctccid));
377  me->setBinError(xbin, _ybin, _error);
378  }
MonitorElement::Kind kind_
Definition: MESet.h:156
ObjectType getObject(ObjectType, unsigned)
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:151