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 *)
 
virtual ~HcalTestNS ()
 

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) {}

◆ ~HcalTestNS()

HcalTestNS::~HcalTestNS ( )
virtual

Definition at line 11 of file HcalTestNS.cc.

11 {}

Member Function Documentation

◆ compare()

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

Definition at line 13 of file HcalTestNS.cc.

13  {
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 }

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

Member Data Documentation

◆ hcons_

const HcalDDDRecConstants* HcalTestNS::hcons_
private

Definition at line 15 of file HcalTestNS.h.

Referenced by compare().

createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
convertSQLiteXML.ok
bool ok
Definition: convertSQLiteXML.py:98
DetId
Definition: DetId.h:17
HcalTestNumberingScheme
Definition: HcalTestNumberingScheme.h:11
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
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
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
HcalTestNS::hcons_
const HcalDDDRecConstants * hcons_
Definition: HcalTestNS.h:15