20 #include "G4VPhysicalVolume.hh" 21 #include "G4VTouchable.hh" 35 G4VPhysicalVolume* physVol;
37 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
39 for (
ii = 0;
ii < touch->GetHistoryDepth();
ii++) {
40 physVol = touch->GetVolume(
ii);
43 LogDebug(
"ForwardSim") <<
"physVol=" << physVol->GetName() <<
", level=" <<
ii 44 <<
", physVol->GetCopyNo()=" << physVol->GetCopyNo();
47 physVol = touch->GetVolume(0);
49 if (physVol->GetName() ==
"myRP")
50 UNITA = (touch->GetVolume(5)->GetCopyNo()) * 1111;
53 LogDebug(
"ForwardSim") <<
"\nUNITA-RP " << UNITA <<
"\n\n";
Log< level::Info, true > LogVerbatim
uint32_t getUnitID(const G4Step *aStep) const override
~TotemRPOrganization() override