9 #include "G4VPhysicalVolume.hh" 10 #include "G4VTouchable.hh" 18 : theArm_(0), theStation_(0), theRoman_pot_(0), thePlane_(0), theDetector_(0) {}
21 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
22 G4VPhysicalVolume* physVol = touch->GetVolume(0);
23 int coNum = physVol->GetCopyNo();
24 edm::LogVerbatim(
"PPSSimDiamond") <<
" %%%% PhysVol: " << physVol->GetName() <<
" coNum=" << coNum;
28 G4VPhysicalVolume* physVolVac = touch->GetVolume(3);
29 if (
nullptr == physVolVac) {
30 edm::LogError(
"PPSSimDiamond") <<
"Physical volume Primary_Vacuum not found for " << physVol->GetName()
31 <<
"; cannot determine CTPPSDiamondDetId.";
33 int cpy_no = physVolVac->GetCopyNo();
Log< level::Info, true > LogVerbatim
uint32_t unitID(const G4Step *aStep) override
unsigned int theRoman_pot_
Log< level::Error, false > LogError
unsigned int theDetector_
constexpr uint32_t rawId() const
get the raw id
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...