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 (Bin const &_orig)
 
 Bin (MESet &_set, unsigned _iME=0, int _iBin=1)
 
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 (ConstBin const &_orig)
 
 ConstBin (MESet const &, unsigned=0, int=1)
 
double getBinContent () const
 
double getBinEntries () const
 
double getBinError () const
 
uint32_t getId () const
 
const MonitorElementgetME () const
 
const MESetgetMESet () 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
const MESetmeSet_
 

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

◆ Bin() [1/3]

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

Definition at line 225 of file MESet.h.

225 : ConstBin(), meSet_(nullptr) {}

◆ Bin() [2/3]

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) {}

◆ Bin() [3/3]

ecaldqm::MESet::Bin::Bin ( Bin const &  _orig)
inline

Definition at line 227 of file MESet.h.

227 : ConstBin(_orig), meSet_(_orig.meSet_) {}

Member Function Documentation

◆ fill() [1/2]

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

Definition at line 235 of file MESet.h.

235  {
236  if (meSet_)
237  meSet_->fill_(iME, iBin, _w);
238  }

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

◆ fill() [2/2]

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

Definition at line 239 of file MESet.h.

239  {
240  if (meSet_)
241  meSet_->fill_(iME, iBin, _y, _w);
242  }

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

◆ getME()

MonitorElement* ecaldqm::MESet::Bin::getME ( ) const
inline

Definition at line 255 of file MESet.h.

255  {
256  if (meSet_ && iME != unsigned(-1))
257  return meSet_->getME(iME);
258  else
259  return nullptr;
260  }

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

◆ getMESet()

MESet* ecaldqm::MESet::Bin::getMESet ( ) const
inline

Definition at line 265 of file MESet.h.

265 { return meSet_; }

References meSet_.

◆ operator=()

ConstBin& ecaldqm::MESet::Bin::operator= ( Bin const &  _rhs)
inline

Definition at line 228 of file MESet.h.

228  {
229  bool wasNull(ConstBin::meSet_ == nullptr);
230  ConstBin::operator=(_rhs);
231  if (wasNull)
232  meSet_ = _rhs.meSet_;
233  return *this;
234  }

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

◆ setBinContent()

void ecaldqm::MESet::Bin::setBinContent ( double  _content)
inline

◆ setBinEntries()

void ecaldqm::MESet::Bin::setBinEntries ( double  _entries)
inline

Definition at line 251 of file MESet.h.

251  {
252  if (meSet_ && iME != unsigned(-1))
253  meSet_->getME(iME)->setBinEntries(iBin, _entries);
254  }

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

◆ setBinError()

void ecaldqm::MESet::Bin::setBinError ( double  _error)
inline

Definition at line 247 of file MESet.h.

247  {
248  if (meSet_ && iME != unsigned(-1))
249  meSet_->getME(iME)->setBinError(iBin, _error);
250  }

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

◆ setMESet()

void ecaldqm::MESet::Bin::setMESet ( MESet _meSet)
inline

Definition at line 261 of file MESet.h.

261  {
262  ConstBin::meSet_ = &_meSet;
263  meSet_ = &_meSet;
264  }

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

Member Data Documentation

◆ meSet_

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().

ecaldqm::MESet::fill_
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
ecaldqm::MESet::getME
virtual const MonitorElement * getME(unsigned _iME) const
Definition: MESet.h:126
ecaldqm::MESet::ConstBin::ConstBin
ConstBin()
Definition: MESet.h:173
ecaldqm::MESet::ConstBin::meSet_
const MESet * meSet_
Definition: MESet.h:166
ecaldqm::MESet::ConstBin::iBin
int iBin
Definition: MESet.h:170
dqm::impl::MonitorElement::setBinEntries
virtual void setBinEntries(int bin, double nentries)
set # of bin entries (to be used for profiles)
Definition: MonitorElement.cc:727
dqm::impl::MonitorElement::setBinContent
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
Definition: MonitorElement.cc:691
ecaldqm::MESet::ConstBin::iME
unsigned iME
Definition: MESet.h:169
ecaldqm::MESet::ConstBin::operator=
ConstBin & operator=(ConstBin const &)
Definition: MESet.cc:329
dqm::impl::MonitorElement::setBinError
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
Definition: MonitorElement.cc:709
btvTracks_cfi._content
_content
Definition: btvTracks_cfi.py:5
ecaldqm::MESet::Bin::meSet_
MESet * meSet_
Definition: MESet.h:222