#include <PPSStripOrganization.h>
Definition at line 7 of file PPSStripOrganization.h.
◆ PPSStripOrganization()
PPSStripOrganization::PPSStripOrganization |
( |
| ) |
|
|
inline |
◆ ~PPSStripOrganization()
PPSStripOrganization::~PPSStripOrganization |
( |
| ) |
|
|
overridedefault |
◆ unitID()
uint32_t PPSStripOrganization::unitID |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Implements TotemRPVDetectorOrganization.
Definition at line 11 of file PPSStripOrganization.cc.
References protons_cff::arm, hgcalTestNeighbor_cfi::detector, DetId::rawId(), and relativeConstraints::station.
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
Log< level::Error, false > LogError
constexpr uint32_t rawId() const
get the raw id