5 #include "G4VPhysicalVolume.hh" 6 #include "G4VTouchable.hh" 14 unsigned int roman_pot = 0;
16 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
17 G4VPhysicalVolume* physVol = touch->GetVolume(0);
18 unsigned int detector = physVol->GetCopyNo();
21 G4VPhysicalVolume* physVolVac = touch->GetVolume(2);
22 if (
nullptr == physVolVac) {
23 edm::LogError(
"PPSStripSim") <<
"Physical volume RP_box_primary_vacuum not found for " << physVol->GetName()
24 <<
"; cannot determine TotemRPDetId.";
26 int cpy_no = physVolVac->GetCopyNo();
27 arm = (cpy_no / 100) % 10;
29 roman_pot = cpy_no % 10;
Detector ID class for TOTEM Si strip detectors.
Log< level::Info, true > LogVerbatim
uint32_t unitID(const G4Step *aStep) override
Log< level::Error, false > LogError
constexpr uint32_t rawId() const
get the raw id