CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
ecaldqm::MESet::Bin Struct Reference

#include <MESet.h>

Inheritance diagram for ecaldqm::MESet::Bin:
ecaldqm::MESet::ConstBin

Public Member Functions

 Bin ()
 
 Bin (MESet &_set, unsigned _iME=0, int _iBin=1)
 
 Bin (Bin const &_orig)
 
void fill (double _w=1.)
 
void fill (double _y, double _w=1.)
 
MonitorElementgetME () const
 
MESetgetMESet () const
 
ConstBinoperator= (Bin const &_rhs)
 
void setBinContent (double _content)
 
void setBinEntries (double _entries)
 
void setBinError (double _error)
 
void setMESet (MESet &_meSet)
 
- Public Member Functions inherited from ecaldqm::MESet::ConstBin
 ConstBin ()
 
 ConstBin (MESet const &, unsigned=0, int=1)
 
 ConstBin (ConstBin const &_orig)
 
double getBinContent () const
 
double getBinEntries () const
 
double getBinError () const
 
uint32_t getId () const
 
MonitorElement const * getME () const
 
MESet const * getMESet () const
 
bool isChannel () const
 
ConstBinoperator= (ConstBin const &)
 
bool operator== (ConstBin const &_rhs) const
 
void setMESet (MESet const &_meSet)
 

Protected Attributes

MESetmeSet_
 
- Protected Attributes inherited from ecaldqm::MESet::ConstBin
MESet const * meSet_
 

Additional Inherited Members

- Public Attributes inherited from ecaldqm::MESet::ConstBin
int iBin
 
unsigned iME
 
binning::ObjectType otype
 

Detailed Description

Definition at line 193 of file MESet.h.

Constructor & Destructor Documentation

ecaldqm::MESet::Bin::Bin ( )
inline

Definition at line 198 of file MESet.h.

198 : ConstBin(), meSet_(nullptr) {}
MESet * meSet_
Definition: MESet.h:195
ecaldqm::MESet::Bin::Bin ( MESet _set,
unsigned  _iME = 0,
int  _iBin = 1 
)
inline

Definition at line 199 of file MESet.h.

199 : ConstBin(_set, _iME, _iBin), meSet_(&_set) {}
MESet * meSet_
Definition: MESet.h:195
ecaldqm::MESet::Bin::Bin ( Bin const &  _orig)
inline

Definition at line 200 of file MESet.h.

200 : ConstBin(_orig), meSet_(_orig.meSet_) {}
MESet * meSet_
Definition: MESet.h:195

Member Function Documentation

void ecaldqm::MESet::Bin::fill ( double  _w = 1.)
inline

Definition at line 208 of file MESet.h.

References ecaldqm::MESet::fill_(), ecaldqm::MESet::ConstBin::iBin, and ecaldqm::MESet::ConstBin::iME.

208  {
209  if (meSet_)
210  meSet_->fill_(iME, iBin, _w);
211  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
MESet * meSet_
Definition: MESet.h:195
void ecaldqm::MESet::Bin::fill ( double  _y,
double  _w = 1. 
)
inline

Definition at line 212 of file MESet.h.

References ecaldqm::MESet::fill_(), ecaldqm::MESet::ConstBin::iBin, and ecaldqm::MESet::ConstBin::iME.

212  {
213  if (meSet_)
214  meSet_->fill_(iME, iBin, _y, _w);
215  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
MESet * meSet_
Definition: MESet.h:195
MonitorElement* ecaldqm::MESet::Bin::getME ( ) const
inline

Definition at line 228 of file MESet.h.

References ecaldqm::MESet::getME(), and ecaldqm::MESet::ConstBin::iME.

228  {
229  if (meSet_ && iME != unsigned(-1))
230  return meSet_->getME(iME);
231  else
232  return nullptr;
233  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:97
MESet * meSet_
Definition: MESet.h:195
MESet* ecaldqm::MESet::Bin::getMESet ( ) const
inline

Definition at line 238 of file MESet.h.

References ecaldqm::MESet::ConstBin::meSet_.

238 { return meSet_; }
MESet * meSet_
Definition: MESet.h:195
ConstBin& ecaldqm::MESet::Bin::operator= ( Bin const &  _rhs)
inline

Definition at line 201 of file MESet.h.

References ecaldqm::MESet::ConstBin::meSet_, meSet_, and ecaldqm::MESet::ConstBin::operator=().

201  {
202  bool wasNull(ConstBin::meSet_ == nullptr);
203  ConstBin::operator=(_rhs);
204  if (wasNull)
205  meSet_ = _rhs.meSet_;
206  return *this;
207  }
MESet const * meSet_
Definition: MESet.h:139
ConstBin & operator=(ConstBin const &)
Definition: MESet.cc:343
MESet * meSet_
Definition: MESet.h:195
void ecaldqm::MESet::Bin::setBinContent ( double  _content)
inline

Definition at line 216 of file MESet.h.

References ecaldqm::MESet::getME(), ecaldqm::MESet::ConstBin::iBin, ecaldqm::MESet::ConstBin::iME, and MonitorElement::setBinContent().

Referenced by ecaldqm::SelectiveReadoutClient::producePlots().

216  {
217  if (meSet_ && iME != unsigned(-1))
219  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:97
void setBinContent(int binx, double content)
set content of bin (1-D)
MESet * meSet_
Definition: MESet.h:195
void ecaldqm::MESet::Bin::setBinEntries ( double  _entries)
inline

Definition at line 224 of file MESet.h.

References ecaldqm::MESet::getME(), ecaldqm::MESet::ConstBin::iBin, ecaldqm::MESet::ConstBin::iME, and MonitorElement::setBinEntries().

224  {
225  if (meSet_ && iME != unsigned(-1))
226  meSet_->getME(iME)->setBinEntries(iBin, _entries);
227  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:97
MESet * meSet_
Definition: MESet.h:195
void setBinEntries(int bin, double nentries)
set # of bin entries (to be used for profiles)
void ecaldqm::MESet::Bin::setBinError ( double  _error)
inline

Definition at line 220 of file MESet.h.

References ecaldqm::MESet::getME(), ecaldqm::MESet::ConstBin::iBin, ecaldqm::MESet::ConstBin::iME, and MonitorElement::setBinError().

220  {
221  if (meSet_ && iME != unsigned(-1))
222  meSet_->getME(iME)->setBinError(iBin, _error);
223  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:97
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MESet * meSet_
Definition: MESet.h:195
void ecaldqm::MESet::Bin::setMESet ( MESet _meSet)
inline

Definition at line 234 of file MESet.h.

References ecaldqm::MESet::ConstBin::meSet_.

234  {
235  ConstBin::meSet_ = &_meSet;
236  meSet_ = &_meSet;
237  }
MESet const * meSet_
Definition: MESet.h:139
MESet * meSet_
Definition: MESet.h:195

Member Data Documentation

MESet* ecaldqm::MESet::Bin::meSet_
protected

Definition at line 195 of file MESet.h.

Referenced by operator=().