4 #include "CLHEP/Units/GlobalSystemOfUnits.h" 11 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
12 return (touch) ? ((touch->GetHistoryDepth()) + 1) : 0;
18 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
22 copyno[
ii] = touch->GetReplicaNumber(
i);
28 unsigned intindex = 0;
31 LogDebug(
"BHMSim") <<
"BHMNumberingScheme number of levels= " <<
level;
33 int* copyno =
new int[
level];
38 int subdet = copyno[0];
39 int zside = copyno[3];
42 LogDebug(
"BHMSim") <<
"BHMNumberingScheme : subdet " << subdet <<
" zside " <<
zside <<
" station " <<
station;
47 LogDebug(
"BHMSim") <<
"BHMNumberingScheme : UnitID 0x" << std::hex << intindex <<
std::dec;
53 unsigned int idx = ((6 << 28) | (subdet & 0x7) << 25);
55 LogDebug(
"BHMSim") <<
"BHM packing: subdet " << subdet <<
" zside " <<
zside <<
" station " <<
station <<
"-> 0x" 61 subdet = (
idx >> 25) >> 0x7;
64 LogDebug(
"BHMSim") <<
" Bsc unpacking: 0x " << std::hex <<
idx <<
std::dec <<
" -> subdet " << subdet <<
" zside "
static void unpackIndex(const unsigned int &idx, int &subdet, int &zside, int &station)
static unsigned int packIndex(int subdet, int zside, int station)
int detectorLevel(const G4Step *) const
unsigned int getUnitID(const G4Step *aStep) const
std::string getName(const G4String &)