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 Types | Protected Attributes
hcaldqm::Container1D Class Reference

#include <Container1D.h>

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

Public Member Functions

virtual MonitorElementat (unsigned int i)
 
virtual MonitorElementat (HcalDetId const &)
 
virtual MonitorElementat (HcalElectronicsId const &)
 
virtual MonitorElementat (HcalTrigTowerDetId const &)
 
virtual void book (DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
 
 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 &)
 
virtual void fill (HcalDetId const &, int)
 
virtual void fill (HcalDetId const &, double)
 
virtual void fill (HcalDetId const &, int, double)
 
virtual void fill (HcalDetId const &, int, int)
 
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 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 Types

typedef std::vector
< MonitorElement * > 
MEVector
 

Protected Attributes

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
 

Detailed Description

Definition at line 27 of file Container1D.h.

Member Typedef Documentation

typedef std::vector<MonitorElement*> hcaldqm::Container1D::MEVector
protected

Definition at line 107 of file Container1D.h.

Constructor & Destructor Documentation

hcaldqm::Container1D::Container1D ( )

Definition at line 10 of file Container1D.cc.

References NULL.

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

Definition at line 22 of file Container1D.cc.

24  :
25  Container(folder, nametitle), _mapper(mt), _xaxis(xaxis), _yaxis(yaxis)
26  {}
mapper::Mapper _mapper
Definition: Container1D.h:109
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
hcaldqm::Container1D::~Container1D ( )
virtual

Definition at line 16 of file Container1D.cc.

References NULL.

17  {
18  delete _xaxis; _xaxis=NULL;
19  delete _yaxis; _yaxis=NULL;
20  }
#define NULL
Definition: scimark2.h:8
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111

Member Function Documentation

MonitorElement * hcaldqm::Container1D::at ( unsigned int  i)
virtual

Definition at line 236 of file Container1D.cc.

References _mes, and i.

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

237  {
238  return _mes[i];
239  }
int i
Definition: DBlmapReader.cc:9
MonitorElement * hcaldqm::Container1D::at ( HcalDetId const &  did)
virtual

Definition at line 241 of file Container1D.cc.

References _mapper, _mes, and hcaldqm::mapper::Mapper::index().

242  {
243  return _mes[_mapper.index(did)];
244  }
virtual unsigned int index()
Definition: Mapper.h:128
mapper::Mapper _mapper
Definition: Container1D.h:109
MonitorElement * hcaldqm::Container1D::at ( HcalElectronicsId const &  eid)
virtual

Definition at line 246 of file Container1D.cc.

References _mapper, _mes, and hcaldqm::mapper::Mapper::index().

247  {
248  return _mes[_mapper.index(eid)];
249  }
virtual unsigned int index()
Definition: Mapper.h:128
mapper::Mapper _mapper
Definition: Container1D.h:109
MonitorElement * hcaldqm::Container1D::at ( HcalTrigTowerDetId const &  tid)
virtual

Definition at line 251 of file Container1D.cc.

References _mapper, _mes, and hcaldqm::mapper::Mapper::index().

252  {
253  return _mes[_mapper.index(tid)];
254  }
virtual unsigned int index()
Definition: Mapper.h:128
mapper::Mapper _mapper
Definition: Container1D.h:109
void hcaldqm::Container1D::book ( DQMStore::IBooker ib,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented in hcaldqm::Container2D, hcaldqm::ContainerProf2D, and hcaldqm::ContainerProf1D.

Definition at line 198 of file Container1D.cc.

References hcaldqm::Container::_folder, hcaldqm::axis::Axis::_labels, _mapper, hcaldqm::axis::Axis::_max, _mes, hcaldqm::axis::Axis::_min, hcaldqm::Container::_name, hcaldqm::axis::Axis::_nbins, hcaldqm::axis::Axis::_title, _xaxis, _yaxis, DQMStore::IBooker::book1D(), 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(), size(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

200  {
201 
202  unsigned int size = _mapper.getSize();
204  for (unsigned int i=0; i<size; i++)
205  {
206 // utilities::log(_name);
207  std::string hname = _mapper.buildName(i);
208  MonitorElement *me = ib.book1D(_name+"_"+hname, _name +" "+hname,
210  TObject *o = me->getRootObject();
211  _xaxis->setLog(o);
212  _yaxis->setLog(o);
213  _xaxis->setBitAxisLS(o);
214  _yaxis->setBitAxisLS(o);
217  me->setAxisTitle(_xaxis->_title, 1);
218  me->setAxisTitle(_yaxis->_title, 2);
219  for (unsigned int i=0; i<_xaxis->_labels.size(); i++)
220  me->setBinLabel(i+1, _xaxis->_labels[i]);
221  _mes.push_back(me);
222  }
223  }
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
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
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:276
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
virtual void hcaldqm::Container1D::fill ( double  )
inlinevirtual
virtual void hcaldqm::Container1D::fill ( int  )
inlinevirtual

Definition at line 54 of file Container1D.h.

54 {}
void hcaldqm::Container1D::fill ( int  id,
int  x 
)
virtual

Definition at line 38 of file Container1D.cc.

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

39  {
40  _mes[_mapper.index(id)]->Fill(_xaxis->get(x));
41  }
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
void hcaldqm::Container1D::fill ( int  id,
double  x 
)
virtual

Definition at line 42 of file Container1D.cc.

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

43  {
44  _mes[_mapper.index(id)]->Fill(_xaxis->get(x));
45  }
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
void hcaldqm::Container1D::fill ( int  id,
int  x,
double  y 
)
virtual

Definition at line 46 of file Container1D.cc.

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

47  {
48  _mes[_mapper.index(id)]->Fill(_xaxis->get(x), _yaxis->get(y));
49  }
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::Container1D::fill ( int  id,
double  x,
double  y 
)
virtual

Definition at line 50 of file Container1D.cc.

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

51  {
52  _mes[_mapper.index(id)]->Fill(_xaxis->get(x), _yaxis->get(y));
53  }
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::Container1D::fill ( int  id,
int  x,
int  y,
double  z 
)
virtual

Definition at line 55 of file Container1D.cc.

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

56  {
57  _mes[_mapper.index(id)]->Fill(_xaxis->get(x), _yaxis->get(y), z);
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
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container1D::fill ( int  id,
int  x,
double  y,
double  z 
)
virtual

Definition at line 60 of file Container1D.cc.

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

61  {
62  _mes[_mapper.index(id)]->Fill(_xaxis->get(x), _yaxis->get(y), z);
63  }
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::Container1D::fill ( int  id,
double  x,
double  y,
double  z 
)
virtual

Definition at line 65 of file Container1D.cc.

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

66  {
67  _mes[_mapper.index(id)]->Fill(_xaxis->get(x), _yaxis->get(y), z);
68  }
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::Container1D::fill ( HcalDetId const &  did)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 70 of file Container1D.cc.

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

71  {
72  _mes[_mapper.index(did)]->Fill(_xaxis->get(did));
73  }
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
void hcaldqm::Container1D::fill ( HcalDetId const &  did,
int  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 74 of file Container1D.cc.

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

75  {
76  AxisQType act = _xaxis->getType();
77  if (act==fValue || act==fFlag)
78  _mes[_mapper.index(did)]->Fill(_xaxis->get(x));
79  else if (act==fCoordinate)
80  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x));
81  }
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::Container1D::fill ( HcalDetId const &  did,
double  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 82 of file Container1D.cc.

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

83  {
84  AxisQType act = _xaxis->getType();
85  if (act==fValue || act==fFlag)
86  _mes[_mapper.index(did)]->Fill(_xaxis->get(x));
87  else if (act==fCoordinate)
88  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x));
89  }
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::Container1D::fill ( HcalDetId const &  did,
int  x,
double  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 90 of file Container1D.cc.

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

91  {
92  AxisQType act = _xaxis->getType();
93  if (act==fValue || act==fFlag)
94  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(y));
95  else if (act==fCoordinate)
96  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x), y);
97  }
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::Container1D::fill ( HcalDetId const &  did,
int  x,
int  y 
)
virtual

Definition at line 98 of file Container1D.cc.

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

99  {
100  AxisQType act = _xaxis->getType();
101  if (act==fValue || act==fFlag)
102  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(y));
103  else if (act==fCoordinate)
104  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x), y);
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
AxisQType getType()
Definition: Axis.h:88
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
void hcaldqm::Container1D::fill ( HcalDetId const &  did,
double  x,
double  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 106 of file Container1D.cc.

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

108  {
109  AxisQType act = _xaxis->getType();
110  if (act==fValue || act==fFlag)
111  _mes[_mapper.index(did)]->Fill(_xaxis->get(x), _yaxis->get(y));
112  else if (act==fCoordinate)
113  _mes[_mapper.index(did)]->Fill(_xaxis->get(did), _yaxis->get(x), y);
114  }
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::Container1D::fill ( HcalElectronicsId const &  eid)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 116 of file Container1D.cc.

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

117  {
118  _mes[_mapper.index(eid)]->Fill(_xaxis->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
axis::Axis * _xaxis
Definition: Container1D.h:110
void hcaldqm::Container1D::fill ( HcalElectronicsId const &  eid,
int  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 120 of file Container1D.cc.

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

121  {
122  AxisQType act = _xaxis->getType();
123  if (act==fValue || act==fFlag)
124  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x));
125  else if (act==fCoordinate)
126  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x));
127  }
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::Container1D::fill ( HcalElectronicsId const &  eid,
double  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 128 of file Container1D.cc.

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

129  {
130  AxisQType act = _xaxis->getType();
131  if (act==fValue || act==fFlag)
132  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x));
133  else if (act==fCoordinate)
134  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x));
135  }
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::Container1D::fill ( HcalElectronicsId const &  eid,
int  x,
double  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 136 of file Container1D.cc.

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

138  {
139  AxisQType act = _xaxis->getType();
140  if (act==fValue || act==fFlag)
141  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(y));
142  else if (act==fCoordinate)
143  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x), y);
144  }
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::Container1D::fill ( HcalElectronicsId const &  eid,
double  x,
double  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 145 of file Container1D.cc.

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

147  {
148  AxisQType act = _xaxis->getType();
149  if (act==fValue || act==fFlag)
150  _mes[_mapper.index(eid)]->Fill(_xaxis->get(x), _yaxis->get(y));
151  else if (act==fCoordinate)
152  _mes[_mapper.index(eid)]->Fill(_xaxis->get(eid), _yaxis->get(x), y);
153  }
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::Container1D::fill ( HcalTrigTowerDetId const &  tid)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 155 of file Container1D.cc.

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

156  {
157  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid));
158  }
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
void hcaldqm::Container1D::fill ( HcalTrigTowerDetId const &  tid,
int  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 160 of file Container1D.cc.

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

161  {
162  AxisQType act = _xaxis->getType();
163  if (act==fCoordinate)
164  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x));
165  else
166  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x));
167  }
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::Container1D::fill ( HcalTrigTowerDetId const &  tid,
double  x 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 169 of file Container1D.cc.

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

170  {
171  AxisQType act = _xaxis->getType();
172  if (act==fCoordinate)
173  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x));
174  else
175  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x));
176  }
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::Container1D::fill ( HcalTrigTowerDetId const &  tid,
int  x,
int  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 178 of file Container1D.cc.

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

180  {
181  AxisQType act = _xaxis->getType();
182  if (act==fCoordinate)
183  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x), y);
184  else
185  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(y));
186  }
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::Container1D::fill ( HcalTrigTowerDetId const &  tid,
int  x,
double  y 
)
virtual

Reimplemented in hcaldqm::Container2D.

Definition at line 188 of file Container1D.cc.

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

190  {
191  AxisQType act = _xaxis->getType();
192  if (act==fCoordinate)
193  _mes[_mapper.index(tid)]->Fill(_xaxis->get(tid), _yaxis->get(x), y);
194  else
195  _mes[_mapper.index(tid)]->Fill(_xaxis->get(x), _yaxis->get(y));
196  }
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
double hcaldqm::Container1D::getBinContent ( unsigned int  id,
int  x 
)
virtual

Definition at line 225 of file Container1D.cc.

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

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

226  {
227  return _mes[id]->getBinContent(_xaxis->getBin(x));
228  }
virtual int getBin(HcalDetId const &)
Definition: Axis.h:79
axis::Axis * _xaxis
Definition: Container1D.h:110
void hcaldqm::Container1D::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

Reimplemented in hcaldqm::ContainerProf1D.

Definition at line 28 of file Container1D.cc.

References _mapper, _xaxis, _yaxis, hcaldqm::Container::initialize(), and hcaldqm::mapper::Mapper::initialize().

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

31  {
32  Container::initialize(folder, nametitle, debug);
34  _xaxis = xaxis;
35  _yaxis = yaxis;
36  }
mapper::Mapper _mapper
Definition: Container1D.h:109
virtual void initialize(std::string const &folder, std::string const &name, int debug=0)
Definition: Container.h:33
#define debug
Definition: HDRShower.cc:19
axis::Axis * _xaxis
Definition: Container1D.h:110
axis::Axis * _yaxis
Definition: Container1D.h:111
virtual void initialize(MapperType type, int debug=0)
Definition: Mapper.h:122
void hcaldqm::Container1D::reset ( void  )
virtual

Definition at line 230 of file Container1D.cc.

References _mes.

Referenced by LaserTask::_dump(), LEDTask::_dump(), PedestalTask::_dump(), and DigiTask::_resetMonitors().

231  {
232  for (MEVector::const_iterator it=_mes.begin(); it!=_mes.end(); ++it)
233  (*it)->Reset();
234  }
virtual unsigned int hcaldqm::Container1D::size ( void  )
inlinevirtual

Member Data Documentation

mapper::Mapper hcaldqm::Container1D::_mapper
protected
MEVector hcaldqm::Container1D::_mes
protected
axis::Axis* hcaldqm::Container1D::_xaxis
protected
axis::Axis* hcaldqm::Container1D::_yaxis
protected