CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( const HcalDDDRecConstants hcons)

Definition at line 9 of file HcalTestNS.cc.

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

Member Function Documentation

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

Definition at line 11 of file HcalTestNS.cc.

References TauDecayModes::dec, HcalNumberingScheme::getUnitID(), hcons_, convertSQLiteXML::ok, DetId::rawId(), HcalHitRelabeller::relabel(), and AlCaHLTBitMon_QueryRunRegistry::string.

11  {
12  HcalNumberingScheme* scheme = dynamic_cast<HcalNumberingScheme*>(new HcalTestNumberingScheme(false));
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
virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id)
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
const HcalDDDRecConstants * hcons_
Definition: HcalTestNS.h:15
Definition: DetId.h:17
DetId relabel(const uint32_t testId) const
tmp
align.sh
Definition: createJobs.py:716

Member Data Documentation

const HcalDDDRecConstants* HcalTestNS::hcons_
private

Definition at line 15 of file HcalTestNS.h.

Referenced by compare().