ATLAS Offline Software
AthenaStackingActionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASALG_ATLASSTACKINGACTIONTOOL_H
6 #define G4ATLASALG_ATLASSTACKINGACTIONTOOL_H
7 
8 // STL includes
9 #include <string>
10 
11 // G4Atlas includes
14 
15 // Local includes
16 #include "AthenaStackingAction.h"
17 
18 
19 namespace G4UA
20 {
21 
27  class AthenaStackingActionTool : public UserActionToolBase<AthenaStackingAction>
28  {
29 
30  public:
31 
33  AthenaStackingActionTool(const std::string& type, const std::string& name,
34  const IInterface* parent);
35 
37  virtual StatusCode initialize() override final;
38 
39  protected:
40 
41  // Setup the user action for current thread
42  virtual std::unique_ptr<AthenaStackingAction>
43  makeAndFillAction(G4AtlasUserActions& actionLists) override final;
44 
45  private:
46 
49 
52 
53  }; // class AthenaStackingActionTool
54 
55 } // namespace G4UA
56 
57 #endif
G4UA::AthenaStackingActionTool
Tool which manages the AthenaStackingAction.
Definition: AthenaStackingActionTool.h:28
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
UserActionToolBase.h
G4UA::AthenaStackingAction::Config
Configuration option struct for AthenaStackingAction.
Definition: AthenaStackingAction.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
G4UA::AthenaStackingActionTool::initialize
virtual StatusCode initialize() override final
Initialize the tool.
Definition: AthenaStackingActionTool.cxx:53
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
IUserActionTool.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::AthenaStackingActionTool::makeAndFillAction
virtual std::unique_ptr< AthenaStackingAction > makeAndFillAction(G4AtlasUserActions &actionLists) override final
Make the action and push onto the lists.
Definition: AthenaStackingActionTool.cxx:69
G4UA::AthenaStackingActionTool::m_config
AthenaStackingAction::Config m_config
Configuration parameters.
Definition: AthenaStackingActionTool.h:48
AthenaStackingAction.h
G4UA::AthenaStackingActionTool::AthenaStackingActionTool
AthenaStackingActionTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: AthenaStackingActionTool.cxx:15
G4UA::AthenaStackingActionTool::m_useDebugAction
bool m_useDebugAction
Use the debug version of the stacking action.
Definition: AthenaStackingActionTool.h:51