14 #include "G4VPhysicalVolume.hh"
15 #include "G4VTouchable.hh"
21 : currentUnitID_(0), currentArm_(0), currentStation_(0), currentRP_(0), currentPlane_(0) {
22 edm::LogInfo(
"PPSSim") <<
"Creating PPSPixelOrganization";
30 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
31 G4VPhysicalVolume* physVol;
33 bool foundEnvelop =
false;
34 bool foundPhysVol =
false;
36 while (ii < touch->GetHistoryDepth() && (foundEnvelop ==
false || foundPhysVol ==
false)) {
37 physVol = touch->GetVolume(ii);
39 edm::LogInfo(
"PPSSim") <<
"physVol=" << physVol->GetName() <<
", level=" << ii
40 <<
", physVol->GetCopyNo()=" << physVol->GetCopyNo();
42 if (physVol->GetName().contains(
"Envelop")) {
45 }
else if (physVol->GetName().contains(
"RP_box_primary_vacuum")) {
46 int cpy_no = physVol->GetCopyNo();
58 edm::LogError(
"PPSSim") <<
"Physical volume RP_box_primary_vacuum not found. Cannot determine CTPPSPixelDetId.";
62 uint32_t
kk =
id.rawId();
uint32_t unitID(const G4Step *aStep) override
uint16_t *__restrict__ id
Log< level::Error, false > LogError
Log< level::Info, false > LogInfo