Skip to content

Commit

Permalink
m_index on right position
Browse files Browse the repository at this point in the history
  • Loading branch information
martinunland committed Sep 5, 2024
1 parent 859eca0 commit 64ea9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/geometry_construction/src/OMSimOpticalModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

OMSimOpticalModule::OMSimOpticalModule(OMSimPMTConstruction *p_PMTManager) : OMSimDetectorComponent(), m_managerPMT(p_PMTManager)
{
m_index = OMSimHitManager::getInstance().getNextDetectorIndex();
log_trace("Constructor of OMSimOpticalModule");
}

Expand All @@ -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());
Expand Down

0 comments on commit 64ea9b3

Please sign in to comment.