#include <PPSDiamondOrganization.h>
Definition at line 11 of file PPSDiamondOrganization.h.
PPSDiamondOrganization::PPSDiamondOrganization |
( |
| ) |
|
PPSDiamondOrganization::~PPSDiamondOrganization |
( |
| ) |
|
|
overridedefault |
uint32_t PPSDiamondOrganization::unitID |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Implements PPSVDetectorOrganization.
Definition at line 20 of file PPSDiamondOrganization.cc.
References cuy::ii, LogDebug, DetId::rawId(), theArm_, theDetector_, thePlane_, theRoman_pot_, and theStation_.
21 G4VPhysicalVolume* physVol;
22 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
23 bool foundVacuum =
false;
25 for (
int ii = 0;
ii < touch->GetHistoryDepth();
ii++) {
26 physVol = touch->GetVolume(
ii);
28 if (physVol->GetName().contains(
"CTPPS_Diamond_Segment") || physVol->GetName().contains(
"CTPPS_UFSD_Segment")) {
31 LogDebug(
"PPSSimDiamond") <<
"\n---------------------CTPPS_Diamond_Segment-------------------------------------"
32 "------------------------------";
33 LogDebug(
"PPSSimDiamond") <<
"\t\t\t\t\tDetector name " << physVol->GetName()
34 <<
" copynumber= " << physVol->GetCopyNo();
38 else if (physVol->GetName().contains(
"Primary_Vacuum")) {
39 int cpy_no = physVol->GetCopyNo();
45 LogDebug(
"PPSSimDiamond") <<
"Diamond physVol =" << physVol->GetName() <<
", level=" <<
ii
46 <<
", physVol->GetCopyNo()=" << physVol->GetCopyNo() << std::endl;
48 if (foundVacuum ==
false) {
49 edm::LogError(
"PPSSimDiamond") <<
"Physical volume Primary_Vacuum not found. Cannot determine CTPPSDiamondDetId.";
constexpr uint32_t rawId() const
get the raw id
unsigned int theRoman_pot_
Log< level::Error, false > LogError
unsigned int theDetector_
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
unsigned int PPSDiamondOrganization::theArm_ |
|
private |
unsigned int PPSDiamondOrganization::theDetector_ |
|
private |
unsigned int PPSDiamondOrganization::thePlane_ |
|
private |
unsigned int PPSDiamondOrganization::theRoman_pot_ |
|
private |
unsigned int PPSDiamondOrganization::theStation_ |
|
private |