CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
hcaldqm::ContainerSingle1D Class Reference

#include <ContainerSingle1D.h>

Inheritance diagram for hcaldqm::ContainerSingle1D:
hcaldqm::Container hcaldqm::ContainerSingleProf1D

Public Member Functions

virtual void book (DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
 
virtual void book (DQMStore *, std::string subsystem="Hcal", std::string aux="")
 
 ContainerSingle1D ()
 
 ContainerSingle1D (std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN))
 
 ContainerSingle1D (std::string const &folder, std::string const &, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN))
 
 ContainerSingle1D (ContainerSingle1D const &)
 
virtual void extendAxisRange (int)
 
virtual void fill (int)
 
virtual void fill (double)
 
virtual void fill (int, int)
 
virtual void fill (int, double)
 
virtual void fill (double, int)
 
virtual void fill (double, double)
 
virtual void fill (HcalDetId const &)
 
virtual void fill (HcalDetId const &, double)
 
virtual void fill (HcalDetId const &, double, double)
 
virtual void fill (HcalElectronicsId const &)
 
virtual void fill (HcalElectronicsId const &, double)
 
virtual void fill (HcalElectronicsId const &, double, double)
 
virtual void fill (HcalTrigTowerDetId const &)
 
virtual void fill (HcalTrigTowerDetId const &, double)
 
virtual void fill (HcalTrigTowerDetId const &, double, double)
 
virtual double getBinContent (int)
 
virtual double getBinContent (double)
 
virtual double getBinContent (HcalDetId const &)
 
virtual double getBinContent (HcalElectronicsId const &)
 
virtual double getBinContent (HcalTrigTowerDetId const &)
 
virtual double getBinEntries (int)
 
virtual double getBinEntries (double)
 
virtual double getBinEntries (HcalDetId const &)
 
virtual double getBinEntries (HcalElectronicsId const &)
 
virtual double getBinEntries (HcalTrigTowerDetId const &)
 
virtual void initialize (std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
 
virtual void initialize (std::string const &folder, std::string const &, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
 
virtual void print ()
 
virtual void reset ()
 
virtual void setBinContent (int, int)
 
virtual void setBinContent (int, double)
 
virtual void setBinContent (double, int)
 
virtual void setBinContent (double, double)
 
virtual void setBinContent (HcalDetId const &, int)
 
virtual void setBinContent (HcalDetId const &, double)
 
virtual void setBinContent (HcalElectronicsId const &, int)
 
virtual void setBinContent (HcalElectronicsId const &, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &, double)
 
virtual void showOverflowX (bool showOverflow)
 
virtual void showOverflowY (bool showOverflow)
 
 ~ContainerSingle1D () override
 
- Public Member Functions inherited from hcaldqm::Container
 Container ()
 
 Container (std::string const &folder, std::string const &qname)
 
virtual void initialize (std::string const &folder, std::string const &qname, int debug=0)
 
virtual ~Container ()
 

Protected Member Functions

virtual void customize ()
 

Protected Attributes

MonitorElement_me
 
quantity::Quantity_qx
 
quantity::Quantity_qy
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _qname
 

Detailed Description

Definition at line 19 of file ContainerSingle1D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerSingle1D::ContainerSingle1D ( )

Definition at line 8 of file ContainerSingle1D.cc.

9  {
10  _qx = nullptr;
11  _qy = nullptr;
12  }
quantity::Quantity * _qx
quantity::Quantity * _qy
hcaldqm::ContainerSingle1D::ContainerSingle1D ( std::string const &  folder,
quantity::Quantity qx,
quantity::Quantity qy = new quantity::ValueQuantity(quantity::fN) 
)
hcaldqm::ContainerSingle1D::ContainerSingle1D ( std::string const &  folder,
std::string const &  qname,
quantity::Quantity qx,
quantity::Quantity qy = new quantity::ValueQuantity(quantity::fN) 
)
hcaldqm::ContainerSingle1D::ContainerSingle1D ( ContainerSingle1D const &  c)

Definition at line 14 of file ContainerSingle1D.cc.

References _qx, _qy, and hcaldqm::quantity::Quantity::makeCopy().

14  :
15  Container(c._folder, c._qname)
16  {
17  _qx = c._qx->makeCopy();
18  _qy = c._qy->makeCopy();
19  }
quantity::Quantity * _qx
quantity::Quantity * _qy
hcaldqm::ContainerSingle1D::~ContainerSingle1D ( )
override

Definition at line 38 of file ContainerSingle1D.cc.

References _qx, and _qy.

39  {
40  if (_qx!=nullptr)
41  delete _qx;
42  if (_qy!=nullptr)
43  delete _qy;
44  _qx = nullptr;
45  _qy = nullptr;
46  }
quantity::Quantity * _qx
quantity::Quantity * _qy

Member Function Documentation

void hcaldqm::ContainerSingle1D::book ( DQMStore::IBooker ib,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf1D.

Definition at line 69 of file ContainerSingle1D.cc.

References hcaldqm::Container::_folder, _me, hcaldqm::Container::_qname, _qx, printConversionInfo::aux, DQMStore::IBooker::book1D(), customize(), hcaldqm::quantity::Quantity::max(), hcaldqm::quantity::Quantity::min(), hcaldqm::quantity::Quantity::nbins(), and DQMStore::IBooker::setCurrentFolder().

Referenced by QIE10Task::bookHistograms(), TPTask::bookHistograms(), QIE11Task::bookHistograms(), and LaserTask::bookHistograms().

71  {
72  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
73  _me = ib.book1D(_qname+(aux.empty()?aux:"_"+aux),
74  _qname+(aux.empty()?aux:" "+aux),
75  _qx->nbins(), _qx->min(), _qx->max());
76  customize();
77  }
quantity::Quantity * _qx
virtual double max()
Definition: Quantity.h:76
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
std::string _folder
Definition: Container.h:42
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
virtual double min()
Definition: Quantity.h:75
std::string _qname
Definition: Container.h:43
void hcaldqm::ContainerSingle1D::book ( DQMStore store,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf1D.

Definition at line 79 of file ContainerSingle1D.cc.

References hcaldqm::Container::_folder, _me, hcaldqm::Container::_qname, _qx, printConversionInfo::aux, DQMStore::book1D(), customize(), hcaldqm::quantity::Quantity::max(), hcaldqm::quantity::Quantity::min(), hcaldqm::quantity::Quantity::nbins(), and DQMStore::setCurrentFolder().

81  {
82  store->setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
83  _me = store->book1D(_qname+(aux.empty()?aux:"_"+aux),
84  _qname+(aux.empty()?aux:" "+aux),
85  _qx->nbins(), _qx->min(), _qx->max());
86  customize();
87  }
quantity::Quantity * _qx
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:837
virtual double max()
Definition: Quantity.h:76
std::string _folder
Definition: Container.h:42
virtual double min()
Definition: Quantity.h:75
std::string _qname
Definition: Container.h:43
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:545
void hcaldqm::ContainerSingle1D::customize ( )
protectedvirtual

Definition at line 89 of file ContainerSingle1D.cc.

References _me, _qx, _qy, hcaldqm::quantity::Quantity::getLabels(), MonitorElement::getTH1(), h, mps_fire::i, hcaldqm::quantity::Quantity::name(), MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), and hcaldqm::quantity::Quantity::setBits().

Referenced by hcaldqm::ContainerSingleProf1D::book(), and book().

90  {
91  _me->setAxisTitle(_qx->name(), 1);
92  _me->setAxisTitle(_qy->name(), 2);
93 
94  TH1 *h = _me->getTH1();
95  _qx->setBits(h);
96  _qy->setBits(h);
97 
98  std::vector<std::string> xlabels = _qx->getLabels();
99  for (unsigned int i=0; i<xlabels.size(); i++)
100  _me->setBinLabel(i+1, xlabels[i], 1);
101  }
virtual void setBits(TH1 *o)
Definition: Quantity.h:65
virtual std::string name()
Definition: Quantity.h:47
quantity::Quantity * _qx
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
virtual std::vector< std::string > getLabels()
Definition: Quantity.h:78
quantity::Quantity * _qy
TH1 * getTH1() const
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void hcaldqm::ContainerSingle1D::extendAxisRange ( int  l)
virtual

Definition at line 295 of file ContainerSingle1D.cc.

References _me, _qx, MonitorElement::getTH1(), hcaldqm::quantity::Quantity::nbins(), pileupCalc::nbins, and hcaldqm::quantity::Quantity::setMax().

Referenced by print().

296  {
297  if (l<_qx->nbins())
298  return;
299 
300  int x=_qx->nbins();
301  while(l>=x)
302  {
303  _me->getTH1()->LabelsInflate();
304  x*=2;
305  _qx->setMax(x);
306  }
307  }
quantity::Quantity * _qx
TH1 * getTH1() const
virtual void setMax(double)
Definition: Quantity.h:81
void hcaldqm::ContainerSingle1D::fill ( int  x)
virtual
void hcaldqm::ContainerSingle1D::fill ( double  x)
virtual

Definition at line 108 of file ContainerSingle1D.cc.

References _me, _qx, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

109  {
110  _me->Fill(_qx->getValue(x));
111  }
quantity::Quantity * _qx
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( int  x,
int  y 
)
virtual

Definition at line 113 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

114  {
115  _me->Fill(_qx->getValue(x), _qy->getValue(y));
116  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( int  x,
double  y 
)
virtual

Definition at line 118 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

119  {
120  _me->Fill(_qx->getValue(x), _qy->getValue(y));
121  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( double  x,
int  y 
)
virtual

Definition at line 123 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

124  {
125  _me->Fill(_qx->getValue(x), _qy->getValue(y));
126  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( double  x,
double  y 
)
virtual

Definition at line 128 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

129  {
130  _me->Fill(_qx->getValue(x), _qy->getValue(y));
131  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id)
virtual

Definition at line 166 of file ContainerSingle1D.cc.

References _me, _qx, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

167  {
168  _me->Fill(_qx->getValue(id));
169  }
quantity::Quantity * _qx
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 171 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

172  {
173  if (_qx->isCoordinate())
174  _me->Fill(_qx->getValue(id), _qy->getValue(x));
175  else
176  _me->Fill(_qx->getValue(x));
177  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 179 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

181  {
182  if (_qx->isCoordinate())
183  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
184  else
185  _me->Fill(_qy->getValue(x), _qy->getValue(y));
186  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle1D::fill ( HcalElectronicsId const &  id)
virtual

Definition at line 208 of file ContainerSingle1D.cc.

References _me, _qx, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

209  {
210  _me->Fill(_qx->getValue(id));
211  }
quantity::Quantity * _qx
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 213 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

215  {
216  if (_qx->isCoordinate())
217  _me->Fill(_qx->getValue(id), _qy->getValue(x));
218  else
219  _me->Fill(_qx->getValue(x));
220  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle1D::fill ( HcalElectronicsId const &  id,
double  x,
double  y 
)
virtual

Definition at line 222 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

224  {
225  if (_qx->isCoordinate())
226  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
227  else
228  _me->Fill(_qy->getValue(x), _qy->getValue(y));
229  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle1D::fill ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 251 of file ContainerSingle1D.cc.

References _me, _qx, MonitorElement::Fill(), and hcaldqm::quantity::Quantity::getValue().

252  {
253  _me->Fill(_qx->getValue(id));
254  }
quantity::Quantity * _qx
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle1D::fill ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 256 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

258  {
259  if (_qx->isCoordinate())
260  _me->Fill(_qx->getValue(id), _qy->getValue(x));
261  else
262  _me->Fill(_qx->getValue(x));
263  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle1D::fill ( HcalTrigTowerDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 265 of file ContainerSingle1D.cc.

References _me, _qx, _qy, MonitorElement::Fill(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

268  {
269  if (_qx->isCoordinate())
270  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
271  else
272  _me->Fill(_qy->getValue(x), _qy->getValue(y));
273  }
quantity::Quantity * _qx
quantity::Quantity * _qy
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
double hcaldqm::ContainerSingle1D::getBinContent ( int  x)
virtual

Definition at line 133 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinContent().

134  {
135  return _me->getBinContent(_qx->getBin(x));
136  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle1D::getBinContent ( double  x)
virtual

Definition at line 137 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinContent().

138  {
139  return _me->getBinContent(_qx->getBin(x));
140  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle1D::getBinContent ( HcalDetId const &  id)
virtual

Definition at line 188 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinContent().

189  {
190  return _me->getBinContent(_qx->getBin(id));
191  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle1D::getBinContent ( HcalElectronicsId const &  id)
virtual

Definition at line 231 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinContent().

232  {
233  return _me->getBinContent(_qx->getBin(id));
234  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle1D::getBinContent ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 275 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinContent().

276  {
277  return _me->getBinContent(_qx->getBin(id));
278  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle1D::getBinEntries ( int  x)
virtual

Definition at line 141 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinEntries().

142  {
143  return _me->getBinEntries(_qx->getBin(x));
144  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle1D::getBinEntries ( double  x)
virtual

Definition at line 145 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinEntries().

146  {
147  return _me->getBinEntries(_qx->getBin(x));
148  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle1D::getBinEntries ( HcalDetId const &  id)
virtual

Definition at line 192 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinEntries().

193  {
194  return _me->getBinEntries(_qx->getBin(id));
195  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle1D::getBinEntries ( HcalElectronicsId const &  id)
virtual

Definition at line 235 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinEntries().

236  {
237  return _me->getBinEntries(_qx->getBin(id));
238  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle1D::getBinEntries ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 279 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::getBinEntries().

280  {
281  return _me->getBinEntries(_qx->getBin(id));
282  }
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
void hcaldqm::ContainerSingle1D::initialize ( std::string const &  folder,
quantity::Quantity qx,
quantity::Quantity qy = new quantity::ValueQuantity(quantity::fN),
int  debug = 0 
)
virtual
void hcaldqm::ContainerSingle1D::initialize ( std::string const &  folder,
std::string const &  qname,
quantity::Quantity qx,
quantity::Quantity qy = new quantity::ValueQuantity(quantity::fN),
int  debug = 0 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf1D.

Definition at line 58 of file ContainerSingle1D.cc.

References _qx, _qy, hcaldqm::quantity::fXAxis, hcaldqm::quantity::fYAxis, hcaldqm::Container::initialize(), and hcaldqm::quantity::Quantity::setAxisType().

61  {
63  _qx = qx;
64  _qy = qy;
67  }
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
quantity::Quantity * _qx
quantity::Quantity * _qy
#define debug
Definition: HDRShower.cc:19
virtual void hcaldqm::ContainerSingle1D::print ( void  )
inlinevirtual
virtual void hcaldqm::ContainerSingle1D::reset ( void  )
inlinevirtual

Definition at line 98 of file ContainerSingle1D.h.

References _me, and MonitorElement::Reset().

98 {_me->Reset();}
void Reset()
reset ME (ie. contents, errors, etc)
void hcaldqm::ContainerSingle1D::setBinContent ( int  x,
int  y 
)
virtual

Definition at line 149 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

150  {
151  _me->setBinContent(_qx->getBin(x), y);
152  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( int  x,
double  y 
)
virtual

Definition at line 153 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

154  {
155  _me->setBinContent(_qx->getBin(x), y);
156  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( double  x,
int  y 
)
virtual

Definition at line 157 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

158  {
159  _me->setBinContent(_qx->getBin(x), y);
160  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( double  x,
double  y 
)
virtual

Definition at line 161 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

162  {
163  _me->setBinContent(_qx->getBin(x), y);
164  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalDetId const &  id,
int  x 
)
virtual

Definition at line 197 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

199  {
200  _me->setBinContent(_qx->getBin(id), x);
201  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 202 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

204  {
205  _me->setBinContent(_qx->getBin(id), x);
206  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalElectronicsId const &  id,
int  x 
)
virtual

Definition at line 240 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

242  {
243  _me->setBinContent(_qx->getBin(id), x);
244  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 245 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

247  {
248  _me->setBinContent(_qx->getBin(id), x);
249  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalTrigTowerDetId const &  id,
int  x 
)
virtual

Definition at line 284 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

286  {
287  _me->setBinContent(_qx->getBin(id), x);
288  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::setBinContent ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 289 of file ContainerSingle1D.cc.

References _me, _qx, hcaldqm::quantity::Quantity::getBin(), and MonitorElement::setBinContent().

291  {
292  _me->setBinContent(_qx->getBin(id), x);
293  }
void setBinContent(int binx, double content)
set content of bin (1-D)
quantity::Quantity * _qx
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle1D::showOverflowX ( bool  showOverflow)
virtual

Definition at line 309 of file ContainerSingle1D.cc.

References _qx, and hcaldqm::quantity::Quantity::showOverflow().

Referenced by LaserTask::bookHistograms(), and print().

309  {
310  _qx->showOverflow(showOverflow);
311  }
quantity::Quantity * _qx
virtual void showOverflow(bool showOverflow)
Definition: Quantity.h:85
void hcaldqm::ContainerSingle1D::showOverflowY ( bool  showOverflow)
virtual

Definition at line 313 of file ContainerSingle1D.cc.

References _qy, and hcaldqm::quantity::Quantity::showOverflow().

Referenced by print().

313  {
314  _qy->showOverflow(showOverflow);
315  }
quantity::Quantity * _qy
virtual void showOverflow(bool showOverflow)
Definition: Quantity.h:85

Member Data Documentation

MonitorElement* hcaldqm::ContainerSingle1D::_me
protected
quantity::Quantity* hcaldqm::ContainerSingle1D::_qx
protected
quantity::Quantity* hcaldqm::ContainerSingle1D::_qy
protected