CMS 3D CMS Logo

HcalTestNS.cc
Go to the documentation of this file.
6 
7 //#define EDM_ML_DEBUG
8 
9 HcalTestNS::HcalTestNS(const HcalDDDRecConstants* hcons) : hcons_(hcons) {}
10 
11 bool HcalTestNS::compare(HcalNumberingFromDDD::HcalID const& tmp, uint32_t const& id) {
13  uint32_t id0 = scheme->getUnitID(tmp);
15  bool ok = (id == hid.rawId());
16 #ifdef EDM_ML_DEBUG
17  std::string ck = (ok ? " OK " : " **** ERROR ****");
18  edm::LogVerbatim("HcalSim") << "HcalTestNS:: Det ID from HCalSD " << HcalDetId(id) << " " << std::hex << id
19  << std::dec << " from relabller " << HcalDetId(hid) << " " << std::hex << hid.rawId()
20  << std::dec << ck;
21 #endif
22  return ok;
23 }
Log< level::Info, true > LogVerbatim
HcalTestNS(const HcalDDDRecConstants *)
Definition: HcalTestNS.cc:9
bool compare(HcalNumberingFromDDD::HcalID const &, uint32_t const &)
Definition: HcalTestNS.cc:11
const HcalDDDRecConstants * hcons_
Definition: HcalTestNS.h:15
DetId relabel(const uint32_t testId) const
Definition: DetId.h:17
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
tmp
align.sh
Definition: createJobs.py:716