CMS 3D CMS Logo

List of all members | Public Member Functions
HcalNumberingScheme Class Reference

#include <HcalNumberingScheme.h>

Inheritance diagram for HcalNumberingScheme:
CaloNumberingScheme HcalTestNumberingScheme

Public Member Functions

virtual uint32_t getUnitID (const HcalNumberingFromDDD::HcalID &id)
 
 HcalNumberingScheme ()
 
 ~HcalNumberingScheme () override
 
- Public Member Functions inherited from CaloNumberingScheme
 CaloNumberingScheme (int iv=0)
 Constructor with optional verbosity control. More...
 
void setVerbosity (int)
 Verbosity setting. More...
 
virtual ~CaloNumberingScheme ()
 

Additional Inherited Members

- Protected Attributes inherited from CaloNumberingScheme
int verbosity
 Verbosity field: Zero = quiet, increasing integers mean more output. More...
 

Detailed Description

Definition at line 13 of file HcalNumberingScheme.h.

Constructor & Destructor Documentation

◆ HcalNumberingScheme()

HcalNumberingScheme::HcalNumberingScheme ( )

Definition at line 13 of file HcalNumberingScheme.cc.

13  : CaloNumberingScheme(0) {
14  edm::LogVerbatim("HcalSim") << "Creating HcalNumberingScheme";
15 }

◆ ~HcalNumberingScheme()

HcalNumberingScheme::~HcalNumberingScheme ( )
override

Definition at line 17 of file HcalNumberingScheme.cc.

17 { edm::LogVerbatim("HcalSim") << "Deleting HcalNumberingScheme"; }

Member Function Documentation

◆ getUnitID()

uint32_t HcalNumberingScheme::getUnitID ( const HcalNumberingFromDDD::HcalID id)
virtual

Reimplemented in HcalTestNumberingScheme.

Definition at line 19 of file HcalNumberingScheme.cc.

19  {
20  int zside = 2 * (id.zside) - 1;
21  int etaR = zside * (id.etaR);
22  HcalSubdetector subdet = (HcalSubdetector)(id.subdet);
23 
24  //pack it into an integer
25  // to be consistent with HcalDetId convention
26  HcalDetId hid(subdet, etaR, id.phis, id.depth);
27  uint32_t index = hid.rawId();
28 
29 #ifdef EDM_ML_DEBUG
30  edm::LogVerbatim("HcalSim") << "HcalNumberingScheme det = " << id.subdet << " depth/lay = " << id.depth << "/"
31  << id.lay << " zside = " << id.zside << " eta/R = " << id.etaR << " phi = " << id.phis
32  << " oldphi = " << id.phi << " packed index = 0x" << std::hex << index << std::dec << " "
33  << hid << " " << HcalDetId(index);
34 #endif
35  return index;
36 }

References TauDecayModes::dec, LEDCalibrationChannels::depth, DetId::rawId(), and ecaldqm::zside().

Referenced by HcalTestNumberingTester::analyze(), and FastHFShowerLibrary::recoHFShowerLibrary().

ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
CaloNumberingScheme::CaloNumberingScheme
CaloNumberingScheme(int iv=0)
Constructor with optional verbosity control.
Definition: CaloNumberingScheme.cc:7
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HcalDetId
Definition: HcalDetId.h:12
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142