 |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef G4SHOWERLIBSVC_G4SHOWERLIBSVC_H
7 #define G4SHOWERLIBSVC_G4SHOWERLIBSVC_H
13 #include "G4FastTrack.hh"
15 #include "GaudiKernel/ServiceHandle.h"
23 class ShowerLibStatistics;
49 virtual bool checkLibrary(G4int particleCode,
int detectorTag)
override;
52 #ifdef DEBUG_FrozenShowers
53 virtual std::vector<EnergySpot>
getShower(
const G4FastTrack&
track,
int detectorTag);
55 virtual std::vector<EnergySpot>
getShower(
const G4FastTrack&
track,
int detectorTag)
const override;
64 typedef std::map<int, const ShowerLib::IShowerLib*>
libmap;
66 typedef std::map<const ShowerLib::IShowerLib*, ShowerLib::ShowerLibStatistics*>
statmap;
71 StringArrayProperty
m_fileNameList {
this,
"FileNameList", {},
"List of filenames for direct reading"};
74 #endif // G4SHOWERLIBSVC_G4SHOWERLIBSVC_H
virtual std::vector< EnergySpot > getShower(const G4FastTrack &track, int detectorTag) const override
return list of energy depositions for given track (interface implementation)
virtual StatusCode finalize() override
LArG4ShowerLibSvc(const std::string &name, ISvcLocator *svc)
const ShowerLib::IShowerLib * getShowerLib(G4int particleCode, int detectorTag) const
get shower library from StoreGate by track (using current volume name)
libmap m_libraryMap
mapping StoreGate key to handle in StoreGate
std::map< const ShowerLib::IShowerLib *, ShowerLib::ShowerLibStatistics * > statmap
virtual bool checkLibrary(G4int particleCode, int detectorTag) override
std::map< std::string, int > m_detmap
::StatusCode StatusCode
StatusCode definition for legacy code.
std::map< int, std::string > m_locations
Class for shower library shower lib interface.
std::map< int, const ShowerLib::IShowerLib * > libmap
AthROOTErrorHandlerSvc * svc
virtual StatusCode initialize() override
StringArrayProperty m_fileNameList
property, list of library files
virtual double getContainmentZ(const G4FastTrack &track, int detectorTag) override
Class for shower library service.
virtual double getContainmentR(const G4FastTrack &track, int detectorTag) override
Namespace for the ShowerLib related classes.
virtual ~LArG4ShowerLibSvc()=default