20 #include "G4VPhysicalVolume.hh" 21 #include "G4VTouchable.hh" 27 _needUpdateUnitID(
false), _needUpdateData(
false), _currentUnitID(-1),
28 _currentPlane(-1), _currentCSC(-1), _currentLayer(-1) {
30 edm::LogInfo(
"ForwardSim") <<
"Creating TotemRPOrganization";
46 G4VPhysicalVolume* physVol;
48 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
50 for( ii = 0; ii < touch->GetHistoryDepth(); ii++ ){
51 physVol = touch->GetVolume(ii);
54 LogDebug(
"ForwardSim") <<
"physVol=" << physVol->GetName() <<
", level=" 55 << ii <<
", physVol->GetCopyNo()=" 56 << physVol->GetCopyNo();
61 physVol= touch->GetVolume(0);
63 if(physVol->GetName() ==
"myRP") UNITA=(touch->GetVolume(5)->GetCopyNo())*1111;
66 LogDebug(
"ForwardSim") <<
"\nUNITA-RP " << UNITA <<
"\n\n";
virtual ~TotemRPOrganization()
int _currentDetectorPosition
uint32_t GetUnitID(const G4Step *aStep)