Skip to content

Commit

Permalink
[12_5_X] PPS: fixing sim unitid
Browse files Browse the repository at this point in the history
  • Loading branch information
civanch committed Oct 31, 2022
1 parent c2af242 commit f198530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimG4CMS/PPS/src/PPSPixelOrganization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PPSPixelOrganization ::PPSPixelOrganization()

uint32_t PPSPixelOrganization ::unitID(const G4Step* aStep) {
const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
G4VPhysicalVolume* physVol = touch->GetVolume(0);
G4VPhysicalVolume* physVol = touch->GetVolume(1);
int coNum = physVol->GetCopyNo();
edm::LogVerbatim("PPSPixelSim") << "PPSPixelSim: PhysVol= " << physVol->GetName() << " coNum=" << coNum;
currentPlane_ = coNum - 1;
Expand Down

0 comments on commit f198530

Please sign in to comment.