ATLAS Offline Software
TruthStrategyManager.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MCTruthBase_TruthStrategyManager_H
6 #define MCTruthBase_TruthStrategyManager_H
7 
8 // Framework include
10 
11 // ISF include
14 
16 class G4Step;
17 
18 
21 
23 {
24 
25 public:
26 
29 
31  static TruthStrategyManager& GetStrategyManager_nc ATLAS_NOT_THREAD_SAFE ();
32 
34  bool CreateTruthIncident(const G4Step*, int subDetVolLevel) const;
35 
37  void SetISFTruthSvc(ISF::ITruthSvc *truthSvc);
38 
40  void SetISFGeoIDSvc(ISF::IGeoIDSvc *geoIDSvc);
41 
42 private:
46 
50 };
51 
52 #endif
TruthStrategyManager::TruthStrategyManager
TruthStrategyManager(const TruthStrategyManager &)=delete
TruthStrategyManager::TruthStrategyManager
TruthStrategyManager()
Definition: TruthStrategyManager.cxx:36
TruthStrategyManager::SetISFTruthSvc
void SetISFTruthSvc(ISF::ITruthSvc *truthSvc)
Define which ISF TruthService to use.
Definition: TruthStrategyManager.cxx:53
TruthStrategyManager::CreateTruthIncident
bool CreateTruthIncident(const G4Step *, int subDetVolLevel) const
Returns true if any of the truth strategies return true.
Definition: TruthStrategyManager.cxx:64
TruthStrategyManager::m_geoIDSvc
ISF::IGeoIDSvc * m_geoIDSvc
Definition: TruthStrategyManager.h:49
TruthStrategyManager::GetStrategyManager
static const TruthStrategyManager & GetStrategyManager()
Retrieve the (const) singleton instance.
Definition: TruthStrategyManager.cxx:42
TruthStrategyManager::SetISFGeoIDSvc
void SetISFGeoIDSvc(ISF::IGeoIDSvc *geoIDSvc)
Define which ISF GeoIDSvc to use.
Definition: TruthStrategyManager.cxx:59
ISF::ITruthSvc
@ class ITruthSvc
Definition: ITruthSvc.h:29
TruthStrategyManager
Singleton class for creating truth incidents.
Definition: TruthStrategyManager.h:23
ISF::IGeoIDSvc
Definition: IGeoIDSvc.h:41
IGeoIDSvc.h
TruthStrategyManager::ATLAS_NOT_THREAD_SAFE
static TruthStrategyManager &GetStrategyManager_nc ATLAS_NOT_THREAD_SAFE()
Retrieve the (non-const) singleton instance.
ITruthSvc.h
checker_macros.h
Define macros for attributes used to control the static checker.
TruthStrategyManager::m_truthSvc
ISF::ITruthSvc * m_truthSvc
ISF Services the TruthStrategyManager talks to.
Definition: TruthStrategyManager.h:48
TruthStrategyManager::operator=
TruthStrategyManager & operator=(const TruthStrategyManager &)=delete