CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 (EcalElectronicsMapping const *electronicsMap) 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 220 of file MESet.h.

Constructor & Destructor Documentation

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

Definition at line 225 of file MESet.h.

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

Definition at line 226 of file MESet.h.

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

Definition at line 227 of file MESet.h.

227 : ConstBin(_orig), meSet_(_orig.meSet_) {}
MESet * meSet_
Definition: MESet.h:222

Member Function Documentation

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

Definition at line 235 of file MESet.h.

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

235  {
236  if (meSet_)
237  meSet_->fill_(iME, iBin, _w);
238  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
MESet * meSet_
Definition: MESet.h:222
void ecaldqm::MESet::Bin::fill ( double  _y,
double  _w = 1. 
)
inline

Definition at line 239 of file MESet.h.

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

239  {
240  if (meSet_)
241  meSet_->fill_(iME, iBin, _y, _w);
242  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
MESet * meSet_
Definition: MESet.h:222
MonitorElement* ecaldqm::MESet::Bin::getME ( ) const
inline

Definition at line 255 of file MESet.h.

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

255  {
256  if (meSet_ && iME != unsigned(-1))
257  return meSet_->getME(iME);
258  else
259  return nullptr;
260  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:126
MESet * meSet_
Definition: MESet.h:222
MESet* ecaldqm::MESet::Bin::getMESet ( ) const
inline

Definition at line 265 of file MESet.h.

References meSet_.

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

Definition at line 228 of file MESet.h.

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

228  {
229  bool wasNull(ConstBin::meSet_ == nullptr);
230  ConstBin::operator=(_rhs);
231  if (wasNull)
232  meSet_ = _rhs.meSet_;
233  return *this;
234  }
MESet const * meSet_
Definition: MESet.h:166
ConstBin & operator=(ConstBin const &)
Definition: MESet.cc:329
MESet * meSet_
Definition: MESet.h:222
void ecaldqm::MESet::Bin::setBinContent ( double  _content)
inline

Definition at line 243 of file MESet.h.

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

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

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

Definition at line 251 of file MESet.h.

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

251  {
252  if (meSet_ && iME != unsigned(-1))
253  meSet_->getME(iME)->setBinEntries(iBin, _entries);
254  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:126
MESet * meSet_
Definition: MESet.h:222
virtual 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 247 of file MESet.h.

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

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

Definition at line 261 of file MESet.h.

References ecaldqm::MESet::ConstBin::meSet_, and meSet_.

261  {
262  ConstBin::meSet_ = &_meSet;
263  meSet_ = &_meSet;
264  }
MESet const * meSet_
Definition: MESet.h:166
MESet * meSet_
Definition: MESet.h:222

Member Data Documentation

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

Definition at line 222 of file MESet.h.

Referenced by fill(), getME(), getMESet(), operator=(), setBinContent(), setBinEntries(), setBinError(), and setMESet().