CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalTestNS Class Reference

#include <HcalTestNS.h>

Public Member Functions

bool compare (HcalNumberingFromDDD::HcalID const &, uint32_t const &)
 
 HcalTestNS (const HcalDDDRecConstants *)
 
 ~HcalTestNS ()=default
 

Private Attributes

const HcalDDDRecConstantshcons_
 

Detailed Description

Definition at line 7 of file HcalTestNS.h.

Constructor & Destructor Documentation

◆ HcalTestNS()

HcalTestNS::HcalTestNS ( const HcalDDDRecConstants hcons)

Definition at line 9 of file HcalTestNS.cc.

9 : hcons_(hcons) {}
const HcalDDDRecConstants * hcons_
Definition: HcalTestNS.h:15

◆ ~HcalTestNS()

HcalTestNS::~HcalTestNS ( )
default

Member Function Documentation

◆ compare()

bool HcalTestNS::compare ( HcalNumberingFromDDD::HcalID const &  tmp,
uint32_t const &  id 
)

Definition at line 11 of file HcalTestNS.cc.

References TauDecayModes::dec, hcons_, convertSQLiteXML::ok, DetId::rawId(), HcalHitRelabeller::relabel(), generator_cfi::scheme, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

11  {
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
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

Member Data Documentation

◆ hcons_

const HcalDDDRecConstants* HcalTestNS::hcons_
private

Definition at line 15 of file HcalTestNS.h.

Referenced by compare().