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 23 of file HcalTB02XtalNumberingScheme.cc.

24  edm::LogVerbatim("HcalTBSim") << "Creating HcalTB02XtalNumberingScheme";
25 }

◆ ~HcalTB02XtalNumberingScheme()

HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme ( )
override

Definition at line 27 of file HcalTB02XtalNumberingScheme.cc.

27  {
28  edm::LogVerbatim("HcalTBSim") << "Deleting HcalTB02XtalNumberingScheme";
29 }

Member Function Documentation

◆ getUnitID()

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

Implements HcalTB02NumberingScheme.

Definition at line 35 of file HcalTB02XtalNumberingScheme.cc.

35  {
36  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
37  int idx = touch->GetReplicaNumber(0);
38  int idl = 0;
39  if (touch->GetHistoryDepth() > 0)
40  idl = touch->GetReplicaNumber(1);
41  int idunit = idl * 100 + idx;
42  edm::LogVerbatim("HcalTBSim") << "HcalTB02XtalNumberingScheme:: Row " << idl << " Column " << idl
43  << " idunit = " << idunit;
44  return idunit;
45 }

References training_settings::idx.

training_settings.idx
idx
Definition: training_settings.py:16
HcalTB02NumberingScheme::HcalTB02NumberingScheme
HcalTB02NumberingScheme()
Definition: HcalTB02NumberingScheme.h:26
edm::LogVerbatim
Definition: MessageLogger.h:297