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 () 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 192 of file MESet.h.

Constructor & Destructor Documentation

◆ Bin() [1/3]

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

Definition at line 197 of file MESet.h.

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

◆ Bin() [2/3]

ecaldqm::MESet::Bin::Bin ( MESet _set,
unsigned  _iME = 0,
int  _iBin = 1 
)
inline

Definition at line 198 of file MESet.h.

198 : ConstBin(_set, _iME, _iBin), meSet_(&_set) {}

◆ Bin() [3/3]

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

Definition at line 199 of file MESet.h.

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

Member Function Documentation

◆ fill() [1/2]

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

Definition at line 207 of file MESet.h.

207  {
208  if (meSet_)
209  meSet_->fill_(iME, iBin, _w);
210  }

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 211 of file MESet.h.

211  {
212  if (meSet_)
213  meSet_->fill_(iME, iBin, _y, _w);
214  }

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 227 of file MESet.h.

227  {
228  if (meSet_ && iME != unsigned(-1))
229  return meSet_->getME(iME);
230  else
231  return nullptr;
232  }

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

◆ getMESet()

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

Definition at line 237 of file MESet.h.

237 { return meSet_; }

References meSet_.

◆ operator=()

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

Definition at line 200 of file MESet.h.

200  {
201  bool wasNull(ConstBin::meSet_ == nullptr);
202  ConstBin::operator=(_rhs);
203  if (wasNull)
204  meSet_ = _rhs.meSet_;
205  return *this;
206  }

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 223 of file MESet.h.

223  {
224  if (meSet_ && iME != unsigned(-1))
225  meSet_->getME(iME)->setBinEntries(iBin, _entries);
226  }

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 219 of file MESet.h.

219  {
220  if (meSet_ && iME != unsigned(-1))
221  meSet_->getME(iME)->setBinError(iBin, _error);
222  }

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 233 of file MESet.h.

233  {
234  ConstBin::meSet_ = &_meSet;
235  meSet_ = &_meSet;
236  }

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

Member Data Documentation

◆ meSet_

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

Definition at line 194 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:246
ecaldqm::MESet::getME
virtual const MonitorElement * getME(unsigned _iME) const
Definition: MESet.h:98
ecaldqm::MESet::ConstBin::ConstBin
ConstBin()
Definition: MESet.h:145
ecaldqm::MESet::ConstBin::meSet_
const MESet * meSet_
Definition: MESet.h:138
ecaldqm::MESet::ConstBin::iBin
int iBin
Definition: MESet.h:142
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:141
ecaldqm::MESet::ConstBin::operator=
ConstBin & operator=(ConstBin const &)
Definition: MESet.cc:323
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:194