CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
ecaldqm::MESetMulti Class Reference

#include <MESetMulti.h>

Inheritance diagram for ecaldqm::MESetMulti:
ecaldqm::MESet

Public Types

typedef std::map< std::string, std::vector< std::string > > ReplCandidates
 
- Public Types inherited from ecaldqm::MESet
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
typedef std::map< std::string, std::string > PathReplacements
 

Public Member Functions

const_iterator begin () const override
 
iterator begin () override
 
const_iterator beginChannel () const override
 
iterator beginChannel () override
 
void book (DQMStore::IBooker &) override
 
void clear () const override
 
MESetclone (std::string const &="") const override
 
const_iterator end () const override
 
iterator end () override
 
void fill (DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
 
void fill (double _x, double _yw=1., double _w=1.) override
 
void fill (EcalElectronicsId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
 
void fill (int _dcctccid, double _xyw=1., double _yw=1., double _w=1.) override
 
double getBinContent (DetId const &_id, int _bin=0) const override
 
double getBinContent (EcalElectronicsId const &_id, int _bin=0) const override
 
double getBinContent (int _dcctccid, int _bin=0) const override
 
double getBinEntries (DetId const &_id, int _bin=0) const override
 
double getBinEntries (EcalElectronicsId const &_id, int _bin=0) const override
 
double getBinEntries (int _dcctccid, int _bin=0) const override
 
double getBinError (DetId const &_id, int _bin=0) const override
 
double getBinError (EcalElectronicsId const &_id, int _bin=0) const override
 
double getBinError (int _dcctccid, int _bin=0) const override
 
MESetgetCurrent () const
 
unsigned getIndex (PathReplacements const &) const
 
const MonitorElementgetME (unsigned _iME) const override
 
MonitorElementgetME (unsigned _iME) override
 
unsigned getMultiplicity () const
 
const std::string & getPath () const override
 
bool isVariableBinning () const override
 
bool maskMatches (DetId const &_id, uint32_t _mask, StatusManager const *_statusManager) const override
 
 MESetMulti (MESet const &, ReplCandidates const &)
 
 MESetMulti (MESetMulti const &)
 
MESetoperator= (MESet const &) override
 
void reset (double=0., double=0., double=0.) override
 
void resetAll (double=0., double=0., double=0.) override
 
bool retrieve (DQMStore::IGetter &, std::string *=nullptr) const override
 
void setBinContent (DetId const &_id, double _content) override
 
void setBinContent (DetId const &_id, int _bin, double _content) override
 
void setBinContent (EcalElectronicsId const &_id, double _content) override
 
void setBinContent (EcalElectronicsId const &_id, int _bin, double _content) override
 
void setBinContent (int _dcctccid, double _content) override
 
void setBinContent (int _dcctccid, int _bin, double _content) override
 
void setBinEntries (DetId const &_id, double _entries) override
 
void setBinEntries (DetId const &_id, int _bin, double _entries) override
 
void setBinEntries (EcalElectronicsId const &_id, double _entries) override
 
void setBinEntries (EcalElectronicsId const &_id, int _bin, double _entries) override
 
void setBinEntries (int _dcctccid, double _entries) override
 
void setBinEntries (int _dcctccid, int _bin, double _entries) override
 
void setBinError (DetId const &_id, double _error) override
 
void setBinError (DetId const &_id, int _bin, double _error) override
 
void setBinError (EcalElectronicsId const &_id, double _error) override
 
void setBinError (EcalElectronicsId const &_id, int _bin, double _error) override
 
void setBinError (int _dcctccid, double _error) override
 
void setBinError (int _dcctccid, int _bin, double _error) override
 
void use (unsigned) const
 
 ~MESetMulti () override
 
- Public Member Functions inherited from ecaldqm::MESet
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
binning::ObjectType getObjType () const
 
bool isActive () const
 
 MESet ()
 
 MESet (MESet const &)
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual ~MESet ()
 

Protected Attributes

MESetcurrent_
 
ReplCandidates replCandidates_
 
std::vector< MESet * > sets_
 
- 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_
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 13 of file MESetMulti.h.

Member Typedef Documentation

◆ ReplCandidates

typedef std::map<std::string, std::vector<std::string> > ecaldqm::MESetMulti::ReplCandidates

Definition at line 15 of file MESetMulti.h.

Constructor & Destructor Documentation

◆ MESetMulti() [1/2]

ecaldqm::MESetMulti::MESetMulti ( MESet const &  _seed,
ReplCandidates const &  _replCandidates 
)

Definition at line 4 of file MESetMulti.cc.

5  : MESet(_seed), current_(nullptr), sets_(), replCandidates_(_replCandidates) {
6  PathReplacements replacements;
7  std::map<std::string, unsigned> indices;
8  // recursive function to set replacements
9  // indices gives the multi index in each dimension
10  // dimensions are alphanumerically ordered from the use of std::map
11  std::function<bool(typename ReplCandidates::const_iterator &)> setReplacements(
12  [&setReplacements, &replacements, &indices, this](typename ReplCandidates::const_iterator &_rItr) {
13  unsigned &index(indices[_rItr->first]);
14  replacements[_rItr->first] = _rItr->second[index];
15  // one dimension set, go to next
16  ++_rItr;
17  if (_rItr == this->replCandidates_.end()) {
18  // this is the last dimension. Increment the index and retutn to the
19  // first
20  _rItr = this->replCandidates_.begin();
21  ++index;
22  } else if (setReplacements(_rItr))
23  ++index;
24 
25  if (index != _rItr->second.size())
26  return false;
27  // index has counted to the maximum of this dimension, carry over
28  index = 0;
29  return true;
30  });
31 
32  // [dim0 = 0, dim1 = 0] -> 0, [dim0 = 0, dim1 = 1] -> 1, ...
33  unsigned iM(0);
34  while (true) {
35  replacements.clear();
36  typename ReplCandidates::const_iterator rItr(replCandidates_.begin());
37  bool last(setReplacements(rItr));
38  sets_.push_back(_seed.clone(formPath(replacements)));
39  if (last)
40  break;
41  ++iM;
42  }
43 
44  current_ = sets_[0];
45  }

References electrons_cff::bool, ecaldqm::MESet::clone(), current_, ecaldqm::MESet::formPath(), HiBiasedCentrality_cfi::function, bTagCombinedSVVariables_cff::indices, dqmdumpme::last, replCandidates_, and sets_.

Referenced by clone().

◆ MESetMulti() [2/2]

ecaldqm::MESetMulti::MESetMulti ( MESetMulti const &  _orig)

Definition at line 47 of file MESetMulti.cc.

48  : MESet(_orig), current_(nullptr), sets_(_orig.sets_.size(), nullptr), replCandidates_(_orig.replCandidates_) {
49  if (sets_.empty())
50  return;
51 
52  for (unsigned iS(0); iS < sets_.size(); ++iS) {
53  if (!_orig.sets_[iS])
54  continue;
55  sets_[iS] = _orig.sets_[iS]->clone();
56  if (_orig.sets_[iS] == _orig.current_)
57  current_ = sets_[iS];
58  }
59  }

References current_, and sets_.

◆ ~MESetMulti()

ecaldqm::MESetMulti::~MESetMulti ( )
override

Definition at line 61 of file MESetMulti.cc.

61  {
62  for (unsigned iS(0); iS < sets_.size(); ++iS)
63  delete sets_[iS];
64  }

References sets_.

Member Function Documentation

◆ begin() [1/2]

const_iterator ecaldqm::MESetMulti::begin ( void  ) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 121 of file MESetMulti.h.

121 { return const_iterator(*current_); }

References current_.

◆ begin() [2/2]

iterator ecaldqm::MESetMulti::begin ( void  )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 124 of file MESetMulti.h.

124 { return iterator(*current_); }

References current_.

◆ beginChannel() [1/2]

const_iterator ecaldqm::MESetMulti::beginChannel ( ) const
inlineoverridevirtual

◆ beginChannel() [2/2]

iterator ecaldqm::MESetMulti::beginChannel ( )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 126 of file MESetMulti.h.

126 { return current_->beginChannel(); }

References ecaldqm::MESet::beginChannel(), and current_.

◆ book()

void ecaldqm::MESetMulti::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 97 of file MESetMulti.cc.

97  {
98  for (unsigned iS(0); iS < sets_.size(); ++iS)
99  sets_[iS]->book(_ibooker);
100 
101  active_ = true;
102  }

References ecaldqm::MESet::active_, and sets_.

◆ clear()

void ecaldqm::MESetMulti::clear ( void  ) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 113 of file MESetMulti.cc.

113  {
114  for (unsigned iS(0); iS < sets_.size(); ++iS)
115  sets_[iS]->clear();
116 
117  active_ = false;
118  }

References ecaldqm::MESet::active_, and sets_.

◆ clone()

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

Reimplemented from ecaldqm::MESet.

Definition at line 88 of file MESetMulti.cc.

88  {
90  if (!_path.empty())
91  path_ = _path;
92  MESet *copy(new MESetMulti(*this));
93  path_ = path;
94  return copy;
95  }

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

◆ end() [1/2]

const_iterator ecaldqm::MESetMulti::end ( void  ) const
inlineoverridevirtual

◆ end() [2/2]

iterator ecaldqm::MESetMulti::end ( void  )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 125 of file MESetMulti.h.

125 { return iterator(*current_, -1, -1); }

References current_.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

◆ fill() [1/4]

void ecaldqm::MESetMulti::fill ( DetId const &  _id,
double  _xyw = 1.,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 29 of file MESetMulti.h.

29  {
30  current_->fill(_id, _xyw, _yw, _w);
31  }

References current_, and ecaldqm::MESet::fill().

Referenced by ecaldqm::LaserClient::producePlots(), ecaldqm::PedestalClient::producePlots(), and ecaldqm::LedClient::producePlots().

◆ fill() [2/4]

void ecaldqm::MESetMulti::fill ( double  _x,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 38 of file MESetMulti.h.

38 { current_->fill(_x, _yw, _w); }

References current_, and ecaldqm::MESet::fill().

◆ fill() [3/4]

void ecaldqm::MESetMulti::fill ( EcalElectronicsId const &  _id,
double  _xyw = 1.,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 32 of file MESetMulti.h.

32  {
33  current_->fill(_id, _xyw, _yw, _w);
34  }

References current_, and ecaldqm::MESet::fill().

◆ fill() [4/4]

void ecaldqm::MESetMulti::fill ( int  _dcctccid,
double  _xyw = 1.,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 35 of file MESetMulti.h.

35  {
36  current_->fill(_dcctccid, _xyw, _yw, _w);
37  }

References current_, and ecaldqm::MESet::fill().

◆ getBinContent() [1/3]

double ecaldqm::MESetMulti::getBinContent ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

◆ getBinContent() [2/3]

double ecaldqm::MESetMulti::getBinContent ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 82 of file MESetMulti.h.

82  {
83  return current_->getBinContent(_id, _bin);
84  }

References current_, and ecaldqm::MESet::getBinContent().

◆ getBinContent() [3/3]

double ecaldqm::MESetMulti::getBinContent ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 85 of file MESetMulti.h.

85  {
86  return current_->getBinContent(_dcctccid, _bin);
87  }

References current_, and ecaldqm::MESet::getBinContent().

◆ getBinEntries() [1/3]

double ecaldqm::MESetMulti::getBinEntries ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

◆ getBinEntries() [2/3]

double ecaldqm::MESetMulti::getBinEntries ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 96 of file MESetMulti.h.

96  {
97  return current_->getBinEntries(_id, _bin);
98  }

References current_, and ecaldqm::MESet::getBinEntries().

◆ getBinEntries() [3/3]

double ecaldqm::MESetMulti::getBinEntries ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 99 of file MESetMulti.h.

99  {
100  return current_->getBinEntries(_dcctccid, _bin);
101  }

References current_, and ecaldqm::MESet::getBinEntries().

◆ getBinError() [1/3]

double ecaldqm::MESetMulti::getBinError ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

◆ getBinError() [2/3]

double ecaldqm::MESetMulti::getBinError ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 90 of file MESetMulti.h.

90  {
91  return current_->getBinError(_id, _bin);
92  }

References current_, and ecaldqm::MESet::getBinError().

◆ getBinError() [3/3]

double ecaldqm::MESetMulti::getBinError ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 93 of file MESetMulti.h.

93 { return current_->getBinError(_dcctccid, _bin); }

References current_, and ecaldqm::MESet::getBinError().

◆ getCurrent()

MESet* ecaldqm::MESetMulti::getCurrent ( ) const
inline

Definition at line 117 of file MESetMulti.h.

117 { return current_; }

References current_.

◆ getIndex()

unsigned ecaldqm::MESetMulti::getIndex ( PathReplacements const &  _replacements) const

Definition at line 137 of file MESetMulti.cc.

137  {
138  unsigned index(0);
139  unsigned base(1);
140  for (typename ReplCandidates::const_reverse_iterator cItr(replCandidates_.rbegin()); cItr != replCandidates_.rend();
141  ++cItr) {
142  typename PathReplacements::const_iterator rItr(_replacements.find(cItr->first));
143  if (rItr == _replacements.end())
144  throw_(cItr->first + " not given in the key for getIndex");
145  unsigned nC(cItr->second.size());
146  unsigned iR(0);
147  for (; iR != nC; ++iR)
148  if (rItr->second == cItr->second[iR])
149  break;
150  if (iR == nC)
151  throw_(rItr->second + " not found in replacement candidates");
152  index += iR * base;
153  base *= nC;
154  }
155 
156  return index;
157  }

References newFWLiteAna::base, replCandidates_, and ecaldqm::MESet::throw_().

Referenced by ecaldqm::PedestalWriter::PedestalWriter(), ecaldqm::PedestalClient::setParams(), ecaldqm::TestPulseClient::setParams(), ecaldqm::CalibrationSummaryClient::setParams(), ecaldqm::PedestalTask::setParams(), ecaldqm::TestPulseTask::setParams(), ecaldqm::ClusterTask::setParams(), and ecaldqm::TestPulseWriter::TestPulseWriter().

◆ getME() [1/2]

const MonitorElement* ecaldqm::MESetMulti::getME ( unsigned  _iME) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 113 of file MESetMulti.h.

113 { return current_->getME(_iME); }

References current_, and ecaldqm::MESet::getME().

◆ getME() [2/2]

MonitorElement* ecaldqm::MESetMulti::getME ( unsigned  _iME)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 114 of file MESetMulti.h.

114 { return current_->getME(_iME); }

References current_, and ecaldqm::MESet::getME().

◆ getMultiplicity()

unsigned ecaldqm::MESetMulti::getMultiplicity ( ) const
inline

Definition at line 118 of file MESetMulti.h.

118 { return sets_.size(); }

References sets_.

◆ getPath()

const std::string& ecaldqm::MESetMulti::getPath ( ) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 112 of file MESetMulti.h.

112 { return current_->getPath(); }

References current_, and ecaldqm::MESet::getPath().

◆ isVariableBinning()

bool ecaldqm::MESetMulti::isVariableBinning ( ) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 110 of file MESetMulti.h.

110 { return current_->isVariableBinning(); }

References current_, and ecaldqm::MESet::isVariableBinning().

◆ maskMatches()

bool ecaldqm::MESetMulti::maskMatches ( DetId const &  _id,
uint32_t  _mask,
StatusManager const *  _statusManager 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 106 of file MESetMulti.h.

106  {
107  return current_ && current_->maskMatches(_id, _mask, _statusManager);
108  }

References current_, and ecaldqm::MESet::maskMatches().

Referenced by ecaldqm::LaserClient::producePlots(), ecaldqm::TestPulseClient::producePlots(), ecaldqm::PedestalClient::producePlots(), and ecaldqm::LedClient::producePlots().

◆ operator=()

MESet & ecaldqm::MESetMulti::operator= ( MESet const &  _rhs)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 66 of file MESetMulti.cc.

66  {
67  for (unsigned iS(0); iS < sets_.size(); ++iS)
68  delete sets_[iS];
69  sets_.clear();
70  current_ = nullptr;
71 
72  MESetMulti const *pRhs(dynamic_cast<MESetMulti const *>(&_rhs));
73  if (pRhs) {
74  sets_.assign(pRhs->sets_.size(), nullptr);
75 
76  for (unsigned iS(0); iS < pRhs->sets_.size(); ++iS) {
77  sets_[iS] = pRhs->sets_[iS]->clone();
78  if (pRhs->sets_[iS] == pRhs->current_)
79  current_ = sets_[iS];
80  }
81 
82  replCandidates_ = pRhs->replCandidates_;
83  }
84 
85  return MESet::operator=(_rhs);
86  }

References current_, ecaldqm::MESet::operator=(), replCandidates_, and sets_.

◆ reset()

void ecaldqm::MESetMulti::reset ( double  _content = 0.,
double  _error = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 120 of file MESetMulti.cc.

120  {
121  for (unsigned iS(0); iS < sets_.size(); ++iS)
122  sets_[iS]->reset(_content, _error, _entries);
123  }

References btvTracks_cfi::_content, and sets_.

◆ resetAll()

void ecaldqm::MESetMulti::resetAll ( double  _content = 0.,
double  _error = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 125 of file MESetMulti.cc.

125  {
126  for (unsigned iS(0); iS < sets_.size(); ++iS)
127  sets_[iS]->resetAll(_content, _error, _entries);
128  }

References btvTracks_cfi::_content, and sets_.

◆ retrieve()

bool ecaldqm::MESetMulti::retrieve ( DQMStore::IGetter _igetter,
std::string *  _failedPath = nullptr 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 104 of file MESetMulti.cc.

104  {
105  for (unsigned iS(0); iS < sets_.size(); ++iS)
106  if (!sets_[iS]->retrieve(_igetter, _failedPath))
107  return false;
108 
109  active_ = true;
110  return true;
111  }

References ecaldqm::MESet::active_, and sets_.

◆ setBinContent() [1/6]

void ecaldqm::MESetMulti::setBinContent ( DetId const &  _id,
double  _content 
)
inlineoverridevirtual

◆ setBinContent() [2/6]

void ecaldqm::MESetMulti::setBinContent ( DetId const &  _id,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 45 of file MESetMulti.h.

45  {
46  current_->setBinContent(_id, _bin, _content);
47  }

References btvTracks_cfi::_content, current_, and ecaldqm::MESet::setBinContent().

◆ setBinContent() [3/6]

void ecaldqm::MESetMulti::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 41 of file MESetMulti.h.

41  {
43  }

References btvTracks_cfi::_content, current_, and ecaldqm::MESet::setBinContent().

◆ setBinContent() [4/6]

void ecaldqm::MESetMulti::setBinContent ( EcalElectronicsId const &  _id,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 48 of file MESetMulti.h.

48  {
49  current_->setBinContent(_id, _bin, _content);
50  }

References btvTracks_cfi::_content, current_, and ecaldqm::MESet::setBinContent().

◆ setBinContent() [5/6]

void ecaldqm::MESetMulti::setBinContent ( int  _dcctccid,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 44 of file MESetMulti.h.

44 { current_->setBinContent(_dcctccid, _content); }

References btvTracks_cfi::_content, current_, and ecaldqm::MESet::setBinContent().

◆ setBinContent() [6/6]

void ecaldqm::MESetMulti::setBinContent ( int  _dcctccid,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 51 of file MESetMulti.h.

51  {
52  current_->setBinContent(_dcctccid, _bin, _content);
53  }

References btvTracks_cfi::_content, current_, and ecaldqm::MESet::setBinContent().

◆ setBinEntries() [1/6]

void ecaldqm::MESetMulti::setBinEntries ( DetId const &  _id,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 66 of file MESetMulti.h.

66 { current_->setBinEntries(_id, _entries); }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinEntries() [2/6]

void ecaldqm::MESetMulti::setBinEntries ( DetId const &  _id,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 71 of file MESetMulti.h.

71  {
72  current_->setBinEntries(_id, _bin, _entries);
73  }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinEntries() [3/6]

void ecaldqm::MESetMulti::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 67 of file MESetMulti.h.

67  {
68  current_->setBinEntries(_id, _entries);
69  }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinEntries() [4/6]

void ecaldqm::MESetMulti::setBinEntries ( EcalElectronicsId const &  _id,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 74 of file MESetMulti.h.

74  {
75  current_->setBinEntries(_id, _bin, _entries);
76  }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinEntries() [5/6]

void ecaldqm::MESetMulti::setBinEntries ( int  _dcctccid,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 70 of file MESetMulti.h.

70 { current_->setBinEntries(_dcctccid, _entries); }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinEntries() [6/6]

void ecaldqm::MESetMulti::setBinEntries ( int  _dcctccid,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 77 of file MESetMulti.h.

77  {
78  current_->setBinEntries(_dcctccid, _bin, _entries);
79  }

References current_, and ecaldqm::MESet::setBinEntries().

◆ setBinError() [1/6]

void ecaldqm::MESetMulti::setBinError ( DetId const &  _id,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 55 of file MESetMulti.h.

55 { current_->setBinError(_id, _error); }

References current_, and ecaldqm::MESet::setBinError().

◆ setBinError() [2/6]

void ecaldqm::MESetMulti::setBinError ( DetId const &  _id,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 58 of file MESetMulti.h.

58 { current_->setBinError(_id, _bin, _error); }

References current_, and ecaldqm::MESet::setBinError().

◆ setBinError() [3/6]

void ecaldqm::MESetMulti::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 56 of file MESetMulti.h.

56 { current_->setBinError(_id, _error); }

References current_, and ecaldqm::MESet::setBinError().

◆ setBinError() [4/6]

void ecaldqm::MESetMulti::setBinError ( EcalElectronicsId const &  _id,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 59 of file MESetMulti.h.

59  {
60  current_->setBinError(_id, _bin, _error);
61  }

References current_, and ecaldqm::MESet::setBinError().

◆ setBinError() [5/6]

void ecaldqm::MESetMulti::setBinError ( int  _dcctccid,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 57 of file MESetMulti.h.

57 { current_->setBinError(_dcctccid, _error); }

References current_, and ecaldqm::MESet::setBinError().

◆ setBinError() [6/6]

void ecaldqm::MESetMulti::setBinError ( int  _dcctccid,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 62 of file MESetMulti.h.

62  {
63  current_->setBinError(_dcctccid, _bin, _error);
64  }

References current_, and ecaldqm::MESet::setBinError().

◆ use()

void ecaldqm::MESetMulti::use ( unsigned  _iSet) const

Definition at line 130 of file MESetMulti.cc.

130  {
131  if (_iSet >= sets_.size())
132  throw_("MESetMulti index out of range");
133 
134  current_ = sets_[_iSet];
135  }

References current_, sets_, and ecaldqm::MESet::throw_().

Referenced by ecaldqm::LaserClient::producePlots(), ecaldqm::TestPulseClient::producePlots(), ecaldqm::PedestalClient::producePlots(), ecaldqm::LedClient::producePlots(), and ecaldqm::CalibrationSummaryClient::producePlots().

Member Data Documentation

◆ current_

MESet* ecaldqm::MESetMulti::current_
mutableprotected

◆ replCandidates_

ReplCandidates ecaldqm::MESetMulti::replCandidates_
protected

Definition at line 131 of file MESetMulti.h.

Referenced by getIndex(), MESetMulti(), and operator=().

◆ sets_

std::vector<MESet *> ecaldqm::MESetMulti::sets_
protected
bTagCombinedSVVariables_cff.indices
indices
Definition: bTagCombinedSVVariables_cff.py:67
ecaldqm::MESet::throw_
void throw_(std::string const &_message) const
Definition: MESet.h:121
electrons_cff.bool
bool
Definition: electrons_cff.py:393
ecaldqm::MESet::getME
virtual const MonitorElement * getME(unsigned _iME) const
Definition: MESet.h:98
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
ecaldqm::MESet::setBinEntries
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:65
ecaldqm::MESet::operator=
virtual MESet & operator=(MESet const &)
Definition: MESet.cc:64
ecaldqm::MESet::setBinError
virtual void setBinError(DetId const &, double)
Definition: MESet.h:58
ecaldqm::MESet::PathReplacements
std::map< std::string, std::string > PathReplacements
Definition: MESet.h:31
ecaldqm::MESetMulti::replCandidates_
ReplCandidates replCandidates_
Definition: MESetMulti.h:131
ecaldqm::MESetMulti::MESetMulti
MESetMulti(MESet const &, ReplCandidates const &)
Definition: MESetMulti.cc:4
ecaldqm::MESet::fill
virtual void fill(DetId const &, double=1., double=1., double=1.)
Definition: MESet.h:46
ecaldqm::MESet::getBinContent
virtual double getBinContent(DetId const &, int=0) const
Definition: MESet.h:72
dqmdumpme.last
last
Definition: dqmdumpme.py:56
ecaldqm::MESetMulti::resetAll
void resetAll(double=0., double=0., double=0.) override
Definition: MESetMulti.cc:125
ecaldqm::MESet::active_
bool active_
Definition: MESet.h:133
ecaldqm::MESetMulti::book
void book(DQMStore::IBooker &) override
Definition: MESetMulti.cc:97
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESetMulti::clear
void clear() const override
Definition: MESetMulti.cc:113
ecaldqm::MESet::path_
std::string path_
Definition: MESet.h:125
ecaldqm::MESet::isVariableBinning
virtual bool isVariableBinning() const
Definition: MESet.h:97
ecaldqm::MESet::getBinError
virtual double getBinError(DetId const &, int=0) const
Definition: MESet.h:76
ecaldqm::MESet::getBinEntries
virtual double getBinEntries(DetId const &, int=0) const
Definition: MESet.h:80
ecaldqm::MESetMulti::reset
void reset(double=0., double=0., double=0.) override
Definition: MESetMulti.cc:120
ecaldqm::MESetMulti::sets_
std::vector< MESet * > sets_
Definition: MESetMulti.h:130
ecaldqm::MESetMulti::retrieve
bool retrieve(DQMStore::IGetter &, std::string *=nullptr) const override
Definition: MESetMulti.cc:104
ecaldqm::MESetMulti::current_
MESet * current_
Definition: MESetMulti.h:129
ecaldqm::MESet::setBinContent
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:51
ecaldqm::MESet::formPath
std::string formPath(PathReplacements const &) const
Definition: MESet.cc:150
ecaldqm::MESet::MESet
MESet()
Definition: MESet.cc:14
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4
ecaldqm::MESet::beginChannel
virtual const_iterator beginChannel() const
Definition: MESet.h:323
ecaldqm::MESet::getPath
virtual const std::string & getPath() const
Definition: MESet.h:92
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
ecaldqm::MESet::maskMatches
virtual bool maskMatches(DetId const &, uint32_t, StatusManager const *) const
Definition: MESet.cc:167
btvTracks_cfi._content
_content
Definition: btvTracks_cfi.py:5
newFWLiteAna.base
base
Definition: newFWLiteAna.py:92