CMS 3D CMS Logo

List of all members | Public Member Functions
HcalTB02XtalNumberingScheme Class Reference

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

Inheritance diagram for HcalTB02XtalNumberingScheme:
HcalTB02NumberingScheme

Public Member Functions

int getUnitID (const G4Step *aStep) const override
 
 HcalTB02XtalNumberingScheme ()
 
 ~HcalTB02XtalNumberingScheme () override
 
- Public Member Functions inherited from HcalTB02NumberingScheme
 HcalTB02NumberingScheme ()
 
virtual ~HcalTB02NumberingScheme ()
 

Detailed Description

Description: Numbering scheme for the crystal calorimeter in 2002 test beam

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

Definition at line 24 of file HcalTB02XtalNumberingScheme.h.

Constructor & Destructor Documentation

◆ HcalTB02XtalNumberingScheme()

HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme ( )

Definition at line 24 of file HcalTB02XtalNumberingScheme.cc.

25  edm::LogVerbatim("HcalTBSim") << "Creating HcalTB02XtalNumberingScheme";
26 }
Log< level::Info, true > LogVerbatim

◆ ~HcalTB02XtalNumberingScheme()

HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme ( )
override

Definition at line 28 of file HcalTB02XtalNumberingScheme.cc.

28  {
29 #ifdef EDM_ML_DEBUG
30  edm::LogVerbatim("HcalTBSim") << "Deleting HcalTB02XtalNumberingScheme";
31 #endif
32 }
Log< level::Info, true > LogVerbatim

Member Function Documentation

◆ getUnitID()

int HcalTB02XtalNumberingScheme::getUnitID ( const G4Step *  aStep) const
overridevirtual

Implements HcalTB02NumberingScheme.

Definition at line 38 of file HcalTB02XtalNumberingScheme.cc.

References heavyIonCSV_trainingSettings::idx.

38  {
39  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
40  int idx = touch->GetReplicaNumber(0);
41  int idl = 0;
42  if (touch->GetHistoryDepth() > 0)
43  idl = touch->GetReplicaNumber(1);
44  int idunit = idl * 100 + idx;
45 #ifdef EDM_ML_DEBUG
46  edm::LogVerbatim("HcalTBSim") << "HcalTB02XtalNumberingScheme:: Row " << idl << " Column " << idl
47  << " idunit = " << idunit;
48 #endif
49  return idunit;
50 }
Log< level::Info, true > LogVerbatim