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 
12 
13 bool HcalTestNS::compare(HcalNumberingFromDDD::HcalID const& tmp, uint32_t const& id) {
14  HcalNumberingScheme* scheme = dynamic_cast<HcalNumberingScheme*>(new HcalTestNumberingScheme(false));
15  uint32_t id0 = scheme->getUnitID(tmp);
17  bool ok = (id == hid.rawId());
18 #ifdef EDM_ML_DEBUG
19  std::string ck = (ok ? " OK " : " **** ERROR ****");
20  edm::LogVerbatim("HcalSim") << "HcalTestNS:: Det ID from HCalSD " << HcalDetId(id) << " " << std::hex << id
21  << std::dec << " from relabller " << HcalDetId(hid) << " " << std::hex << hid.rawId()
22  << std::dec << ck;
23 #endif
24  return ok;
25 }
HcalNumberingFromDDD::HcalID
Definition: HcalNumberingFromDDD.h:21
HcalTestNS.h
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
convertSQLiteXML.ok
bool ok
Definition: convertSQLiteXML.py:98
DetId
Definition: DetId.h:17
HcalTestNS::~HcalTestNS
virtual ~HcalTestNS()
Definition: HcalTestNS.cc:11
HcalNumberingScheme.h
HcalTestNumberingScheme
Definition: HcalTestNumberingScheme.h:11
HcalDetId.h
HcalHitRelabeller.h
HcalDetId
Definition: HcalDetId.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalNumberingScheme
Definition: HcalNumberingScheme.h:13
generator_cfi.scheme
scheme
Definition: generator_cfi.py:22
HcalTestNS::HcalTestNS
HcalTestNS(const HcalDDDRecConstants *)
Definition: HcalTestNS.cc:9
HcalHitRelabeller::relabel
DetId relabel(const uint32_t testId) const
Definition: HcalHitRelabeller.cc:49
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
HcalTestNS::compare
bool compare(HcalNumberingFromDDD::HcalID const &, uint32_t const &)
Definition: HcalTestNS.cc:13
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
HcalTestNumberingScheme.h
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
HcalTestNS::hcons_
const HcalDDDRecConstants * hcons_
Definition: HcalTestNS.h:15