CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HcalTB04XtalNumberingScheme Class Reference

#include <SimG4CMS/HcalTestBeam/interface/HcalTB04XtalNumberingScheme.h>

Inheritance diagram for HcalTB04XtalNumberingScheme:
EcalNumberingScheme CaloNumberingScheme

Public Member Functions

virtual uint32_t getUnitID (const EcalBaseNumber &baseNumber) const
 
 HcalTB04XtalNumberingScheme ()
 
 ~HcalTB04XtalNumberingScheme ()
 
- Public Member Functions inherited from EcalNumberingScheme
 EcalNumberingScheme ()
 
virtual ~EcalNumberingScheme ()
 
- Public Member Functions inherited from CaloNumberingScheme
 CaloNumberingScheme (int iv=0)
 Constructor with optional verbosity control. More...
 
void setVerbosity (const 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

Description: Numbering scheme for crystal calorimeter in 2004 test beam

Usage: Sets up unique identifier for crystals in 2004 test beam

Definition at line 24 of file HcalTB04XtalNumberingScheme.h.

Constructor & Destructor Documentation

HcalTB04XtalNumberingScheme::HcalTB04XtalNumberingScheme ( )

Definition at line 26 of file HcalTB04XtalNumberingScheme.cc.

26  :
28  edm::LogInfo("HcalTBSim") << "Creating HcalTB04XtalNumberingScheme";
29 }
HcalTB04XtalNumberingScheme::~HcalTB04XtalNumberingScheme ( )

Definition at line 31 of file HcalTB04XtalNumberingScheme.cc.

31  {
32  edm::LogInfo("HcalTBSim") << "Deleting HcalTB04XtalNumberingScheme";
33 }

Member Function Documentation

uint32_t HcalTB04XtalNumberingScheme::getUnitID ( const EcalBaseNumber baseNumber) const
virtual

Implements EcalNumberingScheme.

Definition at line 39 of file HcalTB04XtalNumberingScheme.cc.

References TauDecayModes::dec, EcalBaseNumber::getCopyNumber(), EcalBaseNumber::getLevels(), customizeTrackingMonitorSeedNumber::idx, LogDebug, and HcalTestNumbering::packHcalIndex().

39  {
40 
41  int idx=0, idl=0;
42  if (baseNumber.getLevels()<1) {
43  edm::LogWarning("HcalTBSim") << "HcalTB04XtalNumberingScheme::getUnitID: "
44  << "No level found in EcalBaseNumber "
45  << "Returning 0";
46  } else {
47  idx = baseNumber.getCopyNumber(0);
48  if (baseNumber.getLevels() > 1) idl = baseNumber.getCopyNumber(1);
49  }
50  int det = 10;
51  uint32_t idunit = HcalTestNumbering::packHcalIndex(det,0,1,idl,idx,1);
52 
53  LogDebug("HcalTBSim") << "HcalTB04XtalNumberingScheme : Crystal " << idx
54  << " Layer " << idl << " UnitID = 0x" << std::hex
55  << idunit << std::dec;
56 
57  return idunit;
58 
59 }
#define LogDebug(id)
int getCopyNumber(int level) const
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
int getLevels() const