test
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::ContainerProf1D Class Reference

#include <ContainerProf1D.h>

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

Public Member Functions

virtual void book (DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
 
virtual void book (DQMStore::IBooker &, HcalElectronicsMap const *, filter::HashFilter const &, std::string subsystem="Hcal", std::string aux="")
 
virtual void book (DQMStore *, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
 
virtual void book (DQMStore *, HcalElectronicsMap const *, filter::HashFilter const &, std::string subsystem="Hcal", std::string aux="")
 
 ContainerProf1D ()
 
 ContainerProf1D (std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *)
 
virtual void initialize (std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
 
virtual void initialize (std::string const &folder, std::string const &qname, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
 
virtual ~ContainerProf1D ()
 
- Public Member Functions inherited from hcaldqm::Container1D
 Container1D ()
 
 Container1D (std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new 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 *, HcalElectronicsMap const *, std::string const &subsystem="Hcal", std::string const &aux="", std::string const &prepend="", DQMStore::OpenRunDirs mode=DQMStore::StripRunDirs)
 
virtual void load (DQMStore *, HcalElectronicsMap const *, filter::HashFilter const &, std::string const &subsystem="Hcal", std::string const &aux="", std::string const &prepend="", DQMStore::OpenRunDirs mode=DQMStore::StripRunDirs)
 
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 ~Container1D ()
 
- 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_qx
 
Quantity_qy
 
- Protected Attributes inherited from hcaldqm::Container
std::string _folder
 
Logger _logger
 
std::string _qname
 

Detailed Description

Definition at line 23 of file ContainerProf1D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerProf1D::ContainerProf1D ( )

Definition at line 11 of file ContainerProf1D.cc.

References NULL.

12  {
13  _qx = NULL;
14  _qy = NULL;
15  }
#define NULL
Definition: scimark2.h:8
hcaldqm::ContainerProf1D::ContainerProf1D ( std::string const &  folder,
hashfunctions::HashType  hashtype,
Quantity qx,
Quantity qy 
)
virtual hcaldqm::ContainerProf1D::~ContainerProf1D ( )
inlinevirtual

Definition at line 30 of file ContainerProf1D.h.

30 {}

Member Function Documentation

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

Reimplemented from hcaldqm::Container1D.

Definition at line 47 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(), DQMStore::IBooker::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), 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 LaserTask::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), LEDTask::bookHistograms(), QIE11Task::bookHistograms(), QIE10Task::bookHistograms(), RawTask::bookHistograms(), RecHitTask::bookHistograms(), DigiPhase1Task::bookHistograms(), and DigiTask::bookHistograms().

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

Reimplemented from hcaldqm::Container1D.

Definition at line 123 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(), DQMStore::IBooker::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), 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().

126  {
127  // check Container1D.cc for the format
128  //
130  +(aux==""?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
131  if (_hashmap.isDHash())
132  {
133  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
134  for (std::vector<HcalGenericDetId>::const_iterator it=
135  dids.begin(); it!=dids.end(); ++it)
136  {
137  // skip trigger towers and calibration
138  if (!it->isHcalDetId())
139  continue;
140 
141  HcalDetId did = HcalDetId(it->rawId());
142  uint32_t hash = _hashmap.getHash(did);
143  MEMap::iterator mit = _mes.find(hash);
144  if (mit!=_mes.end())
145  continue;
146  if (filter.filter(did))
147  continue;
148 
150  _mes.insert(
151  std::make_pair(hash, ib.bookProfile(_hashmap.getName(did),
152  _hashmap.getName(did), _qx->nbins(), _qx->min(),
153  _qx->max(), _qy->min(), _qy->max())));
154  customize(_mes[hash]);
155  }
156  }
157  else if (_hashmap.isEHash())
158  {
159  std::vector<HcalElectronicsId> eids =
160  emap->allElectronicsIdPrecision();
161  for (std::vector<HcalElectronicsId>::const_iterator it=
162  eids.begin(); it!=eids.end(); ++it)
163  {
164  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
165  uint32_t hash = _hashmap.getHash(eid);
166  MEMap::iterator mit = _mes.find(hash);
167  if (mit!=_mes.end())
168  continue;
169  if (filter.filter(eid))
170  continue;
171 
173  _mes.insert(
174  std::make_pair(hash, ib.bookProfile(_hashmap.getName(eid),
175  _hashmap.getName(eid), _qx->nbins(), _qx->min(),
176  _qx->max(), _qy->min(), _qy->max())));
177  customize(_mes[hash]);
178  }
179  }
180  else if (_hashmap.isTHash())
181  {
182  std::vector<HcalTrigTowerDetId> tids =
183  emap->allTriggerId();
184  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
185  tids.begin(); it!=tids.end(); ++it)
186  {
187  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
188  uint32_t hash = _hashmap.getHash(tid);
189  MEMap::iterator mit = _mes.find(hash);
190  if (mit!=_mes.end())
191  continue;
192  if (filter.filter(tid))
193  continue;
194 
196  _mes.insert(
197  std::make_pair(hash, ib.bookProfile(_hashmap.getName(tid),
198  _hashmap.getName(tid), _qx->nbins(), _qx->min(),
199  _qx->max(), _qy->min(), _qy->max())));
200  customize(_mes[hash]);
201  }
202  }
203  }
virtual uint32_t getHash(HcalDetId const &did) const
Definition: HashMapper.h:33
virtual void customize(MonitorElement *)
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
virtual bool isTHash() const
Definition: HashMapper.h:62
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:49
std::string _folder
Definition: Container.h:42
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
mapper::HashMapper _hashmap
Definition: Container1D.h:330
virtual double min()
Definition: Quantity.h:75
virtual bool isDHash() const
Definition: HashMapper.h:55
std::string _qname
Definition: Container.h:43
virtual bool isEHash() const
Definition: HashMapper.h:57
virtual std::string getName(HcalDetId const &did) const
Definition: HashMapper.h:41
Readout chain identification for Hcal.
void hcaldqm::ContainerProf1D::book ( DQMStore store,
HcalElectronicsMap const *  emap,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 205 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(), DQMStore::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), 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::setCurrentFolder().

208  {
209  // check Container1D.cc for the format
210  //
212  +(aux==""?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
213  if (_hashmap.isDHash())
214  {
215  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
216  for (std::vector<HcalGenericDetId>::const_iterator it=
217  dids.begin(); it!=dids.end(); ++it)
218  {
219  // skip trigger towers and calibration
220  if (!it->isHcalDetId())
221  continue;
222 
223  HcalDetId did = HcalDetId(it->rawId());
224  uint32_t hash = _hashmap.getHash(did);
225  MEMap::iterator mit = _mes.find(hash);
226  if (mit!=_mes.end())
227  continue;
228 
230  _mes.insert(
231  std::make_pair(hash, store->bookProfile(_hashmap.getName(did),
232  _hashmap.getName(did), _qx->nbins(), _qx->min(),
233  _qx->max(), _qy->min(), _qy->max())));
234  customize(_mes[hash]);
235  }
236  }
237  else if (_hashmap.isEHash())
238  {
239  std::vector<HcalElectronicsId> eids =
240  emap->allElectronicsIdPrecision();
241  for (std::vector<HcalElectronicsId>::const_iterator it=
242  eids.begin(); it!=eids.end(); ++it)
243  {
244  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
245  uint32_t hash = _hashmap.getHash(eid);
246  MEMap::iterator mit = _mes.find(hash);
247  if (mit!=_mes.end())
248  continue;
249 
251  _mes.insert(
252  std::make_pair(hash, store->bookProfile(_hashmap.getName(eid),
253  _hashmap.getName(eid), _qx->nbins(), _qx->min(),
254  _qx->max(), _qy->min(), _qy->max())));
255  customize(_mes[hash]);
256  }
257  }
258  else if (_hashmap.isTHash())
259  {
260  std::vector<HcalTrigTowerDetId> tids =
261  emap->allTriggerId();
262  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
263  tids.begin(); it!=tids.end(); ++it)
264  {
265  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
266  uint32_t hash = _hashmap.getHash(tid);
267  MEMap::iterator mit = _mes.find(hash);
268  if (mit!=_mes.end())
269  continue;
270 
272  _mes.insert(
273  std::make_pair(hash, store->bookProfile(_hashmap.getName(tid),
274  _hashmap.getName(tid), _qx->nbins(), _qx->min(),
275  _qx->max(), _qy->min(), _qy->max())));
276  customize(_mes[hash]);
277  }
278  }
279  }
virtual uint32_t getHash(HcalDetId const &did) const
Definition: HashMapper.h:33
virtual void customize(MonitorElement *)
virtual bool isTHash() const
Definition: HashMapper.h:62
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:49
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1335
std::string _folder
Definition: Container.h:42
mapper::HashMapper _hashmap
Definition: Container1D.h:330
virtual double min()
Definition: Quantity.h:75
virtual bool isDHash() const
Definition: HashMapper.h:55
std::string _qname
Definition: Container.h:43
virtual bool isEHash() const
Definition: HashMapper.h:57
virtual std::string getName(HcalDetId const &did) const
Definition: HashMapper.h:41
Readout chain identification for Hcal.
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:727
void hcaldqm::ContainerProf1D::book ( DQMStore store,
HcalElectronicsMap const *  emap,
filter::HashFilter const &  filter,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 281 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(), DQMStore::bookProfile(), hcaldqm::Container1D::customize(), Logger::debug(), 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::setCurrentFolder().

284  {
285  // check Container1D.cc for the format
286  //
288  +(aux==""?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
289  if (_hashmap.isDHash())
290  {
291  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
292  for (std::vector<HcalGenericDetId>::const_iterator it=
293  dids.begin(); it!=dids.end(); ++it)
294  {
295  // skip trigger towers and calibration
296  if (!it->isHcalDetId())
297  continue;
298 
299  HcalDetId did = HcalDetId(it->rawId());
300  uint32_t hash = _hashmap.getHash(did);
301  MEMap::iterator mit = _mes.find(hash);
302  if (mit!=_mes.end())
303  continue;
304  if (filter.filter(did))
305  continue;
306 
308  _mes.insert(
309  std::make_pair(hash, store->bookProfile(_hashmap.getName(did),
310  _hashmap.getName(did), _qx->nbins(), _qx->min(),
311  _qx->max(), _qy->min(), _qy->max())));
312  customize(_mes[hash]);
313  }
314  }
315  else if (_hashmap.isEHash())
316  {
317  std::vector<HcalElectronicsId> eids =
318  emap->allElectronicsIdPrecision();
319  for (std::vector<HcalElectronicsId>::const_iterator it=
320  eids.begin(); it!=eids.end(); ++it)
321  {
322  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
323  uint32_t hash = _hashmap.getHash(eid);
324  MEMap::iterator mit = _mes.find(hash);
325  if (mit!=_mes.end())
326  continue;
327  if (filter.filter(eid))
328  continue;
329 
331  _mes.insert(
332  std::make_pair(hash, store->bookProfile(_hashmap.getName(eid),
333  _hashmap.getName(eid), _qx->nbins(), _qx->min(),
334  _qx->max(), _qy->min(), _qy->max())));
335  customize(_mes[hash]);
336  }
337  }
338  else if (_hashmap.isTHash())
339  {
340  std::vector<HcalTrigTowerDetId> tids =
341  emap->allTriggerId();
342  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
343  tids.begin(); it!=tids.end(); ++it)
344  {
345  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
346  uint32_t hash = _hashmap.getHash(tid);
347  MEMap::iterator mit = _mes.find(hash);
348  if (mit!=_mes.end())
349  continue;
350  if (filter.filter(tid))
351  continue;
352 
354  _mes.insert(
355  std::make_pair(hash, store->bookProfile(_hashmap.getName(tid),
356  _hashmap.getName(tid), _qx->nbins(), _qx->min(),
357  _qx->max(), _qy->min(), _qy->max())));
358  customize(_mes[hash]);
359  }
360  }
361  }
virtual uint32_t getHash(HcalDetId const &did) const
Definition: HashMapper.h:33
virtual void customize(MonitorElement *)
virtual bool isTHash() const
Definition: HashMapper.h:62
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:49
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1335
std::string _folder
Definition: Container.h:42
mapper::HashMapper _hashmap
Definition: Container1D.h:330
virtual double min()
Definition: Quantity.h:75
virtual bool isDHash() const
Definition: HashMapper.h:55
std::string _qname
Definition: Container.h:43
virtual bool isEHash() const
Definition: HashMapper.h:57
virtual std::string getName(HcalDetId const &did) const
Definition: HashMapper.h:41
Readout chain identification for Hcal.
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:727
void hcaldqm::ContainerProf1D::initialize ( std::string const &  folder,
hashfunctions::HashType  hashtype,
Quantity qx,
Quantity qy,
int  debug = 0 
)
virtual
void hcaldqm::ContainerProf1D::initialize ( std::string const &  folder,
std::string const &  qname,
hashfunctions::HashType  hashtype,
Quantity qx,
Quantity qy,
int  debug = 0 
)
virtual

Reimplemented from hcaldqm::Container1D.

Definition at line 36 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().

41  {
42  Container1D::initialize(folder, qname, hashtype, qx, qy, debug);
45  }
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
#define debug
Definition: HDRShower.cc:19
tuple folder
Histograms Source for live online DQM in P5