CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
hcaldqm::ContainerProf2D Class Reference

#include <ContainerProf2D.h>

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

Public Member Functions

virtual void book (DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
 
 ContainerProf2D ()
 
 ContainerProf2D (std::string const &folder, std::string const &nametitle, MapperType mt, Axis *xaxis, Axis *yaxis=new CoordinateAxis(axis::fYaxis, axis::fiphi), Axis *zaxis=new ValueAxis(axis::fZaxis, axis::fEntries))
 
virtual void initialize (std::string const &folder, std::string const &nametitle, MapperType mt, Axis *xaxis, Axis *yaxis=new CoordinateAxis(axis::fYaxis, axis::fiphi), Axis *zaxis=new ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
 
virtual ~ContainerProf2D ()
 
- Public Member Functions inherited from hcaldqm::Container2D
 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 ()
 

Additional Inherited Members

- Protected Types inherited from hcaldqm::Container1D
typedef std::vector
< MonitorElement * > 
MEVector
 
- Protected Attributes inherited from hcaldqm::Container2D
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
 

Detailed Description

Definition at line 21 of file ContainerProf2D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerProf2D::ContainerProf2D ( )

Definition at line 10 of file ContainerProf2D.cc.

References NULL.

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

Definition at line 17 of file ContainerProf2D.cc.

19  :
20  Container2D(folder, nametitle, mt, xaxis, yaxis, zaxis)
21  {}
virtual hcaldqm::ContainerProf2D::~ContainerProf2D ( )
inlinevirtual

Definition at line 31 of file ContainerProf2D.h.

31 {}

Member Function Documentation

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

Reimplemented from hcaldqm::Container2D.

Definition at line 31 of file ContainerProf2D.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, hcaldqm::Container2D::_zaxis, DQMStore::IBooker::bookProfile2D(), 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(), and DigiTask::bookHistograms().

33  {
34  unsigned int size = _mapper.getSize();
36  for (unsigned int i=0; i<size; i++)
37  {
38  std::string hname = _mapper.buildName(i);
39  MonitorElement *me = ib.bookProfile2D(_name+"_"+hname,
40  _name+" "+hname, _xaxis->_nbins, _xaxis->_min, _xaxis->_max,
42  _zaxis->_min, _zaxis->_max);
43  TObject *o = me->getRootObject();
44  _xaxis->setLog(o);
45  _yaxis->setLog(o);
46  _zaxis->setLog(o);
47  _xaxis->setBitAxisLS(o);
48  _yaxis->setBitAxisLS(o);
51  me->setAxisTitle(_xaxis->_title, 1);
52  me->setAxisTitle(_yaxis->_title, 2);
53  me->setAxisTitle(_zaxis->_title, 3);
54  for (unsigned int i=0; i<_xaxis->_labels.size(); i++)
55  me->setBinLabel(i+1, _xaxis->_labels[i], 1);
56  for (unsigned int i=0; i<_yaxis->_labels.size(); i++)
57  me->setBinLabel(i+1, _yaxis->_labels[i], 2);
58  _mes.push_back(me);
59  }
60  }
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 * bookProfile2D(Args &&...args)
Definition: DQMStore.h:163
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
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::ContainerProf2D::initialize ( std::string const &  folder,
std::string const &  nametitle,
MapperType  mt,
Axis xaxis,
Axis yaxis = new CoordinateAxis(axis::fYaxisaxis::fiphi),
Axis zaxis = new ValueAxis(axis::fZaxisaxis::fEntries),
int  debug = 0 
)
virtual

Definition at line 23 of file ContainerProf2D.cc.

References hcaldqm::Container2D::initialize().

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

26  {
27  Container2D::initialize(folder, nametitle, mt, xaxis, yaxis, zaxis,
28  debug);
29  }
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)
Definition: Container2D.cc:30
#define debug
Definition: HDRShower.cc:19