ATLAS Offline Software
EnergyLossRecorderTool.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 TRKG4USERACTIONS_G4UA__ENERGYLOSSRECORDERTOOL_H
6 #define TRKG4USERACTIONS_G4UA__ENERGYLOSSRECORDERTOOL_H
7 
8 // Infrastructure includes
10 
11 // Local includes
13 
14 namespace Trk
15 {
16  class IPositionMomentumWriter;
17 }
18 
19 namespace G4UA
20 {
21 
28 
29  class EnergyLossRecorderTool : public UserActionToolBase<EnergyLossRecorder>
30  {
31 
32  public:
34  EnergyLossRecorderTool(const std::string& type, const std::string& name,
35  const IInterface* parent);
37  virtual StatusCode initialize() override final;
38  protected:
40  virtual std::unique_ptr<EnergyLossRecorder>
41  makeAndFillAction(G4AtlasUserActions&) override final;
42  private:
45  ToolHandle<Trk::IPositionMomentumWriter> m_pmWriter;
46  }; // class EnergyLossRecorderTool
47 
48 } // namespace G4UA
49 
50 #endif
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::EnergyLossRecorderTool::initialize
virtual StatusCode initialize() override final
Athena initialize method.
Definition: EnergyLossRecorderTool.cxx:20
G4UA::EnergyLossRecorderTool::m_config
EnergyLossRecorder::Config m_config
stores the config obtained from the python side
Definition: EnergyLossRecorderTool.h:44
UserActionToolBase.h
EnergyLossRecorder.h
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::EnergyLossRecorder::Config
Definition: EnergyLossRecorder.h:45
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
G4UA::EnergyLossRecorderTool::makeAndFillAction
virtual std::unique_ptr< EnergyLossRecorder > makeAndFillAction(G4AtlasUserActions &) override final
creates the instance for this thread
Definition: EnergyLossRecorderTool.cxx:32
G4UA::EnergyLossRecorderTool::EnergyLossRecorderTool
EnergyLossRecorderTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
Definition: EnergyLossRecorderTool.cxx:11
G4UA::EnergyLossRecorderTool::m_pmWriter
ToolHandle< Trk::IPositionMomentumWriter > m_pmWriter
Definition: EnergyLossRecorderTool.h:45
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::EnergyLossRecorderTool
A class to manage EnergyLossRecorder actions.
Definition: EnergyLossRecorderTool.h:30