test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 () 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_(0) {}
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.

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, ecaldqm::MESet::ConstBin::iME, and meSet_.

209  {
210  if(meSet_) meSet_->fill_(iME, iBin, _w);
211  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
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, ecaldqm::MESet::ConstBin::iME, and meSet_.

213  {
214  if(meSet_) meSet_->fill_(iME, iBin, _y, _w);
215  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
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(), ecaldqm::MESet::ConstBin::iME, and meSet_.

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

Definition at line 234 of file MESet.h.

References meSet_.

234 { 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=().

202  {
203  bool wasNull(ConstBin::meSet_ == 0);
204  ConstBin::operator=(_rhs);
205  if(wasNull) meSet_ = _rhs.meSet_;
206  return *this;
207  }
MESet const * meSet_
Definition: MESet.h:144
ConstBin & operator=(ConstBin const &)
Definition: MESet.cc:357
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, meSet_, and MonitorElement::setBinContent().

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

217  {
218  if(meSet_ && iME != unsigned(-1)) meSet_->getME(iME)->setBinContent(iBin, _content);
219  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:98
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, meSet_, and MonitorElement::setBinEntries().

225  {
226  if(meSet_ && iME != unsigned(-1)) meSet_->getME(iME)->setBinEntries(iBin, _entries);
227  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:98
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, meSet_, and MonitorElement::setBinError().

221  {
222  if(meSet_ && iME != unsigned(-1)) meSet_->getME(iME)->setBinError(iBin, _error);
223  }
virtual MonitorElement const * getME(unsigned _iME) const
Definition: MESet.h:98
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 233 of file MESet.h.

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

233 { ConstBin::meSet_ = &_meSet; meSet_ = &_meSet; }
MESet const * meSet_
Definition: MESet.h:144
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 fill(), getME(), getMESet(), operator=(), setBinContent(), setBinEntries(), setBinError(), and setMESet().