ATLAS Offline Software
GeoTRTUncompressedHit.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 InDetDD::TRT_DetectorManager* mgr = nullptr;
15  if(detStore->retrieve(mgr,"TRT").isFailure()) {
16  std::abort();
17  }
18  return mgr;
19 }
20 
21 
23 {
24  const InDetDD::TRT_DetectorManager* const mgr = init();
25  return mgr;
26 }
GeoTRTUncompressedHit.h
GeoTRTUncompressedHit::mgr
const InDetDD::TRT_DetectorManager * mgr() const
Definition: GeoTRTUncompressedHit.cxx:22
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
GeoTRTUncompressedHit::init
static const InDetDD::TRT_DetectorManager * init()
Definition: GeoTRTUncompressedHit.cxx:11
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition: TRT_DetectorManager.h:69
StoreGateSvc.h
ServiceHandle< StoreGateSvc >