Skip to content
Snippets Groups Projects
Commit 9f0ada8c authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'fixMTSmartlessness' into 'master'

G4AtlasMTRunManager: initialize geometry before setting smartlessness.

See merge request atlas/athena!14941
parents d248e3d4 2b88c3f3
No related branches found
No related tags found
1 merge request!20779WIP: Migrate DataQualityTools to ToolHandles
......@@ -62,6 +62,16 @@ void G4AtlasMTRunManager::InitializeGeometry()
{
ATH_MSG_INFO("InitializeGeometry");
// Retrieve detector geo service
if (m_detGeoSvc.retrieve().isFailure()) {
ATH_MSG_ERROR("Could not retrieve the DetectorGeometrySvc");
G4ExceptionDescription description;
description << "InitializeGeometry: Failed to retrieve IDetectorGeometrySvc.";
G4Exception("G4AtlasMTRunManager", "CouldNotRetrieveDetGeoSvc",
FatalException, description);
abort(); // to keep Coverity happy
}
// Set smartlessness
G4LogicalVolumeStore *logicalVolumeStore = G4LogicalVolumeStore::GetInstance();
const G4String muonSys("Muon::MuonSys");
......@@ -77,16 +87,6 @@ void G4AtlasMTRunManager::InitializeGeometry()
}
}
// Retrieve detector geo service
if (m_detGeoSvc.retrieve().isFailure()) {
ATH_MSG_ERROR("Could not retrieve the DetectorGeometrySvc");
G4ExceptionDescription description;
description << "InitializeGeometry: Failed to retrieve IDetectorGeometrySvc.";
G4Exception("G4AtlasMTRunManager", "CouldNotRetrieveDetGeoSvc",
FatalException, description);
abort(); // to keep Coverity happy
}
// Create/assign detector construction
SetUserInitialization( m_detGeoSvc->GetDetectorConstruction() );
if (userDetector) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment