CMS 3D CMS Logo

List of all members | Public Member Functions
hcaldqm::ContainerProf1D Class Reference

#include <ContainerProf1D.h>

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

Public Member Functions

void book (DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
 
void book (DQMStore::IBooker &, HcalElectronicsMap const *, filter::HashFilter const &, std::string subsystem="Hcal", std::string aux="") override
 
 ContainerProf1D ()
 
 ContainerProf1D (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *)
 
void initialize (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
 
void initialize (std::string const &folder, std::string const &qname, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
 
 ~ContainerProf1D () override
 
- Public Member Functions inherited from hcaldqm::Container1D
 Container1D ()
 
 Container1D (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN))
 
virtual void extendAxisRange (int)
 
virtual void fill (uint32_t)
 
virtual void fill (uint32_t, int)
 
virtual void fill (uint32_t, double)
 
virtual void fill (uint32_t, int, double)
 
virtual void fill (uint32_t, int, int)
 
virtual void fill (uint32_t, 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 &, int, int)
 
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, double)
 
virtual void fill (HcalTrigTowerDetId const &, int, int)
 
virtual void fill (HcalTrigTowerDetId const &, double, double)
 
virtual double getBinContent (HcalDetId const &)
 
virtual double getBinContent (HcalDetId const &, int)
 
virtual double getBinContent (HcalDetId const &, double)
 
virtual double getBinContent (HcalDetId const &did, int x, int)
 
virtual double getBinContent (HcalDetId const &did, int x, double)
 
virtual double getBinContent (HcalDetId const &did, double x, double)
 
virtual double getBinContent (HcalElectronicsId const &)
 
virtual double getBinContent (HcalElectronicsId const &, int)
 
virtual double getBinContent (HcalElectronicsId const &, double)
 
virtual double getBinContent (HcalElectronicsId const &eid, int x, int)
 
virtual double getBinContent (HcalElectronicsId const &eid, int x, double)
 
virtual double getBinContent (HcalElectronicsId const &eid, double x, double)
 
virtual double getBinContent (HcalTrigTowerDetId const &)
 
virtual double getBinContent (HcalTrigTowerDetId const &, int)
 
virtual double getBinContent (HcalTrigTowerDetId const &, double)
 
virtual double getBinContent (HcalTrigTowerDetId const &tid, int x, int)
 
virtual double getBinContent (HcalTrigTowerDetId const &tid, int x, double)
 
virtual double getBinContent (HcalTrigTowerDetId const &tid, double x, double)
 
virtual double getBinEntries (HcalDetId const &)
 
virtual double getBinEntries (HcalDetId const &, int)
 
virtual double getBinEntries (HcalDetId const &, double)
 
virtual double getBinEntries (HcalDetId const &did, int x, int)
 
virtual double getBinEntries (HcalDetId const &did, int x, double)
 
virtual double getBinEntries (HcalDetId const &did, double x, double)
 
virtual double getBinEntries (HcalElectronicsId const &)
 
virtual double getBinEntries (HcalElectronicsId const &, int)
 
virtual double getBinEntries (HcalElectronicsId const &, double)
 
virtual double getBinEntries (HcalElectronicsId const &eid, int x, int)
 
virtual double getBinEntries (HcalElectronicsId const &eid, int x, double)
 
virtual double getBinEntries (HcalElectronicsId const &eid, double x, double)
 
virtual double getBinEntries (HcalTrigTowerDetId const &)
 
virtual double getBinEntries (HcalTrigTowerDetId const &, int)
 
virtual double getBinEntries (HcalTrigTowerDetId const &, double)
 
virtual double getBinEntries (HcalTrigTowerDetId const &tid, int x, int)
 
virtual double getBinEntries (HcalTrigTowerDetId const &tid, int x, double)
 
virtual double getBinEntries (HcalTrigTowerDetId const &tid, double x, double)
 
virtual double getMean (HcalDetId const &, int axis=1)
 
virtual double getMean (HcalElectronicsId const &, int axis=1)
 
virtual double getMean (HcalTrigTowerDetId const &, int axis=1)
 
virtual double getRMS (HcalDetId const &, int axix=1)
 
virtual double getRMS (HcalElectronicsId const &, int axis=1)
 
virtual double getRMS (HcalTrigTowerDetId const &, int axis=1)
 
virtual void load (DQMStore::IGetter &, HcalElectronicsMap const *, std::string const &subsystem="Hcal", std::string const &aux="")
 
virtual void load (DQMStore::IGetter &, HcalElectronicsMap const *, filter::HashFilter const &, std::string const &subsystem="Hcal", std::string const &aux="")
 
virtual void print ()
 
virtual void reset ()
 
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, double)
 
virtual void setBinContent (HcalDetId const &, double, int)
 
virtual void setBinContent (HcalDetId const &id, int x, int y, int)
 
virtual void setBinContent (HcalDetId const &id, int x, double y, int)
 
virtual void setBinContent (HcalDetId const &id, double x, int y, int)
 
virtual void setBinContent (HcalDetId const &id, double x, double y, int)
 
virtual void setBinContent (HcalDetId const &id, int x, int y, double)
 
virtual void setBinContent (HcalDetId const &id, int x, double y, double)
 
virtual void setBinContent (HcalDetId const &id, double x, int y, double)
 
virtual void setBinContent (HcalDetId const &id, double x, double y, 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, double)
 
virtual void setBinContent (HcalElectronicsId const &, double, int)
 
virtual void setBinContent (HcalElectronicsId const &id, int x, int y, int)
 
virtual void setBinContent (HcalElectronicsId const &id, int x, double y, int)
 
virtual void setBinContent (HcalElectronicsId const &id, double x, int y, int)
 
virtual void setBinContent (HcalElectronicsId const &id, double x, double y, int)
 
virtual void setBinContent (HcalElectronicsId const &id, int x, int y, double)
 
virtual void setBinContent (HcalElectronicsId const &id, int x, double y, double)
 
virtual void setBinContent (HcalElectronicsId const &id, double x, int y, double)
 
virtual void setBinContent (HcalElectronicsId const &id, double x, double y, 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, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &, double, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, int x, int y, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, int x, double y, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, double x, int y, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, double x, double y, int)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, int x, int y, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, int x, double y, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, double x, int y, double)
 
virtual void setBinContent (HcalTrigTowerDetId const &id, double x, double y, double)
 
virtual void setLumiFlag ()
 
virtual void showOverflowX (bool showOverflow)
 
virtual void showOverflowY (bool showOverflow)
 
 ~Container1D () 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 ()
 

Additional Inherited Members

- Protected Types inherited from hcaldqm::Container1D
typedef boost::unordered_map< uint32_t, MonitorElement * > MEMap
 
- Protected Member Functions inherited from hcaldqm::Container1D
virtual void customize (MonitorElement *)
 
- Protected Attributes inherited from hcaldqm::Container1D
mapper::HashMapper _hashmap
 
MEMap _mes
 
quantity::Quantity_qx
 
quantity::Quantity_qy
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _qname
 

Detailed Description

Definition at line 21 of file ContainerProf1D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerProf1D::ContainerProf1D ( )

Definition at line 10 of file ContainerProf1D.cc.

11  {
12  _qx = nullptr;
13  _qy = nullptr;
14  }
quantity::Quantity * _qx
Definition: Container1D.h:311
quantity::Quantity * _qy
Definition: Container1D.h:312
hcaldqm::ContainerProf1D::ContainerProf1D ( std::string const &  folder,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy 
)
hcaldqm::ContainerProf1D::~ContainerProf1D ( )
inlineoverride

Member Function Documentation

void hcaldqm::ContainerProf1D::book ( DQMStore::IBooker ib,
HcalElectronicsMap const *  emap,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
overridevirtual

Reimplemented from hcaldqm::Container1D.

Definition at line 46 of file ContainerProf1D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::IBooker::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), runTauDisplay::eid, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::mapper::HashMapper::getHashTypeName(), hcaldqm::mapper::HashMapper::getName(), cond::hash, hcaldqm::mapper::HashMapper::isDHash(), hcaldqm::mapper::HashMapper::isEHash(), hcaldqm::mapper::HashMapper::isTHash(), hcaldqm::quantity::Quantity::max(), hcaldqm::quantity::Quantity::min(), hcaldqm::quantity::Quantity::nbins(), and DQMStore::IBooker::setCurrentFolder().

Referenced by PedestalTask::bookHistograms(), QIE11Task::bookHistograms(), TPTask::bookHistograms(), QIE10Task::bookHistograms(), LEDTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), DigiPhase1Task::bookHistograms(), and ~ContainerProf1D().

49  {
50  // check Container1D.cc for the format
51  //
52  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
53  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
54  if (_hashmap.isDHash())
55  {
56  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
57  for (std::vector<HcalGenericDetId>::const_iterator it=
58  dids.begin(); it!=dids.end(); ++it)
59  {
60  // skip trigger towers and calibration
61  if (!it->isHcalDetId())
62  continue;
63 
64  HcalDetId did = HcalDetId(it->rawId());
65  uint32_t hash = _hashmap.getHash(did);
66  MEMap::iterator mit = _mes.find(hash);
67  if (mit!=_mes.end())
68  continue;
69 
71  _mes.insert(
72  std::make_pair(hash, ib.bookProfile(_hashmap.getName(did),
73  _hashmap.getName(did), _qx->nbins(), _qx->min(),
74  _qx->max(), _qy->min(), _qy->max())));
75  customize(_mes[hash]);
76  }
77  }
78  else if (_hashmap.isEHash())
79  {
80  std::vector<HcalElectronicsId> eids =
81  emap->allElectronicsIdPrecision();
82  for (std::vector<HcalElectronicsId>::const_iterator it=
83  eids.begin(); it!=eids.end(); ++it)
84  {
86  uint32_t hash = _hashmap.getHash(eid);
87  MEMap::iterator mit = _mes.find(hash);
88  if (mit!=_mes.end())
89  continue;
90 
92  _mes.insert(
93  std::make_pair(hash, ib.bookProfile(_hashmap.getName(eid),
94  _hashmap.getName(eid), _qx->nbins(), _qx->min(),
95  _qx->max(), _qy->min(), _qy->max())));
96  customize(_mes[hash]);
97  }
98  }
99  else if (_hashmap.isTHash())
100  {
101  std::vector<HcalTrigTowerDetId> tids =
102  emap->allTriggerId();
103  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
104  tids.begin(); it!=tids.end(); ++it)
105  {
106  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
107  uint32_t hash = _hashmap.getHash(tid);
108  MEMap::iterator mit = _mes.find(hash);
109  if (mit!=_mes.end())
110  continue;
111 
113  _mes.insert(
114  std::make_pair(hash, ib.bookProfile(_hashmap.getName(tid),
115  _hashmap.getName(tid), _qx->nbins(), _qx->min(),
116  _qx->max(), _qy->min(), _qy->max())));
117  customize(_mes[hash]);
118  }
119  }
120  }
virtual void customize(MonitorElement *)
Definition: Container1D.cc:962
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:113
virtual bool isTHash() const
Definition: HashMapper.h:63
virtual double max()
Definition: Quantity.h:76
void debug(STDTYPE const &msg) const
Definition: Logger.h:31
virtual std::string getHashTypeName() const
Definition: HashMapper.h:50
quantity::Quantity * _qx
Definition: Container1D.h:311
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
std::string _folder
Definition: Container.h:42
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:310
virtual double min()
Definition: Quantity.h:75
virtual bool isDHash() const
Definition: HashMapper.h:56
std::string _qname
Definition: Container.h:43
virtual bool isEHash() const
Definition: HashMapper.h:58
quantity::Quantity * _qy
Definition: Container1D.h:312
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void hcaldqm::ContainerProf1D::book ( DQMStore::IBooker ib,
HcalElectronicsMap const *  emap,
filter::HashFilter const &  filter,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
overridevirtual

Reimplemented from hcaldqm::Container1D.

Definition at line 122 of file ContainerProf1D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::IBooker::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), runTauDisplay::eid, hcaldqm::filter::HashFilter::filter(), hcaldqm::mapper::HashMapper::getHash(), hcaldqm::mapper::HashMapper::getHashTypeName(), hcaldqm::mapper::HashMapper::getName(), cond::hash, hcaldqm::mapper::HashMapper::isDHash(), hcaldqm::mapper::HashMapper::isEHash(), hcaldqm::mapper::HashMapper::isTHash(), hcaldqm::quantity::Quantity::max(), hcaldqm::quantity::Quantity::min(), hcaldqm::quantity::Quantity::nbins(), and DQMStore::IBooker::setCurrentFolder().

125  {
126  // check Container1D.cc for the format
127  //
128  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
129  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
130  if (_hashmap.isDHash())
131  {
132  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
133  for (std::vector<HcalGenericDetId>::const_iterator it=
134  dids.begin(); it!=dids.end(); ++it)
135  {
136  // skip trigger towers and calibration
137  if (!it->isHcalDetId())
138  continue;
139 
140  HcalDetId did = HcalDetId(it->rawId());
141  uint32_t hash = _hashmap.getHash(did);
142  MEMap::iterator mit = _mes.find(hash);
143  if (mit!=_mes.end())
144  continue;
145  if (filter.filter(did))
146  continue;
147 
149  _mes.insert(
150  std::make_pair(hash, ib.bookProfile(_hashmap.getName(did),
151  _hashmap.getName(did), _qx->nbins(), _qx->min(),
152  _qx->max(), _qy->min(), _qy->max())));
153  customize(_mes[hash]);
154  }
155  }
156  else if (_hashmap.isEHash())
157  {
158  std::vector<HcalElectronicsId> eids =
159  emap->allElectronicsIdPrecision();
160  for (std::vector<HcalElectronicsId>::const_iterator it=
161  eids.begin(); it!=eids.end(); ++it)
162  {
163  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
164  uint32_t hash = _hashmap.getHash(eid);
165  MEMap::iterator mit = _mes.find(hash);
166  if (mit!=_mes.end())
167  continue;
168  if (filter.filter(eid))
169  continue;
170 
172  _mes.insert(
173  std::make_pair(hash, ib.bookProfile(_hashmap.getName(eid),
174  _hashmap.getName(eid), _qx->nbins(), _qx->min(),
175  _qx->max(), _qy->min(), _qy->max())));
176  customize(_mes[hash]);
177  }
178  }
179  else if (_hashmap.isTHash())
180  {
181  std::vector<HcalTrigTowerDetId> tids =
182  emap->allTriggerId();
183  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
184  tids.begin(); it!=tids.end(); ++it)
185  {
186  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
187  uint32_t hash = _hashmap.getHash(tid);
188  MEMap::iterator mit = _mes.find(hash);
189  if (mit!=_mes.end())
190  continue;
191  if (filter.filter(tid))
192  continue;
193 
195  _mes.insert(
196  std::make_pair(hash, ib.bookProfile(_hashmap.getName(tid),
197  _hashmap.getName(tid), _qx->nbins(), _qx->min(),
198  _qx->max(), _qy->min(), _qy->max())));
199  customize(_mes[hash]);
200  }
201  }
202  }
virtual void customize(MonitorElement *)
Definition: Container1D.cc:962
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:113
virtual bool isTHash() const
Definition: HashMapper.h:63
virtual double max()
Definition: Quantity.h:76
void debug(STDTYPE const &msg) const
Definition: Logger.h:31
virtual std::string getHashTypeName() const
Definition: HashMapper.h:50
quantity::Quantity * _qx
Definition: Container1D.h:311
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
std::string _folder
Definition: Container.h:42
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:310
virtual double min()
Definition: Quantity.h:75
virtual bool isDHash() const
Definition: HashMapper.h:56
std::string _qname
Definition: Container.h:43
virtual bool isEHash() const
Definition: HashMapper.h:58
quantity::Quantity * _qy
Definition: Container1D.h:312
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void hcaldqm::ContainerProf1D::initialize ( std::string const &  folder,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy,
int  debug = 0 
)
overridevirtual
void hcaldqm::ContainerProf1D::initialize ( std::string const &  folder,
std::string const &  qname,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy,
int  debug = 0 
)
overridevirtual

Reimplemented from hcaldqm::Container1D.

Definition at line 35 of file ContainerProf1D.cc.

References hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::quantity::fXAxis, hcaldqm::quantity::fYAxis, hcaldqm::Container1D::initialize(), and hcaldqm::quantity::Quantity::setAxisType().

40  {
41  Container1D::initialize(folder, qname, hashtype, qx, qy, debug);
44  }
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
quantity::Quantity * _qx
Definition: Container1D.h:311
#define debug
Definition: HDRShower.cc:19
quantity::Quantity * _qy
Definition: Container1D.h:312