#include <SimG4CMS/HcalTestBeam/interface/HcalTB02XtalNumberingScheme.h>
Public Member Functions | |
virtual int | getUnitID (const G4Step *aStep) const |
HcalTB02XtalNumberingScheme () | |
virtual | ~HcalTB02XtalNumberingScheme () |
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 25 of file HcalTB02XtalNumberingScheme.h.
HcalTB02XtalNumberingScheme::HcalTB02XtalNumberingScheme | ( | ) |
Definition at line 24 of file HcalTB02XtalNumberingScheme.cc.
: HcalTB02NumberingScheme() { edm::LogInfo("HcalTBSim") << "Creating HcalTB02XtalNumberingScheme"; }
HcalTB02XtalNumberingScheme::~HcalTB02XtalNumberingScheme | ( | ) | [virtual] |
Definition at line 29 of file HcalTB02XtalNumberingScheme.cc.
{ edm::LogInfo("HcalTBSim") << "Deleting HcalTB02XtalNumberingScheme"; }
int HcalTB02XtalNumberingScheme::getUnitID | ( | const G4Step * | aStep | ) | const [virtual] |
Implements HcalTB02NumberingScheme.
Definition at line 37 of file HcalTB02XtalNumberingScheme.cc.
References UserOptions_cff::idx, and LogDebug.
{ const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable(); int idx=touch->GetReplicaNumber(0); int idl=0; if (touch->GetHistoryDepth() > 0) idl = touch->GetReplicaNumber(1); int idunit = idl*100 + idx; LogDebug("HcalTBSim") << "HcalTB02XtalNumberingScheme:: Row " << idl << " Column " << idl << " idunit = " << idunit; return idunit; }