From 2ca0d00d3d169c4b2a56034fabb1b0117e47f9e5 Mon Sep 17 00:00:00 2001 From: Lorenzo Pezzotti Date: Wed, 18 Dec 2024 15:28:18 +0100 Subject: [PATCH] Fix printout of DRTubesSDAction Fix printout to check that volIDs of the DRBarrelTubes are correctly reproduced. --- plugins/DRTubesSDAction.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/DRTubesSDAction.cpp b/plugins/DRTubesSDAction.cpp index 08f0fa9c..660c4af0 100644 --- a/plugins/DRTubesSDAction.cpp +++ b/plugins/DRTubesSDAction.cpp @@ -164,7 +164,7 @@ bool Geant4SensitiveAction::process(const G4Step* aStep, // fist16 bits for the columnID and second 16 bits for the rowID auto TubeID = aStep->GetPreStepPoint()->GetTouchable()->GetCopyNumber(2); unsigned int ColumnID = TubeID >> 16; - unsigned int RawID = TubeID & 0xFFFF; + unsigned int RowID = TubeID & 0xFFFF; auto TowerID = static_cast(aStep->GetPreStepPoint()->GetTouchable()->GetCopyNumber(3)); auto StaveID = @@ -176,7 +176,7 @@ bool Geant4SensitiveAction::process(const G4Step* aStep, bc.set(VolID, "tower", TowerID); bc.set(VolID, "air", 0); bc.set(VolID, "col", ColumnID); - bc.set(VolID, "row", RawID); + bc.set(VolID, "row", RowID); bc.set(VolID, "clad", 1); bc.set(VolID, "core", CoreID); bc.set(VolID, "cherenkov", CherenkovID); @@ -195,7 +195,7 @@ bool Geant4SensitiveAction::process(const G4Step* aStep, std::cout<<"tower id, created "<::process(const G4Step* aStep, * in the steering file (instead of using RegexSD) * 3. Uncomment the code below */ // clang-format off - /*std::cout<<"Volume id, created "<