#include <PPSStripOrganization.h>
Definition at line 8 of file PPSStripOrganization.h.
PPSStripOrganization::PPSStripOrganization |
( |
| ) |
|
|
inlinedefault |
PPSStripOrganization::~PPSStripOrganization |
( |
| ) |
|
|
overridedefault |
uint32_t PPSStripOrganization::unitID |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Implements TotemRPVDetectorOrganization.
Definition at line 12 of file PPSStripOrganization.cc.
References hgcalTestNeighbor_cfi::detector, cuy::ii, DetId::rawId(), and relativeConstraints::station.
13 G4VPhysicalVolume* physVol;
16 unsigned int roman_pot = 0;
19 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
21 for (
int ii = 0;
ii < touch->GetHistoryDepth();
ii++) {
22 physVol = touch->GetVolume(
ii);
23 if (physVol->GetName() ==
"RP_Silicon_Detector") {
24 detector = physVol->GetCopyNo();
25 }
else if (physVol->GetName() ==
"RP_box_primary_vacuum") {
26 int cpy_no = physVol->GetCopyNo();
27 arm = (cpy_no / 100) % 10;
28 station = (cpy_no / 10) % 10;
29 roman_pot = cpy_no % 10;
Detector ID class for TOTEM Si strip detectors.
constexpr uint32_t rawId() const
get the raw id