CMS 3D CMS Logo

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

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
 
void book (DQMStore *, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
 
void book (DQMStore *, HcalElectronicsMap const *, filter::HashFilter const &, std::string subsystem="Hcal", std::string aux="") override
 
 ContainerProf2D ()
 
 ContainerProf2D (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy))
 
void fill (HcalDetId const &) override
 
void fill (HcalDetId const &, int) override
 
void fill (HcalDetId const &, double) override
 
void fill (HcalDetId const &, int, double) override
 
void fill (HcalDetId const &, int, int) override
 
void fill (HcalDetId const &, double, double) override
 
void fill (HcalElectronicsId const &) override
 
void fill (HcalElectronicsId const &, int) override
 
void fill (HcalElectronicsId const &, double) override
 
void fill (HcalElectronicsId const &, int, double) override
 
void fill (HcalElectronicsId const &, int, int) override
 
void fill (HcalElectronicsId const &, double, double) override
 
void fill (HcalTrigTowerDetId const &) override
 
void fill (HcalTrigTowerDetId const &, int) override
 
void fill (HcalTrigTowerDetId const &, double) override
 
void fill (HcalTrigTowerDetId const &, int, int) override
 
void fill (HcalTrigTowerDetId const &, int, double) override
 
void fill (HcalTrigTowerDetId const &, double, double) override
 
void fill (HcalDetId const &, double, double, double)
 
void fill (HcalElectronicsId const &, double, double, double)
 
void fill (HcalTrigTowerDetId const &, double, double, double)
 
void initialize (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
 
void initialize (std::string const &folder, std::string const &qname, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
 
 ~ContainerProf2D () override
 
- Public Member Functions inherited from hcaldqm::Container2D
 Container2D ()
 
 Container2D (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN))
 
double getBinContent (HcalDetId const &) override
 
double getBinContent (HcalDetId const &, int) override
 
double getBinContent (HcalDetId const &, double) override
 
double getBinContent (HcalDetId const &, int, int) override
 
double getBinContent (HcalDetId const &, int, double) override
 
double getBinContent (HcalDetId const &, double, double) override
 
double getBinContent (HcalElectronicsId const &) override
 
double getBinContent (HcalElectronicsId const &, int) override
 
double getBinContent (HcalElectronicsId const &, double) override
 
double getBinContent (HcalElectronicsId const &, int, int) override
 
double getBinContent (HcalElectronicsId const &, int, double) override
 
double getBinContent (HcalElectronicsId const &, double, double) override
 
double getBinContent (HcalTrigTowerDetId const &) override
 
double getBinContent (HcalTrigTowerDetId const &, int) override
 
double getBinContent (HcalTrigTowerDetId const &, double) override
 
double getBinContent (HcalTrigTowerDetId const &, int, int) override
 
double getBinContent (HcalTrigTowerDetId const &, int, double) override
 
double getBinContent (HcalTrigTowerDetId const &, double, double) override
 
double getBinEntries (HcalDetId const &) override
 
double getBinEntries (HcalDetId const &, int) override
 
double getBinEntries (HcalDetId const &, double) override
 
double getBinEntries (HcalDetId const &, int, int) override
 
double getBinEntries (HcalDetId const &, int, double) override
 
double getBinEntries (HcalDetId const &, double, double) override
 
double getBinEntries (HcalElectronicsId const &) override
 
double getBinEntries (HcalElectronicsId const &, int) override
 
double getBinEntries (HcalElectronicsId const &, double) override
 
double getBinEntries (HcalElectronicsId const &, int, int) override
 
double getBinEntries (HcalElectronicsId const &, int, double) override
 
double getBinEntries (HcalElectronicsId const &, double, double) override
 
double getBinEntries (HcalTrigTowerDetId const &) override
 
double getBinEntries (HcalTrigTowerDetId const &, int) override
 
double getBinEntries (HcalTrigTowerDetId const &, double) override
 
double getBinEntries (HcalTrigTowerDetId const &, int, int) override
 
double getBinEntries (HcalTrigTowerDetId const &, int, double) override
 
double getBinEntries (HcalTrigTowerDetId const &, double, double) override
 
void setBinContent (HcalDetId const &, int) override
 
void setBinContent (HcalDetId const &, double) override
 
void setBinContent (HcalDetId const &, int, int) override
 
void setBinContent (HcalDetId const &, int, double) override
 
void setBinContent (HcalDetId const &, double, int) override
 
void setBinContent (HcalDetId const &, double, double) override
 
void setBinContent (HcalDetId const &, int, int, int) override
 
void setBinContent (HcalDetId const &, int, double, int) override
 
void setBinContent (HcalDetId const &, double, int, int) override
 
void setBinContent (HcalDetId const &, double, double, int) override
 
void setBinContent (HcalDetId const &, int, int, double) override
 
void setBinContent (HcalDetId const &, int, double, double) override
 
void setBinContent (HcalDetId const &, double, int, double) override
 
void setBinContent (HcalDetId const &, double, double, double) override
 
void setBinContent (HcalElectronicsId const &, int) override
 
void setBinContent (HcalElectronicsId const &, double) override
 
void setBinContent (HcalElectronicsId const &, int, int) override
 
void setBinContent (HcalElectronicsId const &, int, double) override
 
void setBinContent (HcalElectronicsId const &, double, int) override
 
void setBinContent (HcalElectronicsId const &, double, double) override
 
void setBinContent (HcalElectronicsId const &, int, int, int) override
 
void setBinContent (HcalElectronicsId const &, int, double, int) override
 
void setBinContent (HcalElectronicsId const &, double, int, int) override
 
void setBinContent (HcalElectronicsId const &, double, double, int) override
 
void setBinContent (HcalElectronicsId const &, int, int, double) override
 
void setBinContent (HcalElectronicsId const &, int, double, double) override
 
void setBinContent (HcalElectronicsId const &, double, int, double) override
 
void setBinContent (HcalElectronicsId const &, double, double, double) override
 
void setBinContent (HcalTrigTowerDetId const &, int) override
 
void setBinContent (HcalTrigTowerDetId const &, double) override
 
void setBinContent (HcalTrigTowerDetId const &, int, int) override
 
void setBinContent (HcalTrigTowerDetId const &, int, double) override
 
void setBinContent (HcalTrigTowerDetId const &, double, int) override
 
void setBinContent (HcalTrigTowerDetId const &, double, double) override
 
void setBinContent (HcalTrigTowerDetId const &, int, int, int) override
 
void setBinContent (HcalTrigTowerDetId const &, int, double, int) override
 
void setBinContent (HcalTrigTowerDetId const &, double, int, int) override
 
void setBinContent (HcalTrigTowerDetId const &, double, double, int) override
 
void setBinContent (HcalTrigTowerDetId const &, int, int, double) override
 
void setBinContent (HcalTrigTowerDetId const &, int, double, double) override
 
void setBinContent (HcalTrigTowerDetId const &, double, int, double) override
 
void setBinContent (HcalTrigTowerDetId const &, double, double, double) override
 
void showOverflowZ (bool showOverflow)
 
 ~Container2D () 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 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 initialize (std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
 
virtual void initialize (std::string const &folder, std::string const &qname, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
 
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 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::Container2D
void customize (MonitorElement *) override
 
- Protected Attributes inherited from hcaldqm::Container2D
quantity::Quantity_qz
 
- 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 ContainerProf2D.h.

Constructor & Destructor Documentation

hcaldqm::ContainerProf2D::ContainerProf2D ( )

Definition at line 10 of file ContainerProf2D.cc.

11  {
12  _qx = nullptr;
13  _qy = nullptr;
14  _qz = nullptr;
15  }
quantity::Quantity * _qx
Definition: Container1D.h:332
quantity::Quantity * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
hcaldqm::ContainerProf2D::ContainerProf2D ( std::string const &  folder,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy,
quantity::Quantity qz = new quantity::ValueQuantity(quantity::fEnergy) 
)
hcaldqm::ContainerProf2D::~ContainerProf2D ( )
inlineoverride

Member Function Documentation

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

Reimplemented from hcaldqm::Container2D.

Definition at line 51 of file ContainerProf2D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::Container2D::_qz, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::IBooker::bookProfile2D(), hcaldqm::Container2D::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 NoCQTask::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), LEDTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), DigiPhase1Task::bookHistograms(), and ~ContainerProf2D().

54  {
55  // full path as in Container1D.cc
56  //
57  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
58  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
59  if (_hashmap.isDHash())
60  {
61  // for Detector Hashes
62  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
63  for (std::vector<HcalGenericDetId>::const_iterator it=
64  dids.begin(); it!=dids.end(); ++it)
65  {
66  // skip trigger towers and calibration
67  if (!it->isHcalDetId())
68  continue;
69 
70  HcalDetId did = HcalDetId(it->rawId());
71  uint32_t hash = _hashmap.getHash(did);
72  MEMap::iterator mit = _mes.find(hash);
73  if (mit!=_mes.end())
74  continue;
75 
77  _mes.insert(
78  std::make_pair(hash, ib.bookProfile2D(
79  _hashmap.getName(did), _hashmap.getName(did),
80  _qx->nbins(), _qx->min(), _qx->max(),
81  _qy->nbins(), _qy->min(), _qy->max(),
82  _qz->min(), _qz->max())));
83  customize(_mes[hash]);
84  }
85  }
86  else if (_hashmap.isEHash())
87  {
88  // for Electronics hashes
89  std::vector<HcalElectronicsId> eids =
90  emap->allElectronicsIdPrecision();
91  for (std::vector<HcalElectronicsId>::const_iterator it=
92  eids.begin(); it!=eids.end(); ++it)
93  {
95  uint32_t hash = _hashmap.getHash(eid);
96  MEMap::iterator mit = _mes.find(hash);
97  if (mit!=_mes.end())
98  continue;
99 
101  _mes.insert(
102  std::make_pair(hash, ib.bookProfile2D(
103  _hashmap.getName(eid), _hashmap.getName(eid),
104  _qx->nbins(), _qx->min(), _qx->max(),
105  _qy->nbins(), _qy->min(), _qy->max(),
106  _qz->min(), _qz->max())));
107  customize(_mes[hash]);
108  }
109  }
110  else if (_hashmap.isTHash())
111  {
112  // for TrigTower hashes
113  std::vector<HcalTrigTowerDetId> tids =
114  emap->allTriggerId();
115  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
116  tids.begin(); it!=tids.end(); ++it)
117  {
118  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
119  uint32_t hash = _hashmap.getHash(tid);
120  MEMap::iterator mit = _mes.find(hash);
121  if (mit!=_mes.end())
122  continue;
123 
125  _mes.insert(
126  std::make_pair(hash, ib.bookProfile2D(
127  _hashmap.getName(tid), _hashmap.getName(tid),
128  _qx->nbins(), _qx->min(), _qx->max(),
129  _qy->nbins(), _qy->min(), _qy->max(),
130  _qz->min(), _qz->max())));
131  customize(_mes[hash]);
132  }
133  }
134  }
void customize(MonitorElement *) override
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:332
MonitorElement * bookProfile2D(Args &&...args)
Definition: DQMStore.h:166
std::string _folder
Definition: Container.h:42
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
mapper::HashMapper _hashmap
Definition: Container1D.h:331
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 * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void hcaldqm::ContainerProf2D::book ( DQMStore::IBooker ib,
HcalElectronicsMap const *  emap,
filter::HashFilter const &  filter,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 136 of file ContainerProf2D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::Container2D::_qz, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::IBooker::bookProfile2D(), hcaldqm::Container2D::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().

139  {
140  // full path as in Container1D.cc
141  //
142  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
143  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
144  if (_hashmap.isDHash())
145  {
146  // for Detector Hashes
147  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
148  for (std::vector<HcalGenericDetId>::const_iterator it=
149  dids.begin(); it!=dids.end(); ++it)
150  {
151  // skip trigger towers and calibration
152  if (!it->isHcalDetId())
153  continue;
154 
155  HcalDetId did = HcalDetId(it->rawId());
156  uint32_t hash = _hashmap.getHash(did);
157  MEMap::iterator mit = _mes.find(hash);
158  if (mit!=_mes.end())
159  continue;
160  if (filter.filter(did))
161  continue;
162 
164  _mes.insert(
165  std::make_pair(hash, ib.bookProfile2D(
166  _hashmap.getName(did), _hashmap.getName(did),
167  _qx->nbins(), _qx->min(), _qx->max(),
168  _qy->nbins(), _qy->min(), _qy->max(),
169  _qz->min(), _qz->max())));
170  customize(_mes[hash]);
171  }
172  }
173  else if (_hashmap.isEHash())
174  {
175  // for Electronics hashes
176  std::vector<HcalElectronicsId> eids =
177  emap->allElectronicsIdPrecision();
178  for (std::vector<HcalElectronicsId>::const_iterator it=
179  eids.begin(); it!=eids.end(); ++it)
180  {
181  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
182  uint32_t hash = _hashmap.getHash(eid);
183  MEMap::iterator mit = _mes.find(hash);
184  if (mit!=_mes.end())
185  continue;
186  if (filter.filter(eid))
187  continue;
188 
190  _mes.insert(
191  std::make_pair(hash, ib.bookProfile2D(
192  _hashmap.getName(eid), _hashmap.getName(eid),
193  _qx->nbins(), _qx->min(), _qx->max(),
194  _qy->nbins(), _qy->min(), _qy->max(),
195  _qz->min(), _qz->max())));
196  customize(_mes[hash]);
197  }
198  }
199  else if (_hashmap.isTHash())
200  {
201  // for TrigTower hashes
202  std::vector<HcalTrigTowerDetId> tids =
203  emap->allTriggerId();
204  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
205  tids.begin(); it!=tids.end(); ++it)
206  {
207  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
208  uint32_t hash = _hashmap.getHash(tid);
209  MEMap::iterator mit = _mes.find(hash);
210  if (mit!=_mes.end())
211  continue;
212  if (filter.filter(tid))
213  continue;
214 
216  _mes.insert(
217  std::make_pair(hash, ib.bookProfile2D(
218  _hashmap.getName(tid), _hashmap.getName(tid),
219  _qx->nbins(), _qx->min(), _qx->max(),
220  _qy->nbins(), _qy->min(), _qy->max(),
221  _qz->min(), _qz->max())));
222  customize(_mes[hash]);
223  }
224  }
225  }
void customize(MonitorElement *) override
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:332
MonitorElement * bookProfile2D(Args &&...args)
Definition: DQMStore.h:166
std::string _folder
Definition: Container.h:42
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
mapper::HashMapper _hashmap
Definition: Container1D.h:331
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 * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void hcaldqm::ContainerProf2D::book ( DQMStore store,
HcalElectronicsMap const *  emap,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 227 of file ContainerProf2D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::Container2D::_qz, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::bookProfile2D(), hcaldqm::Container2D::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::setCurrentFolder().

230  {
231  // full path as in Container1D.cc
232  //
233  store->setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
234  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
235  if (_hashmap.isDHash())
236  {
237  // for Detector Hashes
238  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
239  for (std::vector<HcalGenericDetId>::const_iterator it=
240  dids.begin(); it!=dids.end(); ++it)
241  {
242  // skip trigger towers and calibration
243  if (!it->isHcalDetId())
244  continue;
245 
246  HcalDetId did = HcalDetId(it->rawId());
247  uint32_t hash = _hashmap.getHash(did);
248  MEMap::iterator mit = _mes.find(hash);
249  if (mit!=_mes.end())
250  continue;
251 
253  _mes.insert(
254  std::make_pair(hash, store->bookProfile2D(
255  _hashmap.getName(did), _hashmap.getName(did),
256  _qx->nbins(), _qx->min(), _qx->max(),
257  _qy->nbins(), _qy->min(), _qy->max(),
258  _qz->min(), _qz->max())));
259  customize(_mes[hash]);
260  }
261  }
262  else if (_hashmap.isEHash())
263  {
264  // for Electronics hashes
265  std::vector<HcalElectronicsId> eids =
266  emap->allElectronicsIdPrecision();
267  for (std::vector<HcalElectronicsId>::const_iterator it=
268  eids.begin(); it!=eids.end(); ++it)
269  {
270  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
271  uint32_t hash = _hashmap.getHash(eid);
272  MEMap::iterator mit = _mes.find(hash);
273  if (mit!=_mes.end())
274  continue;
275 
277  _mes.insert(
278  std::make_pair(hash, store->bookProfile2D(
279  _hashmap.getName(eid), _hashmap.getName(eid),
280  _qx->nbins(), _qx->min(), _qx->max(),
281  _qy->nbins(), _qy->min(), _qy->max(),
282  _qz->min(), _qz->max())));
283  customize(_mes[hash]);
284  }
285  }
286  else if (_hashmap.isTHash())
287  {
288  // for TrigTower hashes
289  std::vector<HcalTrigTowerDetId> tids =
290  emap->allTriggerId();
291  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
292  tids.begin(); it!=tids.end(); ++it)
293  {
294  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
295  uint32_t hash = _hashmap.getHash(tid);
296  MEMap::iterator mit = _mes.find(hash);
297  if (mit!=_mes.end())
298  continue;
299 
301  _mes.insert(
302  std::make_pair(hash, store->bookProfile2D(
303  _hashmap.getName(tid), _hashmap.getName(tid),
304  _qx->nbins(), _qx->min(), _qx->max(),
305  _qy->nbins(), _qy->min(), _qy->max(),
306  _qz->min(), _qz->max())));
307  customize(_mes[hash]);
308  }
309  }
310  }
void customize(MonitorElement *) override
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:332
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:331
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 * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:545
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:1314
void hcaldqm::ContainerProf2D::book ( DQMStore store,
HcalElectronicsMap const *  emap,
filter::HashFilter const &  filter,
std::string  subsystem = "Hcal",
std::string  aux = "" 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 312 of file ContainerProf2D.cc.

References hcaldqm::Container::_folder, hcaldqm::Container1D::_hashmap, hcaldqm::Container::_logger, hcaldqm::Container1D::_mes, hcaldqm::Container::_qname, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::Container2D::_qz, HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allPrecisionId(), HcalElectronicsMap::allTriggerId(), printConversionInfo::aux, DQMStore::bookProfile2D(), hcaldqm::Container2D::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::setCurrentFolder().

315  {
316  // full path as in Container1D.cc
317  //
318  store->setCurrentFolder(subsystem+"/"+_folder+"/"+_qname
319  +(aux.empty()?aux:"_"+aux)+"/"+_hashmap.getHashTypeName());
320  if (_hashmap.isDHash())
321  {
322  // for Detector Hashes
323  std::vector<HcalGenericDetId> dids = emap->allPrecisionId();
324  for (std::vector<HcalGenericDetId>::const_iterator it=
325  dids.begin(); it!=dids.end(); ++it)
326  {
327  // skip trigger towers and calibration
328  if (!it->isHcalDetId())
329  continue;
330 
331  HcalDetId did = HcalDetId(it->rawId());
332  uint32_t hash = _hashmap.getHash(did);
333  MEMap::iterator mit = _mes.find(hash);
334  if (mit!=_mes.end())
335  continue;
336  if (filter.filter(did))
337  continue;
338 
340  _mes.insert(
341  std::make_pair(hash, store->bookProfile2D(
342  _hashmap.getName(did), _hashmap.getName(did),
343  _qx->nbins(), _qx->min(), _qx->max(),
344  _qy->nbins(), _qy->min(), _qy->max(),
345  _qz->min(), _qz->max())));
346  customize(_mes[hash]);
347  }
348  }
349  else if (_hashmap.isEHash())
350  {
351  // for Electronics hashes
352  std::vector<HcalElectronicsId> eids =
353  emap->allElectronicsIdPrecision();
354  for (std::vector<HcalElectronicsId>::const_iterator it=
355  eids.begin(); it!=eids.end(); ++it)
356  {
357  HcalElectronicsId eid = HcalElectronicsId(it->rawId());
358  uint32_t hash = _hashmap.getHash(eid);
359  MEMap::iterator mit = _mes.find(hash);
360  if (mit!=_mes.end())
361  continue;
362  if (filter.filter(eid))
363  continue;
364 
366  _mes.insert(
367  std::make_pair(hash, store->bookProfile2D(
368  _hashmap.getName(eid), _hashmap.getName(eid),
369  _qx->nbins(), _qx->min(), _qx->max(),
370  _qy->nbins(), _qy->min(), _qy->max(),
371  _qz->min(), _qz->max())));
372  customize(_mes[hash]);
373  }
374  }
375  else if (_hashmap.isTHash())
376  {
377  // for TrigTower hashes
378  std::vector<HcalTrigTowerDetId> tids =
379  emap->allTriggerId();
380  for (std::vector<HcalTrigTowerDetId>::const_iterator it=
381  tids.begin(); it!=tids.end(); ++it)
382  {
383  HcalTrigTowerDetId tid = HcalTrigTowerDetId(it->rawId());
384  uint32_t hash = _hashmap.getHash(tid);
385  MEMap::iterator mit = _mes.find(hash);
386  if (mit!=_mes.end())
387  continue;
388  if (filter.filter(tid))
389  continue;
390 
392  _mes.insert(
393  std::make_pair(hash, store->bookProfile2D(
394  _hashmap.getName(tid), _hashmap.getName(tid),
395  _qx->nbins(), _qx->min(), _qx->max(),
396  _qy->nbins(), _qy->min(), _qy->max(),
397  _qz->min(), _qz->max())));
398  customize(_mes[hash]);
399  }
400  }
401  }
void customize(MonitorElement *) override
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:332
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:331
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 * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
Readout chain identification for Hcal.
std::string getName(HcalDetId const &did) const override
Definition: HashMapper.h:42
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:545
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:1314
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did)
overridevirtual
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
int  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 410 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

411  {
412  if (_qx->isCoordinate() && _qy->isCoordinate())
413  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
414  _qy->getValue(did), x);
415  else if (_qx->isCoordinate())
416  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
417  _qy->getValue(x));
418  else if (_qy->isCoordinate())
419  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
420  _qy->getValue(did));
421  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
double  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 423 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

424  {
425  if (_qx->isCoordinate() && _qy->isCoordinate())
426  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
427  _qy->getValue(did), x);
428  else if (_qx->isCoordinate())
429  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
430  _qy->getValue(x));
431  else if (_qy->isCoordinate())
432  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
433  _qy->getValue(did));
434  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
int  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 436 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

438  {
439  if (_qx->isCoordinate() && !_qy->isCoordinate())
440  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
441  _qy->getValue(x), y);
442  else if (!_qx->isCoordinate() && _qy->isCoordinate())
443  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
444  _qy->getValue(did), y);
445  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
446  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
447  _qy->getValue(y));
448  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
int  x,
int  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 450 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

452  {
453  if (_qx->isCoordinate() && !_qy->isCoordinate())
454  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
455  _qy->getValue(x), y);
456  else if (!_qx->isCoordinate() && _qy->isCoordinate())
457  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
458  _qy->getValue(did), y);
459  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
460  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
461  _qy->getValue(y));
462  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
double  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 464 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

466  {
467  if (_qx->isCoordinate() && !_qy->isCoordinate())
468  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
469  _qy->getValue(x), y);
470  else if (!_qx->isCoordinate() && _qy->isCoordinate())
471  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
472  _qy->getValue(did), y);
473  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
474  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
475  _qy->getValue(y));
476  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 478 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), and hcaldqm::quantity::Quantity::getValue().

479  {
480  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
481  _qy->getValue(did));
482  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did,
int  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 484 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

485  {
486  if (_qx->isCoordinate() && _qy->isCoordinate())
487  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
488  _qy->getValue(did), x);
489  else if (_qx->isCoordinate())
490  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
491  _qy->getValue(x));
492  else if (_qy->isCoordinate())
493  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
494  _qy->getValue(did));
495  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did,
double  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 497 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

498  {
499  if (_qx->isCoordinate() && _qy->isCoordinate())
500  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
501  _qy->getValue(did), x);
502  else if (_qx->isCoordinate())
503  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
504  _qy->getValue(x));
505  else if (_qy->isCoordinate())
506  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
507  _qy->getValue(did));
508  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did,
int  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 510 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

512  {
513  if (_qx->isCoordinate() && !_qy->isCoordinate())
514  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
515  _qy->getValue(x), y);
516  else if (!_qx->isCoordinate() && _qy->isCoordinate())
517  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
518  _qy->getValue(did), y);
519  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
520  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
521  _qy->getValue(y));
522  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did,
int  x,
int  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 524 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

526  {
527  if (_qx->isCoordinate() && !_qy->isCoordinate())
528  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
529  _qy->getValue(x), y);
530  else if (!_qx->isCoordinate() && _qy->isCoordinate())
531  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
532  _qy->getValue(did), y);
533  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
534  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
535  _qy->getValue(y));
536  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  did,
double  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 538 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

540  {
541  if (_qx->isCoordinate() && !_qy->isCoordinate())
542  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
543  _qy->getValue(x), y);
544  else if (!_qx->isCoordinate() && _qy->isCoordinate())
545  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
546  _qy->getValue(did), y);
547  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
548  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
549  _qy->getValue(y));
550  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 552 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), and hcaldqm::quantity::Quantity::getValue().

553  {
554  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
555  _qy->getValue(did));
556  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did,
int  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 559 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

560  {
561  if (_qx->isCoordinate() && _qy->isCoordinate())
562  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
563  _qy->getValue(did), x);
564  else if (_qx->isCoordinate())
565  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
566  _qy->getValue(x));
567  else if (_qy->isCoordinate())
568  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
569  _qy->getValue(did));
570  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did,
double  x 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 572 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

574  {
575  if (_qx->isCoordinate() && _qy->isCoordinate())
576  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
577  _qy->getValue(did), x);
578  else if (_qx->isCoordinate())
579  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
580  _qy->getValue(x));
581  else if (_qy->isCoordinate())
582  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
583  _qy->getValue(did));
584  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did,
int  x,
int  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 600 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

602  {
603  if (_qx->isCoordinate() && !_qy->isCoordinate())
604  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
605  _qy->getValue(x), y);
606  else if (!_qx->isCoordinate() && _qy->isCoordinate())
607  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
608  _qy->getValue(did), y);
609  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
610  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
611  _qy->getValue(y));
612  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did,
int  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 586 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

588  {
589  if (_qx->isCoordinate() && !_qy->isCoordinate())
590  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
591  _qy->getValue(x), y);
592  else if (!_qx->isCoordinate() && _qy->isCoordinate())
593  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
594  _qy->getValue(did), y);
595  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
596  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
597  _qy->getValue(y));
598  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  did,
double  x,
double  y 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 614 of file ContainerProf2D.cc.

References hcaldqm::Container1D::_hashmap, hcaldqm::Container1D::_mes, hcaldqm::Container1D::_qx, hcaldqm::Container1D::_qy, hcaldqm::mapper::HashMapper::getHash(), hcaldqm::quantity::Quantity::getValue(), and hcaldqm::quantity::Quantity::isCoordinate().

616  {
617  if (_qx->isCoordinate() && !_qy->isCoordinate())
618  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(did),
619  _qy->getValue(x), y);
620  else if (!_qx->isCoordinate() && _qy->isCoordinate())
621  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
622  _qy->getValue(did), y);
623  else if (!_qx->isCoordinate() && !_qy->isCoordinate())
624  _mes[_hashmap.getHash(did)]->Fill(_qx->getValue(x),
625  _qy->getValue(y));
626  }
quantity::Quantity * _qx
Definition: Container1D.h:332
virtual int getValue(HcalDetId const &)
Definition: Quantity.h:59
uint32_t getHash(HcalDetId const &did) const override
Definition: HashMapper.h:33
mapper::HashMapper _hashmap
Definition: Container1D.h:331
virtual bool isCoordinate()
Definition: Quantity.h:77
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::fill ( HcalDetId const &  did,
double  x,
double  y,
double  z 
)
void hcaldqm::ContainerProf2D::fill ( HcalElectronicsId const &  eid,
double  x,
double  y,
double  z 
)
void hcaldqm::ContainerProf2D::fill ( HcalTrigTowerDetId const &  tid,
double  x,
double  y,
double  z 
)
void hcaldqm::ContainerProf2D::initialize ( std::string const &  folder,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy,
quantity::Quantity qz = new quantity::ValueQuantity(quantity::fEnergy),
int  debug = 0 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 27 of file ContainerProf2D.cc.

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

Referenced by NoCQTask::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), LEDTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiTask::bookHistograms(), DigiPhase1Task::bookHistograms(), and ~ContainerProf2D().

31  {
32  Container2D::initialize(folder, hashtype, qx, qy, qz,debug);
36  }
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
quantity::Quantity * _qx
Definition: Container1D.h:332
#define debug
Definition: HDRShower.cc:19
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
quantity::Quantity * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333
void hcaldqm::ContainerProf2D::initialize ( std::string const &  folder,
std::string const &  qname,
hashfunctions::HashType  hashtype,
quantity::Quantity qx,
quantity::Quantity qy,
quantity::Quantity qz = new quantity::ValueQuantity(quantity::fEnergy),
int  debug = 0 
)
overridevirtual

Reimplemented from hcaldqm::Container2D.

Definition at line 38 of file ContainerProf2D.cc.

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

43  {
44  Container2D::initialize(folder, qname, hashtype, qx, qy, qz,
45  debug);
49  }
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
quantity::Quantity * _qx
Definition: Container1D.h:332
#define debug
Definition: HDRShower.cc:19
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
quantity::Quantity * _qz
Definition: Container2D.h:179
quantity::Quantity * _qy
Definition: Container1D.h:333