21 #include "G4VPhysicalVolume.hh"
22 #include "G4VTouchable.hh"
28 _needUpdateUnitID(
false), _needUpdateData(
false), _currentUnitID(-1),
29 _currentPlane(-1), _currentCSC(-1), _currentLayer(-1) {
31 edm::LogInfo(
"ForwardSim") <<
"Creating TotemRPOrganization";
47 G4VPhysicalVolume* physVol;
49 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
51 for( ii = 0; ii < touch->GetHistoryDepth(); ii++ ){
52 physVol = touch->GetVolume(ii);
55 LogDebug(
"ForwardSim") <<
"physVol=" << physVol->GetName() <<
", level="
56 << ii <<
", physVol->GetCopyNo()="
57 << physVol->GetCopyNo();
62 physVol= touch->GetVolume(0);
64 if(physVol->GetName() ==
"myRP") UNITA=(touch->GetVolume(5)->GetCopyNo())*1111;
67 LogDebug(
"ForwardSim") <<
"\nUNITA-RP " << UNITA <<
"\n\n";
virtual ~TotemRPOrganization()
int _currentDetectorPosition
uint32_t GetUnitID(const G4Step *aStep)