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::ContainerSingle1D Class Reference

#include <ContainerSingle1D.h>

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

Public Member Functions

virtual void book (DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
 
 ContainerSingle1D ()
 
 ContainerSingle1D (std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries))
 
 ContainerSingle1D (ContainerSingle1D const &)
 
virtual void fill (int)
 
virtual void fill (double)
 
virtual void fill (int, int)
 
virtual void fill (int, double)
 
virtual void fill (double, int)
 
virtual void fill (double, double)
 
virtual void fill (HcalDetId const &)
 
virtual void fill (HcalDetId const &, double)
 
virtual void fill (HcalDetId const &, double, double)
 
virtual void fill (HcalElectronicsId const &)
 
virtual void fill (HcalElectronicsId const &, double)
 
virtual void initialize (std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries), int debug=0)
 
virtual ~ContainerSingle1D ()
 
- 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

MonitorElement_me
 
Axis_xaxis
 
Axis_yaxis
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _name
 

Detailed Description

Definition at line 21 of file ContainerSingle1D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerSingle1D::ContainerSingle1D ( )

Definition at line 8 of file ContainerSingle1D.cc.

References NULL.

9  {
10  _xaxis = NULL;
11  _yaxis = NULL;
12  }
#define NULL
Definition: scimark2.h:8
hcaldqm::ContainerSingle1D::ContainerSingle1D ( std::string const &  folder,
std::string const &  nametitle,
axis::Axis xaxis,
axis::Axis yaxis = new ValueAxis(fYaxis, axis::fEntries) 
)

Definition at line 20 of file ContainerSingle1D.cc.

22  :
23  Container(folder, nametitle),
24  _xaxis(xaxis), _yaxis(yaxis)
25  {}
hcaldqm::ContainerSingle1D::ContainerSingle1D ( ContainerSingle1D const &  c)

Definition at line 27 of file ContainerSingle1D.cc.

References _xaxis, _yaxis, and hcaldqm::axis::Axis::makeCopy().

27  :
28  Container(c._folder, c._name)
29  {
30  _xaxis = c._xaxis->makeCopy();
31  _yaxis = c._yaxis->makeCopy();
32  }
hcaldqm::ContainerSingle1D::~ContainerSingle1D ( )
virtual

Definition at line 14 of file ContainerSingle1D.cc.

References NULL.

15  {
16  delete _xaxis; _xaxis=NULL;
17  delete _yaxis; _yaxis=NULL;
18  }
#define NULL
Definition: scimark2.h:8

Member Function Documentation

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

Reimplemented in hcaldqm::ContainerSingleProf1D.

Definition at line 43 of file ContainerSingle1D.cc.

References hcaldqm::Container::_folder, hcaldqm::axis::Axis::_labels, hcaldqm::axis::Axis::_max, _me, hcaldqm::axis::Axis::_min, hcaldqm::Container::_name, hcaldqm::axis::Axis::_nbins, hcaldqm::axis::Axis::_title, _xaxis, _yaxis, DQMStore::IBooker::book1D(), MonitorElement::getRootObject(), i, connectstrParser::o, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), hcaldqm::axis::Axis::setBitAxisFlag(), hcaldqm::axis::Axis::setBitAxisLS(), DQMStore::IBooker::setCurrentFolder(), and hcaldqm::axis::Axis::setLog().

Referenced by DigiTask::bookHistograms().

45  {
47  _me = ib.book1D(_name, _name,
49  TObject *o = _me->getRootObject();
50  _xaxis->setLog(o);
51  _yaxis->setLog(o);
52  _xaxis->setBitAxisLS(o);
53  _yaxis->setBitAxisLS(o);
58  for (unsigned int i=0; i<_xaxis->_labels.size(); i++)
59  _me->setBinLabel(i+1, _xaxis->_labels[i], 1);
60  }
int i
Definition: DBlmapReader.cc:9
virtual void setBitAxisFlag(TObject *o)
Definition: Axis.h:98
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)
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
TObject * getRootObject(void) const
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:273
void setLog(TObject *o)
Definition: Axis.h:89
virtual void setBitAxisLS(TObject *o)
Definition: Axis.h:94
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::ContainerSingle1D::fill ( int  x)
virtual

Definition at line 62 of file ContainerSingle1D.cc.

References _me, _xaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

Referenced by DigiTask::_process().

63  {
64  _me->Fill(_xaxis->get(x));
65  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( double  x)
virtual

Definition at line 67 of file ContainerSingle1D.cc.

References _me, _xaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

68  {
69  _me->Fill(_xaxis->get(x));
70  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( int  x,
int  y 
)
virtual

Definition at line 72 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

73  {
74  _me->Fill(_xaxis->get(x), _yaxis->get(y));
75  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( int  x,
double  y 
)
virtual

Definition at line 77 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

78  {
79  _me->Fill(_xaxis->get(x), _yaxis->get(y));
80  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( double  x,
int  y 
)
virtual

Definition at line 82 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

83  {
84  _me->Fill(_xaxis->get(x), _yaxis->get(y));
85  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( double  x,
double  y 
)
virtual

Definition at line 87 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

88  {
89  _me->Fill(_xaxis->get(x), _yaxis->get(y));
90  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id)
virtual

Definition at line 92 of file ContainerSingle1D.cc.

References _me, _xaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

93  {
94  _me->Fill(_xaxis->get(id));
95  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id,
double  x 
)
virtual

Definition at line 97 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, hcaldqm::axis::fCoordinate, MonitorElement::Fill(), hcaldqm::axis::Axis::get(), and hcaldqm::axis::Axis::getType().

98  {
99  AxisQType xact = _xaxis->getType();
100  if (xact==fCoordinate)
101  _me->Fill(_xaxis->get(id), _yaxis->get(x));
102  else
103  _me->Fill(_xaxis->get(x));
104  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
AxisQType getType()
Definition: Axis.h:88
void hcaldqm::ContainerSingle1D::fill ( HcalDetId const &  id,
double  x,
double  y 
)
virtual

Definition at line 106 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, hcaldqm::axis::fCoordinate, MonitorElement::Fill(), hcaldqm::axis::Axis::get(), and hcaldqm::axis::Axis::getType().

108  {
109  AxisQType xact = _xaxis->getType();
110  if (xact==fCoordinate)
111  _me->Fill(_xaxis->get(id), _yaxis->get(x), y);
112  else
113  _me->Fill(_xaxis->get(x), _yaxis->get(y));
114  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
AxisQType getType()
Definition: Axis.h:88
void hcaldqm::ContainerSingle1D::fill ( HcalElectronicsId const &  id)
virtual

Definition at line 116 of file ContainerSingle1D.cc.

References _me, _xaxis, MonitorElement::Fill(), and hcaldqm::axis::Axis::get().

117  {
118  _me->Fill(_xaxis->get(id));
119  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
void hcaldqm::ContainerSingle1D::fill ( HcalElectronicsId const &  id,
double  x 
)
virtual

Definition at line 121 of file ContainerSingle1D.cc.

References _me, _xaxis, _yaxis, hcaldqm::axis::fCoordinate, MonitorElement::Fill(), hcaldqm::axis::Axis::get(), and hcaldqm::axis::Axis::getType().

123  {
124  AxisQType xact = _xaxis->getType();
125  if (xact==fCoordinate)
126  _me->Fill(_xaxis->get(id), _yaxis->get(x));
127  else
128  _me->Fill(_xaxis->get(x));
129  }
virtual int get(HcalDetId const &)
Definition: Axis.h:72
void Fill(long long x)
AxisQType getType()
Definition: Axis.h:88
void hcaldqm::ContainerSingle1D::initialize ( std::string const &  folder,
std::string const &  nametitle,
axis::Axis xaxis,
axis::Axis yaxis = new ValueAxis(fYaxis, axis::fEntries),
int  debug = 0 
)
virtual

Reimplemented in hcaldqm::ContainerSingleProf1D.

Definition at line 34 of file ContainerSingle1D.cc.

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

Referenced by DigiTask::DigiTask(), and hcaldqm::ContainerSingleProf1D::initialize().

37  {
38  Container::initialize(folder, nametitle, debug);
39  _xaxis = xaxis;
40  _yaxis = yaxis;
41  }
virtual void initialize(std::string const &folder, std::string const &name, int debug=0)
Definition: Container.h:33
#define debug
Definition: HDRShower.cc:19

Member Data Documentation

MonitorElement* hcaldqm::ContainerSingle1D::_me
protected

Definition at line 58 of file ContainerSingle1D.h.

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

Axis* hcaldqm::ContainerSingle1D::_xaxis
protected
Axis* hcaldqm::ContainerSingle1D::_yaxis
protected