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
hcaldqm::Container2D Class Reference

#include <Container2D.h>

Inheritance diagram for hcaldqm::Container2D:
hcaldqm::Container1D hcaldqm::Container hcaldqm::ContainerProf2D

Public Member Functions

virtual void book (DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
 
 Container2D ()
 
 Container2D (std::string const &folder, std::string nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::CoordinateAxis(axis::fYaxis, axis::fiphi), axis::Axis *zaxis=new axis::ValueAxis(axis::fZaxis, axis::fEntries))
 
virtual void fill (HcalDetId const &)
 
virtual void fill (HcalDetId const &, int)
 
virtual void fill (HcalDetId const &, double)
 
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, double)
 
virtual void fill (HcalElectronicsId const &, double, 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 void initialize (std::string const &folder, std::string nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::CoordinateAxis(axis::fYaxis, axis::fiphi), axis::Axis *zaxis=new axis::ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
 
virtual void loadLabels (std::vector< std::string > const &)
 
virtual void setBinContent (int, int, int, double)
 
virtual void setBinContent (unsigned int, int, int, double)
 
virtual void setBinContent (int, int, double, double)
 
virtual void setBinContent (int, double, int, double)
 
virtual void setBinContent (int, double, double, double)
 
virtual ~Container2D ()
 
- Public Member Functions inherited from hcaldqm::Container1D
virtual MonitorElementat (unsigned int i)
 
virtual MonitorElementat (HcalDetId const &)
 
virtual MonitorElementat (HcalElectronicsId const &)
 
virtual MonitorElementat (HcalTrigTowerDetId const &)
 
 Container1D ()
 
 Container1D (std::string const &folder, std::string const &nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, fEntries))
 
virtual void fill (double)
 
virtual void fill (int)
 
virtual void fill (int, int)
 
virtual void fill (int, double)
 
virtual void fill (int, int, double)
 
virtual void fill (int, double, double)
 
virtual void fill (int, int, int, double)
 
virtual void fill (int, int, double, double)
 
virtual void fill (int, double, double, double)
 
virtual void fill (HcalDetId const &, int, int)
 
virtual double getBinContent (unsigned int, int)
 
virtual void initialize (std::string const &folder, std::string const &nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, fEntries), int debug=0)
 
virtual void reset ()
 
virtual unsigned int size ()
 
virtual ~Container1D ()
 
- Public Member Functions inherited from hcaldqm::Container
 Container ()
 
 Container (std::string const &folder, std::string const &name)
 
virtual void initialize (std::string const &folder, std::string const &name, int debug=0)
 
virtual ~Container ()
 

Protected Attributes

Axis_zaxis
 
- Protected Attributes inherited from hcaldqm::Container1D
mapper::Mapper _mapper
 
MEVector _mes
 
axis::Axis_xaxis
 
axis::Axis_yaxis
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _name
 

Additional Inherited Members

- Protected Types inherited from hcaldqm::Container1D
typedef std::vector
< MonitorElement * > 
MEVector
 

Detailed Description

Definition at line 20 of file Container2D.h.

Constructor & Destructor Documentation

hcaldqm::Container2D::Container2D ( )

Definition at line 11 of file Container2D.cc.

References NULL.

12  {
13  _xaxis = NULL;
14  _yaxis = NULL;
15  _zaxis = NULL;
16  }
#define NULL
Definition: scimark2.h:8
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
hcaldqm::Container2D::Container2D ( std::string const &  folder,
std::string  nametitle,
mapper::MapperType  mt,
axis::Axis xaxis,
axis::Axis yaxis = new axis::CoordinateAxis(axis::fYaxis, axis::fiphi),
axis::Axis zaxis = new axis::ValueAxis(axis::fZaxisaxis::fEntries) 
)

Definition at line 24 of file Container2D.cc.

26  :
27  Container1D(folder, nametitle, mt, xaxis, yaxis), _zaxis(zaxis)
28  {}
hcaldqm::Container2D::~Container2D ( )
virtual

Definition at line 18 of file Container2D.cc.

References NULL.

19  {
20  // Container1D::~Container1D will be called as well
21  delete _zaxis; _zaxis=NULL;
22  }
#define NULL
Definition: scimark2.h:8

Member Function Documentation

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

Reimplemented from hcaldqm::Container1D.

Reimplemented in hcaldqm::ContainerProf2D.

Definition at line 233 of file Container2D.cc.

References hcaldqm::Container::_folder, hcaldqm::axis::Axis::_labels, hcaldqm::Container1D::_mapper, hcaldqm::axis::Axis::_max, hcaldqm::Container1D::_mes, hcaldqm::axis::Axis::_min, hcaldqm::Container::_name, hcaldqm::axis::Axis::_nbins, hcaldqm::axis::Axis::_title, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, _zaxis, DQMStore::IBooker::book2D(), hcaldqm::mapper::Mapper::buildName(), MonitorElement::getRootObject(), hcaldqm::mapper::Mapper::getSize(), i, connectstrParser::o, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), hcaldqm::axis::Axis::setBitAxisFlag(), hcaldqm::axis::Axis::setBitAxisLS(), DQMStore::IBooker::setCurrentFolder(), hcaldqm::axis::Axis::setLog(), hcaldqm::Container1D::size(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by RecHitTask::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), RawTask::bookHistograms(), LEDTask::bookHistograms(), LaserTask::bookHistograms(), and DigiTask::bookHistograms().

235  {
236  unsigned int size = _mapper.getSize();
238  for (unsigned int i=0; i<size; i++)
239  {
240  std::string hname = _mapper.buildName(i);
241  MonitorElement *me = ib.book2D(_name+"_"+hname,
242  _name+" "+hname, _xaxis->_nbins, _xaxis->_min, _xaxis->_max,
244  TObject *o = me->getRootObject();
245  _xaxis->setLog(o);
246  _yaxis->setLog(o);
247  _zaxis->setLog(o);
248  _xaxis->setBitAxisLS(o);
249  _yaxis->setBitAxisLS(o);
252  me->setAxisTitle(_xaxis->_title, 1);
253  me->setAxisTitle(_yaxis->_title, 2);
254  me->setAxisTitle(_zaxis->_title, 3);
255  for (unsigned int i=0; i<_xaxis->_labels.size(); i++)
256  me->setBinLabel(i+1, _xaxis->_labels[i], 1);
257  for (unsigned int i=0; i<_yaxis->_labels.size(); i++)
258  me->setBinLabel(i+1, _yaxis->_labels[i], 2);
259  _mes.push_back(me);
260  }
261  }
int i
Definition: DBlmapReader.cc:9
virtual void setBitAxisFlag(TObject *o)
Definition: Axis.h:98
virtual std::string buildName(unsigned id)
Definition: Mapper.h:226
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)
mapper::Mapper _mapper
Definition: Container1D.h:109
std::string _title
Definition: Axis.h:108
std::vector< std::string > _labels
Definition: Axis.h:109
std::string _folder
Definition: Container.h:42
virtual unsigned int size()
Definition: Container1D.h:96
TObject * getRootObject(void) const
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:273
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void setLog(TObject *o)
Definition: Axis.h:89
virtual void setBitAxisLS(TObject *o)
Definition: Axis.h:94
unsigned int getSize()
Definition: Mapper.h:517
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string _name
Definition: Container.h:43
void hcaldqm::Container2D::fill ( HcalDetId const &  did)
virtual
void hcaldqm::Container2D::fill ( HcalDetId const &  did,
int  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 46 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

47  {
48  AxisQType xact = _xaxis->getType();
49  AxisQType yact = _yaxis->getType();
50  if (xact==fCoordinate && yact==fCoordinate)
51  _mes[_mapper.index(did)]->Fill(_xaxis->get(did),
52  _yaxis->get(did), x);
53  else if (xact==fCoordinate)
54  _mes[_mapper.index(did)]->Fill(_xaxis->get(did),
55  _yaxis->get(x));
56  else if (yact==fCoordinate)
57  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(did));
58  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalDetId const &  did,
double  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 60 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

61  {
62  AxisQType xact = _xaxis->getType();
63  AxisQType yact = _yaxis->getType();
64  if (xact==fCoordinate && yact==fCoordinate)
65  _mes[_mapper.index(did)]->Fill(_xaxis->get(did),
66  _yaxis->get(did), x);
67  else if (xact==fCoordinate)
68  _mes[_mapper.index(did)]->Fill(_xaxis->get(did),
69  _yaxis->get(x));
70  else if (yact==fCoordinate)
71  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(did));
72  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalDetId const &  did,
int  x,
double  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 74 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

76  {
77  AxisQType xact = _xaxis->getType();
78  AxisQType yact = _yaxis->getType();
79  if (xact==fCoordinate && yact!=fCoordinate)
80  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x), y);
81  else if (xact!=fCoordinate && yact==fCoordinate)
82  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(did), y);
83  else if (yact!=fCoordinate && xact!=fCoordinate)
84  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(y));
85  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalDetId const &  did,
double  x,
double  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 87 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

89  {
90  AxisQType xact = _xaxis->getType();
91  AxisQType yact = _yaxis->getType();
92  if (xact==fCoordinate && yact!=fCoordinate)
93  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x), y);
94  else if (xact!=fCoordinate && yact==fCoordinate)
95  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(did), y);
96  else if (yact!=fCoordinate && xact!=fCoordinate)
97  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(y));
98  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalElectronicsId const &  eid)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 101 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::Axis::get(), and hcaldqm::mapper::Mapper::index().

102  {
103  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid),
104  _yaxis->get(eid));
105  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalElectronicsId const &  eid,
int  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 107 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

108  {
109  AxisQType xact = _xaxis->getType();
110  AxisQType yact = _yaxis->getType();
111  if (xact==fCoordinate && yact==fCoordinate)
112  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid),
113  _yaxis->get(eid), x);
114  else if (xact==fCoordinate)
115  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid),
116  _yaxis->get(x));
117  else if (yact==fCoordinate)
118  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(eid));
119  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalElectronicsId const &  eid,
double  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 121 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

122  {
123  AxisQType xact = _xaxis->getType();
124  AxisQType yact = _yaxis->getType();
125  if (xact==fCoordinate && yact==fCoordinate)
126  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid),
127  _yaxis->get(eid), x);
128  else if (xact==fCoordinate)
129  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid),
130  _yaxis->get(x));
131  else if (yact==fCoordinate)
132  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(eid));
133  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalElectronicsId const &  eid,
int  x,
double  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 135 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

137  {
138  AxisQType xact = _xaxis->getType();
139  AxisQType yact = _yaxis->getType();
140  if (xact==fCoordinate && yact!=fCoordinate)
141  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x), y);
142  else if (xact!=fCoordinate && yact==fCoordinate)
143  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(eid), y);
144  else if (yact!=fCoordinate && xact!=fCoordinate)
145  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(y));
146  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalElectronicsId const &  eid,
double  x,
double  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 148 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

150  {
151  AxisQType xact = _xaxis->getType();
152  AxisQType yact = _yaxis->getType();
153  if (xact==fCoordinate && yact!=fCoordinate)
154  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x), y);
155  else if (xact!=fCoordinate && yact==fCoordinate)
156  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(eid), y);
157  else if (yact!=fCoordinate && xact!=fCoordinate)
158  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(y));
159  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 161 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::Axis::get(), and hcaldqm::mapper::Mapper::index().

162  {
163  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(tid));
164  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid,
int  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 166 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

167  {
168  AxisQType xact = _xaxis->getType();
169  AxisQType yact = _yaxis->getType();
170  if (xact==fCoordinate && yact==fCoordinate)
171  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid),
172  _yaxis->get(tid), x);
173  else if (xact==fCoordinate)
174  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid),
175  _yaxis->get(x));
176  else if (yact==fCoordinate)
177  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(tid));
178  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid,
double  x 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 180 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

181  {
182  AxisQType xact = _xaxis->getType();
183  AxisQType yact = _yaxis->getType();
184  if (xact==fCoordinate && yact==fCoordinate)
185  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid),
186  _yaxis->get(tid), x);
187  else if (xact==fCoordinate)
188  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid),
189  _yaxis->get(x));
190  else if (yact==fCoordinate)
191  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(tid));
192  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid,
int  x,
int  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 194 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

196  {
197  AxisQType xact = _xaxis->getType();
198  AxisQType yact = _yaxis->getType();
199  if (xact==fCoordinate && yact!=fCoordinate)
200  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x), y);
201  else if (xact!=fCoordinate && yact==fCoordinate)
202  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(tid), y);
203  else if (yact!=fCoordinate && xact!=fCoordinate)
204  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(y));
205  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid,
int  x,
double  y 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 207 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

209  {
210  AxisQType xact = _xaxis->getType();
211  AxisQType yact = _yaxis->getType();
212  if (xact==fCoordinate && yact!=fCoordinate)
213  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x), y);
214  else if (xact!=fCoordinate && yact==fCoordinate)
215  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(tid), y);
216  else if (yact!=fCoordinate && xact!=fCoordinate)
217  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(y));
218  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::fill ( HcalTrigTowerDetId const &  tid,
double  x,
double  y 
)
virtual

Definition at line 220 of file Container2D.cc.

References hcaldqm::Container1D::_mapper, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fCoordinate, hcaldqm::axis::Axis::get(), hcaldqm::axis::Axis::getType(), and hcaldqm::mapper::Mapper::index().

222  {
223  AxisQType xact = _xaxis->getType();
224  AxisQType yact = _yaxis->getType();
225  if (xact==fCoordinate && yact!=fCoordinate)
226  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x), y);
227  else if (xact!=fCoordinate && yact==fCoordinate)
228  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(tid), y);
229  else if (yact!=fCoordinate && xact!=fCoordinate)
230  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(y));
231  }
virtual unsigned int index()
Definition: Mapper.h:128
virtual int get(HcalDetId const &)
Definition: Axis.h:72
mapper::Mapper _mapper
Definition: Container1D.h:109
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::initialize ( std::string const &  folder,
std::string  nametitle,
mapper::MapperType  mt,
axis::Axis xaxis,
axis::Axis yaxis = new axis::CoordinateAxis(axis::fYaxis, axis::fiphi),
axis::Axis zaxis = new axis::ValueAxis(axis::fZaxisaxis::fEntries),
int  debug = 0 
)
virtual

Definition at line 30 of file Container2D.cc.

References _zaxis, and hcaldqm::Container1D::initialize().

Referenced by DigiTask::DigiTask(), hcaldqm::ContainerProf2D::initialize(), LaserTask::LaserTask(), LEDTask::LEDTask(), PedestalTask::PedestalTask(), RawTask::RawTask(), RecHitTask::RecHitTask(), and TPTask::TPTask().

34  {
35  Container1D::initialize(folder, nametitle, mt, xaxis, yaxis, debug);
36  _zaxis = zaxis;
37  }
virtual void initialize(std::string const &folder, std::string const &nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, fEntries), int debug=0)
Definition: Container1D.cc:28
#define debug
Definition: HDRShower.cc:19
void hcaldqm::Container2D::loadLabels ( std::vector< std::string > const &  labels)
virtual

Definition at line 294 of file Container2D.cc.

References hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, hcaldqm::axis::fFlag, hcaldqm::axis::Axis::getType(), and hcaldqm::axis::Axis::loadLabels().

Referenced by DigiTask::DigiTask(), RawTask::RawTask(), RecHitTask::RecHitTask(), and TPTask::TPTask().

296  {
297  AxisQType xact = _xaxis->getType();
298  AxisQType yact = _yaxis->getType();
299  if (xact!=fFlag && yact!=fFlag)
300  return;
301  else if (xact!=fFlag)
303  else
305  }
virtual void loadLabels(std::vector< std::string > const &)
Definition: Axis.h:85
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::setBinContent ( int  id,
int  x,
int  y,
double  z 
)
virtual
void hcaldqm::Container2D::setBinContent ( unsigned int  id,
int  x,
int  y,
double  z 
)
virtual

Definition at line 269 of file Container2D.cc.

References hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, and hcaldqm::axis::Axis::getBin().

271  {
272  _mes[id]->setBinContent(_xaxis->getBin(x),
273  _yaxis->getBin(y), z);
274  }
virtual int getBin(HcalDetId const &)
Definition: Axis.h:79
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::setBinContent ( int  id,
int  x,
double  y,
double  z 
)
virtual

Definition at line 276 of file Container2D.cc.

References hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, and hcaldqm::axis::Axis::getBin().

277  {
278  _mes[id]->setBinContent(_xaxis->getBin(x),
279  _yaxis->getBin(y), z);
280  }
virtual int getBin(HcalDetId const &)
Definition: Axis.h:79
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::setBinContent ( int  id,
double  x,
int  y,
double  z 
)
virtual

Definition at line 282 of file Container2D.cc.

References hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, and hcaldqm::axis::Axis::getBin().

283  {
284  _mes[id]->setBinContent(_xaxis->getBin(x),
285  _yaxis->getBin(y), z);
286  }
virtual int getBin(HcalDetId const &)
Definition: Axis.h:79
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container2D::setBinContent ( int  id,
double  x,
double  y,
double  z 
)
virtual

Definition at line 288 of file Container2D.cc.

References hcaldqm::Container1D::_mes, hcaldqm::Container1D::_xaxis, hcaldqm::Container1D::_yaxis, and hcaldqm::axis::Axis::getBin().

289  {
290  _mes[id]->setBinContent(_xaxis->getBin(x),
291  _yaxis->getBin(y), z);
292  }
virtual int getBin(HcalDetId const &)
Definition: Axis.h:79
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111

Member Data Documentation

Axis* hcaldqm::Container2D::_zaxis
protected