From 64ea9b3edf5130eb11c1574ad66fdb2bd93f042e Mon Sep 17 00:00:00 2001 From: martinunland Date: Thu, 5 Sep 2024 16:29:30 +0200 Subject: [PATCH] m_index on right position --- common/geometry_construction/src/OMSimOpticalModule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/geometry_construction/src/OMSimOpticalModule.cc b/common/geometry_construction/src/OMSimOpticalModule.cc index 865b28c35..cd5e29b23 100644 --- a/common/geometry_construction/src/OMSimOpticalModule.cc +++ b/common/geometry_construction/src/OMSimOpticalModule.cc @@ -4,6 +4,7 @@ OMSimOpticalModule::OMSimOpticalModule(OMSimPMTConstruction *p_PMTManager) : OMSimDetectorComponent(), m_managerPMT(p_PMTManager) { + m_index = OMSimHitManager::getInstance().getNextDetectorIndex(); log_trace("Constructor of OMSimOpticalModule"); } @@ -24,7 +25,6 @@ OMSimPMTConstruction *OMSimOpticalModule::getPMTmanager() void OMSimOpticalModule::configureSensitiveVolume(OMSimDetectorConstruction *pDetConst) { - m_index = OMSimHitManager::getInstance().getNextDetectorIndex(); log_debug("Configuring {} as sensitive detector", getName()); OMSimHitManager::getInstance().setNumberOfPMTs(getNumberOfPMTs(), m_index); m_managerPMT->configureSensitiveVolume(pDetConst, getName());