ATLAS Offline Software
MCTruthSteppingActionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MCTruthBase_MCTruthSteppingActionTool_h
6 #define MCTruthBase_MCTruthSteppingActionTool_h
7 
8 // Local includes
10 
11 // Infrastructure includes
13 
14 // STL includes
15 #include <string>
16 #include <map>
17 
18 namespace G4UA
19 {
20 
26  class MCTruthSteppingActionTool : public UserActionToolBase<MCTruthSteppingAction>
27  {
28 
29  public:
30 
32  MCTruthSteppingActionTool(const std::string& type, const std::string& name,
33  const IInterface* parent);
34 
36  virtual StatusCode initialize() override final;
37 
38  protected:
39 
41  virtual std::unique_ptr<MCTruthSteppingAction>
42  makeAndFillAction(G4AtlasUserActions&) override final;
43 
44  private:
45 
47  std::map<std::string, std::string> m_volumeCollectionMap;
48 
49  }; // class MCTruthSteppingActionTool
50 
51 } // namespace G4UA
52 
53 #endif
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::MCTruthSteppingActionTool::initialize
virtual StatusCode initialize() override final
Initialize the tool.
Definition: MCTruthSteppingActionTool.cxx:26
UserActionToolBase.h
MCTruthSteppingAction.h
G4UA::MCTruthSteppingActionTool::MCTruthSteppingActionTool
MCTruthSteppingActionTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: MCTruthSteppingActionTool.cxx:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::MCTruthSteppingActionTool::m_volumeCollectionMap
std::map< std::string, std::string > m_volumeCollectionMap
Map of volume name to output collection name.
Definition: MCTruthSteppingActionTool.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::MCTruthSteppingActionTool::makeAndFillAction
virtual std::unique_ptr< MCTruthSteppingAction > makeAndFillAction(G4AtlasUserActions &) override final
Setup the user action for current thread.
Definition: MCTruthSteppingActionTool.cxx:36
G4UA::MCTruthSteppingActionTool
A tool for managing the MCTruthSteppingAction.
Definition: MCTruthSteppingActionTool.h:27
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78