ATLAS Offline Software
Loading...
Searching...
No Matches
GeoMuonHits.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5
8#include "GaudiKernel/ServiceHandle.h"
9
10
12{
13 ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "GeoSiHit");
14 const MuonGM::MuonDetectorManager* mgr = nullptr;
15 if(detStore->retrieve(mgr,"Muon").isFailure()) {
16 std::abort();
17 }
18 return mgr;
19}
20
21
23{
24 const MuonGM::MuonDetectorManager* const mgr = init();
25 return mgr;
26}
const MuonGM::MuonDetectorManager * mgr() const
static const MuonGM::MuonDetectorManager * init()
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...