CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 &) 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 (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
 
void fill (double _x, 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
 
MonitorElement const * getME (unsigned _iME) const override
 
MonitorElementgetME (unsigned _iME) override
 
unsigned getMultiplicity () const
 
std::string const & 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 const &, std::string *=0) const override
 
void setBinContent (DetId const &_id, double _content) override
 
void setBinContent (EcalElectronicsId const &_id, double _content) override
 
void setBinContent (int _dcctccid, double _content) override
 
void setBinContent (DetId const &_id, int _bin, double _content) override
 
void setBinContent (EcalElectronicsId const &_id, int _bin, double _content) override
 
void setBinContent (int _dcctccid, int _bin, double _content) override
 
void setBinEntries (DetId const &_id, double _entries) override
 
void setBinEntries (EcalElectronicsId const &_id, double _entries) override
 
void setBinEntries (int _dcctccid, double _entries) override
 
void setBinEntries (DetId const &_id, int _bin, double _entries) override
 
void setBinEntries (EcalElectronicsId const &_id, int _bin, double _entries) override
 
void setBinEntries (int _dcctccid, int _bin, double _entries) override
 
void setBinError (DetId const &_id, double _error) override
 
void setBinError (EcalElectronicsId const &_id, double _error) override
 
void setBinError (int _dcctccid, double _error) override
 
void setBinError (DetId const &_id, int _bin, double _error) override
 
void setBinError (EcalElectronicsId const &_id, int _bin, double _error) override
 
void setBinError (int _dcctccid, int _bin, double _error) override
 
void use (unsigned) const
 
 ~MESetMulti ()
 
- 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 (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void recoverStats ()
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual void softReset ()
 
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, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
virtual void fill_ (unsigned, double, double, double)
 
void throw_ (std::string const &_message) const
 

Detailed Description

Definition at line 14 of file MESetMulti.h.

Member Typedef Documentation

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

Definition at line 16 of file MESetMulti.h.

Constructor & Destructor Documentation

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

Definition at line 5 of file MESetMulti.cc.

References ecaldqm::MESet::clone(), current_, ecaldqm::MESet::formPath(), getHLTprescales::index, prof2calltree::last, replCandidates_, and sets_.

Referenced by clone().

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

Definition at line 49 of file MESetMulti.cc.

References current_, and sets_.

49  :
50  MESet(_orig),
51  current_(0),
52  sets_(_orig.sets_.size(), 0),
53  replCandidates_(_orig.replCandidates_)
54  {
55  if(sets_.size() == 0) return;
56 
57  for(unsigned iS(0); iS < sets_.size(); ++iS){
58  if(!_orig.sets_[iS]) continue;
59  sets_[iS] = _orig.sets_[iS]->clone();
60  if(_orig.sets_[iS] == _orig.current_) current_ = sets_[iS];
61  }
62  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
ReplCandidates replCandidates_
Definition: MESetMulti.h:95
ecaldqm::MESetMulti::~MESetMulti ( )

Definition at line 64 of file MESetMulti.cc.

References sets_.

65  {
66  for(unsigned iS(0); iS < sets_.size(); ++iS)
67  delete sets_[iS];
68  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 85 of file MESetMulti.h.

References current_.

85 { return const_iterator(*current_); }
iterator ecaldqm::MESetMulti::begin ( void  )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 88 of file MESetMulti.h.

References current_.

88 { return iterator(*current_); }
const_iterator ecaldqm::MESetMulti::beginChannel ( ) const
inlineoverridevirtual
iterator ecaldqm::MESetMulti::beginChannel ( )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 90 of file MESetMulti.h.

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

90 { return current_->beginChannel(); }
virtual const_iterator beginChannel() const
Definition: MESet.h:292
void ecaldqm::MESetMulti::book ( DQMStore _booker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 104 of file MESetMulti.cc.

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

Referenced by book().

105  {
106  for(unsigned iS(0); iS < sets_.size(); ++iS)
107  sets_[iS]->book(_booker);
108 
109  active_ = true;
110  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
bool active_
Definition: MESet.h:139
void book(DQMStore &) override
Definition: MESetMulti.cc:104
void ecaldqm::MESetMulti::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 113 of file MESetMulti.cc.

References ecaldqm::MESet::active_, book(), and sets_.

114  {
115  for(unsigned iS(0); iS < sets_.size(); ++iS)
116  sets_[iS]->book(_ibooker);
117 
118  active_ = true;
119  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
bool active_
Definition: MESet.h:139
void book(DQMStore &) override
Definition: MESetMulti.cc:104
void ecaldqm::MESetMulti::clear ( void  ) const
overridevirtual
MESet * ecaldqm::MESetMulti::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 94 of file MESetMulti.cc.

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

95  {
97  if(_path != "") path_ = _path;
98  MESet* copy(new MESetMulti(*this));
99  path_ = path;
100  return copy;
101  }
MESetMulti(MESet const &, ReplCandidates const &)
Definition: MESetMulti.cc:5
std::string path_
Definition: MESet.h:132
const_iterator ecaldqm::MESetMulti::end ( void  ) const
inlineoverridevirtual
iterator ecaldqm::MESetMulti::end ( void  )
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 89 of file MESetMulti.h.

References current_.

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

89 { return iterator(*current_, -1, -1); }
void ecaldqm::MESetMulti::fill ( DetId const &  _id,
double  _xyw = 1.,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual
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.

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

32 { current_->fill(_id, _xyw, _yw, _w); }
virtual void fill(DetId const &, double=1., double=1., double=1.)
Definition: MESet.h:47
void ecaldqm::MESetMulti::fill ( int  _dcctccid,
double  _xyw = 1.,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 33 of file MESetMulti.h.

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

33 { current_->fill(_dcctccid, _xyw, _yw, _w); }
virtual void fill(DetId const &, double=1., double=1., double=1.)
Definition: MESet.h:47
void ecaldqm::MESetMulti::fill ( double  _x,
double  _yw = 1.,
double  _w = 1. 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 34 of file MESetMulti.h.

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

34 { current_->fill(_x, _yw, _w); }
virtual void fill(DetId const &, double=1., double=1., double=1.)
Definition: MESet.h:47
double ecaldqm::MESetMulti::getBinContent ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual
double ecaldqm::MESetMulti::getBinContent ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 58 of file MESetMulti.h.

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

58 { return current_->getBinContent(_id, _bin); }
virtual double getBinContent(DetId const &, int=0) const
Definition: MESet.h:73
double ecaldqm::MESetMulti::getBinContent ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 59 of file MESetMulti.h.

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

59 { return current_->getBinContent(_dcctccid, _bin); }
virtual double getBinContent(DetId const &, int=0) const
Definition: MESet.h:73
double ecaldqm::MESetMulti::getBinEntries ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 65 of file MESetMulti.h.

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

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

65 { return current_->getBinEntries(_id, _bin); }
virtual double getBinEntries(DetId const &, int=0) const
Definition: MESet.h:81
double ecaldqm::MESetMulti::getBinEntries ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 66 of file MESetMulti.h.

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

66 { return current_->getBinEntries(_id, _bin); }
virtual double getBinEntries(DetId const &, int=0) const
Definition: MESet.h:81
double ecaldqm::MESetMulti::getBinEntries ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 67 of file MESetMulti.h.

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

67 { return current_->getBinEntries(_dcctccid, _bin); }
virtual double getBinEntries(DetId const &, int=0) const
Definition: MESet.h:81
double ecaldqm::MESetMulti::getBinError ( DetId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 61 of file MESetMulti.h.

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

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

61 { return current_->getBinError(_id, _bin); }
virtual double getBinError(DetId const &, int=0) const
Definition: MESet.h:77
double ecaldqm::MESetMulti::getBinError ( EcalElectronicsId const &  _id,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 62 of file MESetMulti.h.

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

62 { return current_->getBinError(_id, _bin); }
virtual double getBinError(DetId const &, int=0) const
Definition: MESet.h:77
double ecaldqm::MESetMulti::getBinError ( int  _dcctccid,
int  _bin = 0 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 63 of file MESetMulti.h.

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

63 { return current_->getBinError(_dcctccid, _bin); }
virtual double getBinError(DetId const &, int=0) const
Definition: MESet.h:77
MESet* ecaldqm::MESetMulti::getCurrent ( ) const
inline

Definition at line 81 of file MESetMulti.h.

References current_.

81 { return current_; }
unsigned ecaldqm::MESetMulti::getIndex ( PathReplacements const &  _replacements) const

Definition at line 164 of file MESetMulti.cc.

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

Referenced by ecaldqm::LaserWriter::LaserWriter(), ecaldqm::LedWriter::LedWriter(), ecaldqm::PedestalWriter::PedestalWriter(), ecaldqm::LaserClient::setParams(), ecaldqm::PedestalClient::setParams(), ecaldqm::TestPulseClient::setParams(), ecaldqm::LedClient::setParams(), ecaldqm::CalibrationSummaryClient::setParams(), ecaldqm::PedestalTask::setParams(), ecaldqm::TestPulseTask::setParams(), ecaldqm::LaserTask::setParams(), ecaldqm::LedTask::setParams(), ecaldqm::ClusterTask::setParams(), and ecaldqm::TestPulseWriter::TestPulseWriter().

165  {
166  unsigned index(0);
167  unsigned base(1);
168  for(typename ReplCandidates::const_reverse_iterator cItr(replCandidates_.rbegin()); cItr != replCandidates_.rend(); ++cItr){
169  typename PathReplacements::const_iterator rItr(_replacements.find(cItr->first));
170  if(rItr == _replacements.end())
171  throw_(cItr->first + " not given in the key for getIndex");
172  unsigned nC(cItr->second.size());
173  unsigned iR(0);
174  for(; iR != nC; ++iR)
175  if(rItr->second == cItr->second[iR]) break;
176  if(iR == nC)
177  throw_(rItr->second + " not found in replacement candidates");
178  index += iR * base;
179  base *= nC;
180  }
181 
182  return index;
183  }
tuple base
Main Program
Definition: newFWLiteAna.py:92
void throw_(std::string const &_message) const
Definition: MESet.h:125
ReplCandidates replCandidates_
Definition: MESetMulti.h:95
MonitorElement const* ecaldqm::MESetMulti::getME ( unsigned  _iME) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 77 of file MESetMulti.h.

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

77 { return current_->getME(_iME); }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:99
MonitorElement* ecaldqm::MESetMulti::getME ( unsigned  _iME)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 78 of file MESetMulti.h.

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

78 { return current_->getME(_iME); }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:99
unsigned ecaldqm::MESetMulti::getMultiplicity ( ) const
inline

Definition at line 82 of file MESetMulti.h.

References sets_.

Referenced by ecaldqm::DQWorkerClient::resetMEs().

82 { return sets_.size(); }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
std::string const& ecaldqm::MESetMulti::getPath ( ) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 76 of file MESetMulti.h.

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

76 { return current_->getPath(); }
virtual std::string const & getPath() const
Definition: MESet.h:93
bool ecaldqm::MESetMulti::isVariableBinning ( ) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 74 of file MESetMulti.h.

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

74 { return current_->isVariableBinning(); }
virtual bool isVariableBinning() const
Definition: MESet.h:98
bool ecaldqm::MESetMulti::maskMatches ( DetId const &  _id,
uint32_t  _mask,
StatusManager const *  _statusManager 
) const
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 72 of file MESetMulti.h.

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

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

72 { return current_ && current_->maskMatches(_id, _mask, _statusManager); }
virtual bool maskMatches(DetId const &, uint32_t, StatusManager const *) const
Definition: MESet.cc:181
MESet & ecaldqm::MESetMulti::operator= ( MESet const &  _rhs)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 71 of file MESetMulti.cc.

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

72  {
73  for(unsigned iS(0); iS < sets_.size(); ++iS)
74  delete sets_[iS];
75  sets_.clear();
76  current_ = 0;
77 
78  MESetMulti const* pRhs(dynamic_cast<MESetMulti const*>(&_rhs));
79  if(pRhs){
80  sets_.assign(pRhs->sets_.size(), 0);
81 
82  for(unsigned iS(0); iS < pRhs->sets_.size(); ++iS){
83  sets_[iS] = pRhs->sets_[iS]->clone();
84  if(pRhs->sets_[iS] == pRhs->current_) current_ = sets_[iS];
85  }
86 
87  replCandidates_ = pRhs->replCandidates_;
88  }
89 
90  return MESet::operator=(_rhs);
91  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
MESetMulti(MESet const &, ReplCandidates const &)
Definition: MESetMulti.cc:5
virtual MESet & operator=(MESet const &)
Definition: MESet.cc:70
ReplCandidates replCandidates_
Definition: MESetMulti.h:95
void ecaldqm::MESetMulti::reset ( double  _content = 0.,
double  _error = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 141 of file MESetMulti.cc.

References sets_.

Referenced by ecaldqm::DQWorkerClient::resetMEs().

142  {
143  for(unsigned iS(0); iS < sets_.size(); ++iS)
144  sets_[iS]->reset(_content, _error, _entries);
145  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
void reset(double=0., double=0., double=0.) override
Definition: MESetMulti.cc:141
void ecaldqm::MESetMulti::resetAll ( double  _content = 0.,
double  _error = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 148 of file MESetMulti.cc.

References sets_.

Referenced by ecaldqm::DQWorkerClient::resetMEs().

149  {
150  for(unsigned iS(0); iS < sets_.size(); ++iS)
151  sets_[iS]->resetAll(_content, _error, _entries);
152  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
void resetAll(double=0., double=0., double=0.) override
Definition: MESetMulti.cc:148
bool ecaldqm::MESetMulti::retrieve ( DQMStore const &  _store,
std::string *  _failedPath = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 122 of file MESetMulti.cc.

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

123  {
124  for(unsigned iS(0); iS < sets_.size(); ++iS)
125  if(!sets_[iS]->retrieve(_store, _failedPath)) return false;
126 
127  active_ = true;
128  return true;
129  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
bool retrieve(DQMStore const &, std::string *=0) const override
Definition: MESetMulti.cc:122
bool active_
Definition: MESet.h:139
void ecaldqm::MESetMulti::setBinContent ( DetId const &  _id,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 36 of file MESetMulti.h.

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

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

36 { current_->setBinContent(_id, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 37 of file MESetMulti.h.

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

37 { current_->setBinContent(_id, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinContent ( int  _dcctccid,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 38 of file MESetMulti.h.

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

38 { current_->setBinContent(_dcctccid, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinContent ( DetId const &  _id,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 39 of file MESetMulti.h.

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

39 { current_->setBinContent(_id, _bin, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinContent ( EcalElectronicsId const &  _id,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 40 of file MESetMulti.h.

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

40 { current_->setBinContent(_id, _bin, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinContent ( int  _dcctccid,
int  _bin,
double  _content 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 41 of file MESetMulti.h.

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

41 { current_->setBinContent(_dcctccid, _bin, _content); }
virtual void setBinContent(DetId const &, double)
Definition: MESet.h:52
void ecaldqm::MESetMulti::setBinEntries ( DetId const &  _id,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 50 of file MESetMulti.h.

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

50 { current_->setBinEntries(_id, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 51 of file MESetMulti.h.

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

51 { current_->setBinEntries(_id, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinEntries ( int  _dcctccid,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 52 of file MESetMulti.h.

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

52 { current_->setBinEntries(_dcctccid, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinEntries ( DetId const &  _id,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 53 of file MESetMulti.h.

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

53 { current_->setBinEntries(_id, _bin, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinEntries ( EcalElectronicsId const &  _id,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 54 of file MESetMulti.h.

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

54 { current_->setBinEntries(_id, _bin, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinEntries ( int  _dcctccid,
int  _bin,
double  _entries 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 55 of file MESetMulti.h.

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

55 { current_->setBinEntries(_dcctccid, _bin, _entries); }
virtual void setBinEntries(DetId const &, double)
Definition: MESet.h:66
void ecaldqm::MESetMulti::setBinError ( DetId const &  _id,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 43 of file MESetMulti.h.

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

43 { current_->setBinError(_id, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 44 of file MESetMulti.h.

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

44 { current_->setBinError(_id, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::setBinError ( int  _dcctccid,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 45 of file MESetMulti.h.

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

45 { current_->setBinError(_dcctccid, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::setBinError ( DetId const &  _id,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 46 of file MESetMulti.h.

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

46 { current_->setBinError(_id, _bin, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::setBinError ( EcalElectronicsId const &  _id,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 47 of file MESetMulti.h.

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

47 { current_->setBinError(_id, _bin, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::setBinError ( int  _dcctccid,
int  _bin,
double  _error 
)
inlineoverridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 48 of file MESetMulti.h.

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

48 { current_->setBinError(_dcctccid, _bin, _error); }
virtual void setBinError(DetId const &, double)
Definition: MESet.h:59
void ecaldqm::MESetMulti::use ( unsigned  _iSet) const

Definition at line 155 of file MESetMulti.cc.

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

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

156  {
157  if(_iSet >= sets_.size())
158  throw_("MESetMulti index out of range");
159 
160  current_ = sets_[_iSet];
161  }
std::vector< MESet * > sets_
Definition: MESetMulti.h:94
void throw_(std::string const &_message) const
Definition: MESet.h:125

Member Data Documentation

MESet* ecaldqm::MESetMulti::current_
mutableprotected
ReplCandidates ecaldqm::MESetMulti::replCandidates_
protected

Definition at line 95 of file MESetMulti.h.

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

std::vector<MESet*> ecaldqm::MESetMulti::sets_
protected