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

- Public Types inherited from hcaldqm::Container
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- 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 20 of file ContainerProf1D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerProf1D::ContainerProf1D ( )

Definition at line 8 of file ContainerProf1D.cc.

8  {
9  _qx = nullptr;
10  _qy = nullptr;
11  }
quantity::Quantity * _qx
Definition: Container1D.h:237
quantity::Quantity * _qy
Definition: Container1D.h:238
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 40 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, dqm::dqmstoreimpl::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 dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder().

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

43  {
44  // check Container1D.cc for the format
45  //
46  ib.setCurrentFolder(subsystem + "/" + _folder + "/" + _qname + (aux.empty() ? aux : "_" + aux) + "/" +
48  if (_hashmap.isDHash()) {
49  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
50  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
51  // skip trigger towers and calibration
52  if (!it->isHcalDetId())
53  continue;
54 
55  HcalDetId did = HcalDetId(it->rawId());
56  uint32_t hash = _hashmap.getHash(did);
57  MEMap::iterator mit = _mes.find(hash);
58  if (mit != _mes.end())
59  continue;
60 
62  _mes.insert(std::make_pair(hash,
63  ib.bookProfile(_hashmap.getName(did),
64  _hashmap.getName(did),
65  _qx->nbins(),
66  _qx->min(),
67  _qx->max(),
68  _qy->min(),
69  _qy->max())));
70  customize(_mes[hash]);
71  }
72  } else if (_hashmap.isEHash()) {
73  std::vector<HcalElectronicsId> eids = emap->allElectronicsIdPrecision();
74  for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
76  uint32_t hash = _hashmap.getHash(eid);
77  MEMap::iterator mit = _mes.find(hash);
78  if (mit != _mes.end())
79  continue;
80 
82  _mes.insert(std::make_pair(hash,
83  ib.bookProfile(_hashmap.getName(eid),
84  _hashmap.getName(eid),
85  _qx->nbins(),
86  _qx->min(),
87  _qx->max(),
88  _qy->min(),
89  _qy->max())));
90  customize(_mes[hash]);
91  }
92  } else if (_hashmap.isTHash()) {
93  std::vector<HcalTrigTowerDetId> tids = emap->allTriggerId();
94  for (std::vector<HcalTrigTowerDetId>::const_iterator it = tids.begin(); it != tids.end(); ++it) {
95  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
96  uint32_t hash = _hashmap.getHash(tid);
97  MEMap::iterator mit = _mes.find(hash);
98  if (mit != _mes.end())
99  continue;
100 
102  _mes.insert(std::make_pair(hash,
103  ib.bookProfile(_hashmap.getName(tid),
104  _hashmap.getName(tid),
105  _qx->nbins(),
106  _qx->min(),
107  _qx->max(),
108  _qy->min(),
109  _qy->max())));
110  customize(_mes[hash]);
111  }
112  }
113  }
virtual void customize(MonitorElement *)
Definition: Container1D.cc:737
virtual bool isTHash() const
Definition: HashMapper.h:56
virtual double max()
Definition: Quantity.h:60
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
virtual std::string getHashTypeName() const
Definition: HashMapper.h:48
quantity::Quantity * _qx
Definition: Container1D.h:237
std::string _folder
Definition: Container.h:37
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:29
mapper::HashMapper _hashmap
Definition: Container1D.h:236
virtual double min()
Definition: Quantity.h:59
virtual bool isDHash() const
Definition: HashMapper.h:52
std::string _qname
Definition: Container.h:38
virtual bool isEHash() const
Definition: HashMapper.h:53
quantity::Quantity * _qy
Definition: Container1D.h:238
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:39
ib
Definition: cuy.py:662
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 115 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, dqm::dqmstoreimpl::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 dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder().

119  {
120  // check Container1D.cc for the format
121  //
122  ib.setCurrentFolder(subsystem + "/" + _folder + "/" + _qname + (aux.empty() ? aux : "_" + aux) + "/" +
124  if (_hashmap.isDHash()) {
125  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
126  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
127  // skip trigger towers and calibration
128  if (!it->isHcalDetId())
129  continue;
130 
131  HcalDetId did = HcalDetId(it->rawId());
132  uint32_t hash = _hashmap.getHash(did);
133  MEMap::iterator mit = _mes.find(hash);
134  if (mit != _mes.end())
135  continue;
136  if (filter.filter(did))
137  continue;
138 
140  _mes.insert(std::make_pair(hash,
141  ib.bookProfile(_hashmap.getName(did),
142  _hashmap.getName(did),
143  _qx->nbins(),
144  _qx->min(),
145  _qx->max(),
146  _qy->min(),
147  _qy->max())));
148  customize(_mes[hash]);
149  }
150  } else if (_hashmap.isEHash()) {
151  std::vector<HcalElectronicsId> eids = emap->allElectronicsIdPrecision();
152  for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
153  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
154  uint32_t hash = _hashmap.getHash(eid);
155  MEMap::iterator mit = _mes.find(hash);
156  if (mit != _mes.end())
157  continue;
158  if (filter.filter(eid))
159  continue;
160 
162  _mes.insert(std::make_pair(hash,
163  ib.bookProfile(_hashmap.getName(eid),
164  _hashmap.getName(eid),
165  _qx->nbins(),
166  _qx->min(),
167  _qx->max(),
168  _qy->min(),
169  _qy->max())));
170  customize(_mes[hash]);
171  }
172  } else if (_hashmap.isTHash()) {
173  std::vector<HcalTrigTowerDetId> tids = emap->allTriggerId();
174  for (std::vector<HcalTrigTowerDetId>::const_iterator it = tids.begin(); it != tids.end(); ++it) {
175  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
176  uint32_t hash = _hashmap.getHash(tid);
177  MEMap::iterator mit = _mes.find(hash);
178  if (mit != _mes.end())
179  continue;
180  if (filter.filter(tid))
181  continue;
182 
184  _mes.insert(std::make_pair(hash,
185  ib.bookProfile(_hashmap.getName(tid),
186  _hashmap.getName(tid),
187  _qx->nbins(),
188  _qx->min(),
189  _qx->max(),
190  _qy->min(),
191  _qy->max())));
192  customize(_mes[hash]);
193  }
194  }
195  }
virtual void customize(MonitorElement *)
Definition: Container1D.cc:737
virtual bool isTHash() const
Definition: HashMapper.h:56
virtual double max()
Definition: Quantity.h:60
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
virtual std::string getHashTypeName() const
Definition: HashMapper.h:48
quantity::Quantity * _qx
Definition: Container1D.h:237
std::string _folder
Definition: Container.h:37
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:29
mapper::HashMapper _hashmap
Definition: Container1D.h:236
virtual double min()
Definition: Quantity.h:59
virtual bool isDHash() const
Definition: HashMapper.h:52
std::string _qname
Definition: Container.h:38
virtual bool isEHash() const
Definition: HashMapper.h:53
quantity::Quantity * _qy
Definition: Container1D.h:238
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:39
ib
Definition: cuy.py:662
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 29 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().

34  {
35  Container1D::initialize(folder, qname, hashtype, qx, qy, debug);
38  }
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:33
virtual void setAxisType(AxisType at)
Definition: Quantity.h:36
quantity::Quantity * _qx
Definition: Container1D.h:237
#define debug
Definition: HDRShower.cc:19
quantity::Quantity * _qy
Definition: Container1D.h:238