Skip to content

Commit 64ea9b3

Browse files
committed
m_index on right position
1 parent 859eca0 commit 64ea9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/geometry_construction/src/OMSimOpticalModule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
OMSimOpticalModule::OMSimOpticalModule(OMSimPMTConstruction *p_PMTManager) : OMSimDetectorComponent(), m_managerPMT(p_PMTManager)
66
{
7+
m_index = OMSimHitManager::getInstance().getNextDetectorIndex();
78
log_trace("Constructor of OMSimOpticalModule");
89
}
910

@@ -24,7 +25,6 @@ OMSimPMTConstruction *OMSimOpticalModule::getPMTmanager()
2425

2526
void OMSimOpticalModule::configureSensitiveVolume(OMSimDetectorConstruction *pDetConst)
2627
{
27-
m_index = OMSimHitManager::getInstance().getNextDetectorIndex();
2828
log_debug("Configuring {} as sensitive detector", getName());
2929
OMSimHitManager::getInstance().setNumberOfPMTs(getNumberOfPMTs(), m_index);
3030
m_managerPMT->configureSensitiveVolume(pDetConst, getName());

0 commit comments

Comments
 (0)