CMS 3D CMS Logo

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

#include <ContainerSingle2D.h>

Inheritance diagram for hcaldqm::ContainerSingle2D:
hcaldqm::Container hcaldqm::ContainerSingleProf2D

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="")
 
 ContainerSingle2D ()
 
 ContainerSingle2D (std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN))
 
 ContainerSingle2D (std::string const &folder, std::string const &, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
 
 ContainerSingle2D (ContainerSingle2D const &)
 
virtual void extendAxisRange (int)
 
virtual void fill (int, int)
 
virtual void fill (int, double)
 
virtual void fill (int, double, double)
 
virtual void fill (int, int, int)
 
virtual void fill (int, int, double)
 
virtual void fill (double, int)
 
virtual void fill (double, double)
 
virtual void fill (double, double, double)
 
virtual void fill (HcalDetId const &)
 
virtual void fill (HcalDetId const &, int)
 
virtual void fill (HcalDetId const &, double)
 
virtual void fill (HcalDetId const &, int, int)
 
virtual void fill (HcalDetId const &, int, double)
 
virtual void fill (HcalDetId const &, double, double)
 
virtual void fill (HcalElectronicsId const &)
 
virtual void fill (HcalElectronicsId const &, int)
 
virtual void fill (HcalElectronicsId const &, double)
 
virtual void fill (HcalElectronicsId const &, int, int)
 
virtual void fill (HcalElectronicsId const &, int, double)
 
virtual void fill (HcalElectronicsId const &, double, double)
 
virtual void fill (HcalDetId const &, HcalElectronicsId const &)
 
virtual void fill (HcalDetId const &, HcalElectronicsId const &, double)
 
virtual void fill (HcalTrigTowerDetId const &)
 
virtual void fill (HcalTrigTowerDetId const &, int)
 
virtual void fill (HcalTrigTowerDetId const &, double)
 
virtual void fill (HcalTrigTowerDetId const &, int, int)
 
virtual void fill (HcalTrigTowerDetId const &, int, double)
 
virtual void fill (HcalTrigTowerDetId const &, double, double)
 
virtual double getBinContent (int, int)
 
virtual double getBinContent (int, double)
 
virtual double getBinContent (double, int)
 
virtual double getBinContent (double, double)
 
virtual double getBinContent (HcalDetId const &)
 
virtual double getBinContent (HcalDetId const &, int)
 
virtual double getBinContent (HcalDetId const &, double)
 
virtual double getBinContent (HcalElectronicsId const &)
 
virtual double getBinContent (HcalElectronicsId const &, int)
 
virtual double getBinContent (HcalElectronicsId const &, double)
 
virtual double getBinContent (HcalTrigTowerDetId const &)
 
virtual double getBinContent (HcalTrigTowerDetId const &, int)
 
virtual double getBinContent (HcalTrigTowerDetId const &, double)
 
virtual double getBinEntries (int, int)
 
virtual double getBinEntries (int, double)
 
virtual double getBinEntries (double, int)
 
virtual double getBinEntries (double, double)
 
virtual double getBinEntries (HcalDetId const &)
 
virtual double getBinEntries (HcalDetId const &, int)
 
virtual double getBinEntries (HcalDetId const &, double)
 
virtual double getBinEntries (HcalElectronicsId const &)
 
virtual double getBinEntries (HcalElectronicsId const &, int)
 
virtual double getBinEntries (HcalElectronicsId const &, double)
 
virtual double getBinEntries (HcalTrigTowerDetId const &)
 
virtual double getBinEntries (HcalTrigTowerDetId const &, int)
 
virtual double getBinEntries (HcalTrigTowerDetId const &, double)
 
virtual void initialize (std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
 
virtual void initialize (std::string const &folder, std::string const &, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
 
virtual void load (DQMStore::IGetter &, std::string subsystem="Hcal", std::string aux="")
 
virtual void print ()
 
virtual void reset ()
 
virtual void setBinContent (int, int, int)
 
virtual void setBinContent (int, double, int)
 
virtual void setBinContent (double, int, int)
 
virtual void setBinContent (double, double, int)
 
virtual void setBinContent (int, int, double)
 
virtual void setBinContent (int, double, double)
 
virtual void setBinContent (double, int, double)
 
virtual void setBinContent (double, double, double)
 
virtual void setBinContent (HcalDetId const &, int)
 
virtual void setBinContent (HcalDetId const &, double)
 
virtual void setBinContent (HcalDetId const &, int, int)
 
virtual void setBinContent (HcalDetId const &, int, double)
 
virtual void setBinContent (HcalDetId const &, double, int)
 
virtual void setBinContent (HcalDetId const &, double, double)
 
virtual void setBinContent (HcalElectronicsId const &, int)
 
virtual void setBinContent (HcalElectronicsId const &, double)
 
virtual void setBinContent (HcalElectronicsId const &, int, int)
 
virtual void setBinContent (HcalElectronicsId const &, int, double)
 
virtual void setBinContent (HcalElectronicsId const &, double, int)
 
virtual void setBinContent (HcalElectronicsId const &, double, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &, int, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &, int, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &, double, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &, double, double)
 
 ~ContainerSingle2D () 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_qx
 
Quantity_qy
 
Quantity_qz
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _qname
 

Detailed Description

Definition at line 21 of file ContainerSingle2D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerSingle2D::ContainerSingle2D ( )

Definition at line 7 of file ContainerSingle2D.cc.

References _qx, _qy, and _qz.

8  {
9  _qx = nullptr;
10  _qy = nullptr;
11  _qz = nullptr;
12  }
hcaldqm::ContainerSingle2D::ContainerSingle2D ( std::string const &  folder,
Quantity qx,
Quantity qy,
Quantity qz = new ValueQuantity(quantity::fN) 
)
hcaldqm::ContainerSingle2D::ContainerSingle2D ( std::string const &  folder,
std::string const &  qname,
Quantity qx,
Quantity qy,
Quantity qz = new ValueQuantity(quantity::fN),
int  debug = 0 
)
hcaldqm::ContainerSingle2D::ContainerSingle2D ( ContainerSingle2D const &  c)

Definition at line 34 of file ContainerSingle2D.cc.

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

34  :
35  Container(c._folder, c._qname)
36  {
37  _qx = c._qx->makeCopy();
38  _qy = c._qy->makeCopy();
39  _qz = c._qz->makeCopy();
40  }
hcaldqm::ContainerSingle2D::~ContainerSingle2D ( )
override

Definition at line 42 of file ContainerSingle2D.cc.

References _qx, _qy, and _qz.

43  {
44  if (_qx!=nullptr)
45  delete _qx;
46  if (_qy!=nullptr)
47  delete _qy;
48  if (_qz!=nullptr)
49  delete _qz;
50  _qx=nullptr;
51  _qy=nullptr;
52  _qz=nullptr;
53  }

Member Function Documentation

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

Reimplemented in hcaldqm::ContainerSingleProf2D.

Definition at line 81 of file ContainerSingle2D.cc.

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

Referenced by TPComparisonTask::bookHistograms(), QIE11Task::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), QIE10Task::bookHistograms(), UMNioTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), hcaldqm::TPRunSummary::endJob(), hcaldqm::RecoRunSummary::endJob(), hcaldqm::RawRunSummary::endJob(), and hcaldqm::DigiRunSummary::endJob().

83  {
84  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
85  _me = ib.book2D(_qname+(aux==""?aux:"_"+aux),
86  _qname+(aux==""?aux:" "+aux),
87  _qx->nbins(), _qx->min(), _qx->max(),
88  _qy->nbins(), _qy->min(), _qy->max());
89  customize();
90  }
virtual double max()
Definition: Quantity.h:76
std::string _folder
Definition: Container.h:42
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
virtual double min()
Definition: Quantity.h:75
std::string _qname
Definition: Container.h:43
void hcaldqm::ContainerSingle2D::book ( DQMStore store,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf2D.

Definition at line 99 of file ContainerSingle2D.cc.

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

101  {
102  store->setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
103  _me = store->book2D(_qname+(aux==""?aux:"_"+aux),
104  _qname+(aux==""?aux:" "+aux),
105  _qx->nbins(), _qx->min(), _qx->max(),
106  _qy->nbins(), _qy->min(), _qy->max());
107  customize();
108  }
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
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1010
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:588
void hcaldqm::ContainerSingle2D::customize ( )
protectedvirtual

Definition at line 110 of file ContainerSingle2D.cc.

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

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

111  {
112  _me->setAxisTitle(_qx->name(), 1);
113  _me->setAxisTitle(_qy->name(), 2);
114  _me->setAxisTitle(_qz->name(), 3);
115 
116  TH1 *h = _me->getTH1();
117  _qx->setBits(h);
118  _qy->setBits(h);
119  _qz->setBits(h);
120 
121  std::vector<std::string> xlabels = _qx->getLabels();
122  std::vector<std::string> ylabels = _qy->getLabels();
123  for (unsigned int i=0; i<xlabels.size(); i++) {
124  _me->setBinLabel(i+1, xlabels[i], 1);
125  }
126  for (unsigned int i=0; i<ylabels.size(); i++) {
127  _me->setBinLabel(i+1, ylabels[i], 2);
128  }
129  }
virtual void setBits(TH1 *o)
Definition: Quantity.h:65
virtual std::string name()
Definition: Quantity.h:47
virtual std::vector< std::string > getLabels()
Definition: Quantity.h:78
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::ContainerSingle2D::extendAxisRange ( int  l)
virtual

Definition at line 694 of file ContainerSingle2D.cc.

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

695  {
696  if (l<_qx->nbins())
697  return;
698 
699  int x=_qx->nbins();
700  while(l>=x)
701  {
702  _me->getTH1()->LabelsInflate();
703  x*=2;
704  _qx->setMax(x);
705  }
706  }
TH1 * getTH1() const
virtual void setMax(double)
Definition: Quantity.h:81
void hcaldqm::ContainerSingle2D::fill ( int  x,
int  y 
)
virtual
void hcaldqm::ContainerSingle2D::fill ( int  x,
double  y 
)
virtual

Definition at line 136 of file ContainerSingle2D.cc.

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

137  {
138  _me->Fill(_qx->getValue(x), _qy->getValue(y));
139  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( int  x,
double  y,
double  z 
)
virtual

Definition at line 141 of file ContainerSingle2D.cc.

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

142  {
143  _me->Fill(_qx->getValue(x), _qy->getValue(y), z);
144  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( int  x,
int  y,
int  z 
)
virtual

Definition at line 166 of file ContainerSingle2D.cc.

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

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

Definition at line 161 of file ContainerSingle2D.cc.

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

162  {
163  _me->Fill(_qx->getValue(x), _qy->getValue(y), z);
164  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( double  x,
int  y 
)
virtual

Definition at line 146 of file ContainerSingle2D.cc.

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

147  {
148  _me->Fill(_qx->getValue(x), _qy->getValue(y));
149  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( double  x,
double  y 
)
virtual

Definition at line 151 of file ContainerSingle2D.cc.

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

152  {
153  _me->Fill(_qx->getValue(x), _qy->getValue(y));
154  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( double  x,
double  y,
double  z 
)
virtual

Definition at line 156 of file ContainerSingle2D.cc.

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

157  {
158  _me->Fill(_qx->getValue(x), _qy->getValue(y), z);
159  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  id)
virtual

Definition at line 171 of file ContainerSingle2D.cc.

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

172  {
173  _me->Fill(_qx->getValue(id), _qy->getValue(id));
174  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  id,
int  x 
)
virtual

Definition at line 256 of file ContainerSingle2D.cc.

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

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

Definition at line 246 of file ContainerSingle2D.cc.

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

247  {
248  if (_qx->isCoordinate() && _qy->isCoordinate())
249  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
250  else if (_qx->isCoordinate())
251  _me->Fill(_qx->getValue(id), _qy->getValue(x));
252  else if (_qy->isCoordinate())
253  _me->Fill(_qx->getValue(x), _qy->getValue(id));
254  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  id,
int  x,
int  y 
)
virtual

Definition at line 277 of file ContainerSingle2D.cc.

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

279  {
280  if (_qx->isCoordinate() && _qy->isCoordinate())
281  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
282  else if (_qx->isCoordinate() && !_qy->isCoordinate())
283  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
284  else if (!_qx->isCoordinate() && _qy->isCoordinate())
285  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
286  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  id,
int  x,
double  y 
)
virtual

Definition at line 288 of file ContainerSingle2D.cc.

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

290  {
291  if (_qx->isCoordinate() && _qy->isCoordinate())
292  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
293  else if (_qx->isCoordinate() && !_qy->isCoordinate())
294  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
295  else if (!_qx->isCoordinate() && _qy->isCoordinate())
296  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
297  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 266 of file ContainerSingle2D.cc.

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

268  {
269  if (_qx->isCoordinate() && _qy->isCoordinate())
270  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
271  else if (_qx->isCoordinate() && !_qy->isCoordinate())
272  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
273  else if (!_qx->isCoordinate() && _qy->isCoordinate())
274  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
275  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id)
virtual

Definition at line 384 of file ContainerSingle2D.cc.

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

385  {
386  _me->Fill(_qx->getValue(id), _qy->getValue(id));
387  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id,
int  x 
)
virtual

Definition at line 400 of file ContainerSingle2D.cc.

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

402  {
403  if (_qx->isCoordinate() && _qy->isCoordinate())
404  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
405  else if (_qx->isCoordinate())
406  _me->Fill(_qx->getValue(id), _qy->getValue(x));
407  else if (_qy->isCoordinate())
408  _me->Fill(_qx->getValue(x), _qy->getValue(id));
409  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 389 of file ContainerSingle2D.cc.

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

391  {
392  if (_qx->isCoordinate() && _qy->isCoordinate())
393  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
394  else if (_qx->isCoordinate())
395  _me->Fill(_qx->getValue(id), _qy->getValue(x));
396  else if (_qy->isCoordinate())
397  _me->Fill(_qx->getValue(x), _qy->getValue(id));
398  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id,
int  x,
int  y 
)
virtual

Definition at line 423 of file ContainerSingle2D.cc.

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

426  {
427  if (_qx->isCoordinate() && _qy->isCoordinate())
428  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
429  else if (_qx->isCoordinate() && !_qy->isCoordinate())
430  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
431  else if (!_qx->isCoordinate() && _qy->isCoordinate())
432  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
433  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id,
int  x,
double  y 
)
virtual

Definition at line 435 of file ContainerSingle2D.cc.

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

438  {
439  if (_qx->isCoordinate() && _qy->isCoordinate())
440  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
441  else if (_qx->isCoordinate() && !_qy->isCoordinate())
442  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
443  else if (!_qx->isCoordinate() && _qy->isCoordinate())
444  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
445  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalElectronicsId const &  id,
double  x,
double  y 
)
virtual

Definition at line 411 of file ContainerSingle2D.cc.

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

414  {
415  if (_qx->isCoordinate() && _qy->isCoordinate())
416  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
417  else if (_qx->isCoordinate() && !_qy->isCoordinate())
418  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
419  else if (!_qx->isCoordinate() && _qy->isCoordinate())
420  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
421  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  did,
HcalElectronicsId const &  eid 
)
virtual
void hcaldqm::ContainerSingle2D::fill ( HcalDetId const &  did,
HcalElectronicsId const &  eid,
double  x 
)
virtual
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 532 of file ContainerSingle2D.cc.

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

533  {
534  _me->Fill(_qx->getValue(id), _qy->getValue(id));
535  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id,
int  x 
)
virtual

Definition at line 548 of file ContainerSingle2D.cc.

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

550  {
551  if (_qx->isCoordinate() && _qy->isCoordinate())
552  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
553  else if (_qx->isCoordinate())
554  _me->Fill(_qx->getValue(id), _qy->getValue(x));
555  else if (_qy->isCoordinate())
556  _me->Fill(_qx->getValue(x), _qy->getValue(id));
557  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 537 of file ContainerSingle2D.cc.

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

539  {
540  if (_qx->isCoordinate() && _qy->isCoordinate())
541  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
542  else if (_qx->isCoordinate())
543  _me->Fill(_qx->getValue(id), _qy->getValue(x));
544  else if (_qy->isCoordinate())
545  _me->Fill(_qx->getValue(x), _qy->getValue(id));
546  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id,
int  x,
int  y 
)
virtual

Definition at line 570 of file ContainerSingle2D.cc.

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

572  {
573  if (_qx->isCoordinate() && _qy->isCoordinate())
574  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
575  else if (_qx->isCoordinate() && !_qy->isCoordinate())
576  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
577  else if (!_qx->isCoordinate() && _qy->isCoordinate())
578  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
579  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id,
int  x,
double  y 
)
virtual

Definition at line 581 of file ContainerSingle2D.cc.

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

583  {
584  if (_qx->isCoordinate() && _qy->isCoordinate())
585  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
586  else if (_qx->isCoordinate() && !_qy->isCoordinate())
587  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
588  else if (!_qx->isCoordinate() && _qy->isCoordinate())
589  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
590  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::fill ( HcalTrigTowerDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 559 of file ContainerSingle2D.cc.

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

561  {
562  if (_qx->isCoordinate() && _qy->isCoordinate())
563  _me->Fill(_qx->getValue(id), _qy->getValue(id), x);
564  else if (_qx->isCoordinate() && !_qy->isCoordinate())
565  _me->Fill(_qx->getValue(id), _qy->getValue(x), y);
566  else if (!_qx->isCoordinate() && _qy->isCoordinate())
567  _me->Fill(_qx->getValue(x), _qy->getValue(id), y);
568  }
void Fill(long long x)
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
virtual bool isCoordinate()
Definition: Quantity.h:77
double hcaldqm::ContainerSingle2D::getBinContent ( int  x,
int  y 
)
virtual

Definition at line 176 of file ContainerSingle2D.cc.

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

Referenced by hcaldqm::TPRunSummary::endJob().

177  {
178  return _me->getBinContent(_qx->getBin(x), _qy->getBin(y));
179  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( int  x,
double  y 
)
virtual

Definition at line 180 of file ContainerSingle2D.cc.

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

181  {
182  return _me->getBinContent(_qx->getBin(x), _qy->getBin(y));
183  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( double  x,
int  y 
)
virtual

Definition at line 184 of file ContainerSingle2D.cc.

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

185  {
186  return _me->getBinContent(_qx->getBin(x), _qy->getBin(y));
187  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( double  x,
double  y 
)
virtual

Definition at line 188 of file ContainerSingle2D.cc.

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

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

Definition at line 299 of file ContainerSingle2D.cc.

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

300  {
301  return _me->getBinContent(_qx->getBin(id), _qy->getBin(id));
302  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalDetId const &  id,
int  x 
)
virtual

Definition at line 303 of file ContainerSingle2D.cc.

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

305  {
306  if (_qx->isCoordinate())
307  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
308  else
309  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
310  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 311 of file ContainerSingle2D.cc.

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

313  {
314  if (_qx->isCoordinate())
315  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
316  else
317  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
318  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalElectronicsId const &  id)
virtual

Definition at line 447 of file ContainerSingle2D.cc.

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

448  {
449  return _me->getBinContent(_qx->getBin(id), _qy->getBin(id));
450  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalElectronicsId const &  id,
int  x 
)
virtual

Definition at line 451 of file ContainerSingle2D.cc.

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

453  {
454  if (_qx->isCoordinate())
455  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
456  else
457  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
458  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 459 of file ContainerSingle2D.cc.

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

461  {
462  if (_qx->isCoordinate())
463  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
464  else
465  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
466  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 610 of file ContainerSingle2D.cc.

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

611  {
612  return _me->getBinContent(_qx->getBin(id), _qy->getBin(id));
613  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalTrigTowerDetId const &  id,
int  x 
)
virtual

Definition at line 614 of file ContainerSingle2D.cc.

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

616  {
617  if (_qx->isCoordinate())
618  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
619  else
620  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
621  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinContent ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 622 of file ContainerSingle2D.cc.

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

624  {
625  if (_qx->isCoordinate())
626  return _me->getBinContent(_qx->getBin(id), _qy->getBin(x));
627  else
628  return _me->getBinContent(_qx->getBin(x), _qy->getBin(id));
629  }
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinContent(int binx) const
get content of bin (1-D)
double hcaldqm::ContainerSingle2D::getBinEntries ( int  x,
int  y 
)
virtual

Definition at line 192 of file ContainerSingle2D.cc.

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

Referenced by hcaldqm::TPRunSummary::endJob().

193  {
194  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(y));
195  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( int  x,
double  y 
)
virtual

Definition at line 196 of file ContainerSingle2D.cc.

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

197  {
198  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(y));
199  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( double  x,
int  y 
)
virtual

Definition at line 200 of file ContainerSingle2D.cc.

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

201  {
202  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(y));
203  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( double  x,
double  y 
)
virtual

Definition at line 204 of file ContainerSingle2D.cc.

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

205  {
206  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(y));
207  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalDetId const &  id)
virtual

Definition at line 319 of file ContainerSingle2D.cc.

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

320  {
321  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()* _qy->getBin(id));
322  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalDetId const &  id,
int  x 
)
virtual

Definition at line 323 of file ContainerSingle2D.cc.

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

325  {
326  if (_qx->isCoordinate())
327  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
328  else
329  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
330  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 331 of file ContainerSingle2D.cc.

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

333  {
334  if (_qx->isCoordinate())
335  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
336  else
337  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
338  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalElectronicsId const &  id)
virtual

Definition at line 467 of file ContainerSingle2D.cc.

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

468  {
469  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(id));
470  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalElectronicsId const &  id,
int  x 
)
virtual

Definition at line 471 of file ContainerSingle2D.cc.

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

473  {
474  if (_qx->isCoordinate())
475  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
476  else
477  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
478  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 479 of file ContainerSingle2D.cc.

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

481  {
482  if (_qx->isCoordinate())
483  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
484  else
485  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
486  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalTrigTowerDetId const &  id)
virtual

Definition at line 630 of file ContainerSingle2D.cc.

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

631  {
632  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(id));
633  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalTrigTowerDetId const &  id,
int  x 
)
virtual

Definition at line 634 of file ContainerSingle2D.cc.

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

636  {
637  if (_qx->isCoordinate())
638  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
639  else
640  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
641  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
double hcaldqm::ContainerSingle2D::getBinEntries ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 642 of file ContainerSingle2D.cc.

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

644  {
645  if (_qx->isCoordinate())
646  return _me->getBinEntries(_qx->getBin(id)+_qx->wofnbins()*_qy->getBin(x));
647  else
648  return _me->getBinEntries(_qx->getBin(x)+_qx->wofnbins()*_qy->getBin(id));
649  }
virtual int wofnbins()
Definition: Quantity.h:74
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
double getBinEntries(int bin) const
get # of bin entries (for profiles)
void hcaldqm::ContainerSingle2D::initialize ( std::string const &  folder,
Quantity qx,
Quantity qy,
Quantity qz = new ValueQuantity(quantity::fN),
int  debug = 0 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf2D.

Definition at line 55 of file ContainerSingle2D.cc.

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

Referenced by TPComparisonTask::bookHistograms(), PedestalTask::bookHistograms(), QIE10Task::bookHistograms(), TPTask::bookHistograms(), QIE11Task::bookHistograms(), UMNioTask::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), hcaldqm::RecoRunSummary::endJob(), hcaldqm::RawRunSummary::endJob(), hcaldqm::TPRunSummary::endJob(), hcaldqm::DigiRunSummary::endJob(), and hcaldqm::ContainerSingleProf2D::initialize().

57  {
58  Container::initialize(folder, qz->name()+"vs"+qy->name()+"vs"+
59  qx->name(), debug);
60  _qx = qx;
61  _qy = qy;
62  _qz = qz;
66  }
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
#define debug
Definition: HDRShower.cc:19
void hcaldqm::ContainerSingle2D::initialize ( std::string const &  folder,
std::string const &  qname,
Quantity qx,
Quantity qy,
Quantity qz = new ValueQuantity(quantity::fN),
int  debug = 0 
)
virtual
void hcaldqm::ContainerSingle2D::load ( DQMStore::IGetter ig,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Definition at line 92 of file ContainerSingle2D.cc.

References hcaldqm::Container::_folder, _me, hcaldqm::Container::_qname, and DQMStore::IGetter::get().

Referenced by hcaldqm::TPRunSummary::endJob().

94  {
95  _me = ig.get(subsystem+"/"+_folder+"/"+_qname+"/"+
96  _qname+(aux==""?aux:"_"+aux));
97  }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:307
std::string _folder
Definition: Container.h:42
std::string _qname
Definition: Container.h:43
virtual void hcaldqm::ContainerSingle2D::print ( void  )
inlinevirtual
virtual void hcaldqm::ContainerSingle2D::reset ( void  )
inlinevirtual

Definition at line 149 of file ContainerSingle2D.h.

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

Definition at line 213 of file ContainerSingle2D.cc.

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

214  {
216  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( double  x,
int  y,
int  z 
)
virtual

Definition at line 217 of file ContainerSingle2D.cc.

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

218  {
220  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( double  x,
double  y,
int  z 
)
virtual

Definition at line 221 of file ContainerSingle2D.cc.

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

223  {
225  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( int  x,
int  y,
double  z 
)
virtual

Definition at line 226 of file ContainerSingle2D.cc.

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

227  {
229  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( int  x,
double  y,
double  z 
)
virtual

Definition at line 230 of file ContainerSingle2D.cc.

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

232  {
234  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( double  x,
int  y,
double  z 
)
virtual

Definition at line 235 of file ContainerSingle2D.cc.

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

237  {
239  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( double  x,
double  y,
double  z 
)
virtual

Definition at line 240 of file ContainerSingle2D.cc.

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

242  {
244  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
int  x 
)
virtual

Definition at line 340 of file ContainerSingle2D.cc.

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

342  {
343  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
344  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 345 of file ContainerSingle2D.cc.

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

347  {
348  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
349  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
int  x,
int  y 
)
virtual

Definition at line 350 of file ContainerSingle2D.cc.

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

352  {
353  if (_qx->isCoordinate())
354  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
355  else
356  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
357  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
int  x,
double  y 
)
virtual

Definition at line 358 of file ContainerSingle2D.cc.

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

360  {
361  if (_qx->isCoordinate())
362  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
363  else
364  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
365  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
double  x,
int  y 
)
virtual

Definition at line 366 of file ContainerSingle2D.cc.

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

368  {
369  if (_qx->isCoordinate())
370  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
371  else
372  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
373  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 374 of file ContainerSingle2D.cc.

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

376  {
377  if (_qx->isCoordinate())
378  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
379  else
380  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
381  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
int  x 
)
virtual

Definition at line 488 of file ContainerSingle2D.cc.

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

490  {
491  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
492  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 493 of file ContainerSingle2D.cc.

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

495  {
496  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
497  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
int  x,
int  y 
)
virtual

Definition at line 498 of file ContainerSingle2D.cc.

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

500  {
501  if (_qx->isCoordinate())
502  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
503  else
504  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
505  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
int  x,
double  y 
)
virtual

Definition at line 506 of file ContainerSingle2D.cc.

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

508  {
509  if (_qx->isCoordinate())
510  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
511  else
512  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
513  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
double  x,
int  y 
)
virtual

Definition at line 514 of file ContainerSingle2D.cc.

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

516  {
517  if (_qx->isCoordinate())
518  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
519  else
520  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
521  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalElectronicsId const &  id,
double  x,
double  y 
)
virtual

Definition at line 522 of file ContainerSingle2D.cc.

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

524  {
525  if (_qx->isCoordinate())
526  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
527  else
528  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
529  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
int  x 
)
virtual

Definition at line 651 of file ContainerSingle2D.cc.

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

653  {
654  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
655  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
double  x 
)
virtual

Definition at line 656 of file ContainerSingle2D.cc.

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

658  {
659  _me->setBinContent(_qx->getBin(id), _qy->getBin(id), x);
660  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
int  x,
int  y 
)
virtual

Definition at line 661 of file ContainerSingle2D.cc.

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

663  {
664  if (_qx->isCoordinate())
665  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
666  else
667  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
668  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
int  x,
double  y 
)
virtual

Definition at line 669 of file ContainerSingle2D.cc.

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

671  {
672  if (_qx->isCoordinate())
673  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
674  else
675  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
676  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
double  x,
int  y 
)
virtual

Definition at line 677 of file ContainerSingle2D.cc.

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

679  {
680  if (_qx->isCoordinate())
681  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
682  else
683  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
684  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77
void hcaldqm::ContainerSingle2D::setBinContent ( HcalTrigTowerDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 685 of file ContainerSingle2D.cc.

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

687  {
688  if (_qx->isCoordinate())
689  _me->setBinContent(_qx->getBin(id), _qy->getBin(x), y);
690  else
691  _me->setBinContent(_qx->getBin(x), _qy->getBin(id), y);
692  }
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual uint32_t getBin(HcalDetId const &)
Definition: Quantity.h:53
virtual bool isCoordinate()
Definition: Quantity.h:77

Member Data Documentation

MonitorElement* hcaldqm::ContainerSingle2D::_me
protected
Quantity* hcaldqm::ContainerSingle2D::_qx
protected
Quantity* hcaldqm::ContainerSingle2D::_qy
protected
Quantity* hcaldqm::ContainerSingle2D::_qz
protected