ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkG4Components
TrkG4UserActions
TrkG4UserActions
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
9
#include "
G4AtlasTools/UserActionToolBase.h
"
10
11
// Local includes
12
#include "
TrkG4UserActions/EnergyLossRecorder.h
"
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
:
44
EnergyLossRecorder::Config
m_config
;
45
ToolHandle<Trk::IPositionMomentumWriter>
m_pmWriter
;
46
};
// class EnergyLossRecorderTool
47
48
}
// namespace G4UA
49
50
#endif
EnergyLossRecorder.h
UserActionToolBase.h
G4UA::EnergyLossRecorderTool::m_config
EnergyLossRecorder::Config m_config
stores the config obtained from the python side
Definition
EnergyLossRecorderTool.h:44
G4UA::EnergyLossRecorderTool::initialize
virtual StatusCode initialize() override final
Athena initialize method.
Definition
EnergyLossRecorderTool.cxx:20
G4UA::EnergyLossRecorderTool::makeAndFillAction
virtual std::unique_ptr< EnergyLossRecorder > makeAndFillAction(G4AtlasUserActions &) override final
creates the instance for this thread
Definition
EnergyLossRecorderTool.cxx:32
G4UA::EnergyLossRecorderTool::m_pmWriter
ToolHandle< Trk::IPositionMomentumWriter > m_pmWriter
Definition
EnergyLossRecorderTool.h:45
G4UA::EnergyLossRecorderTool::EnergyLossRecorderTool
EnergyLossRecorderTool(const std::string &type, const std::string &name, const IInterface *parent)
standard tool ctor
Definition
EnergyLossRecorderTool.cxx:11
G4UA::UserActionToolBase< EnergyLossRecorder >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
Trk::IPositionMomentumWriter
Very simple helper Tool to record track states at certain positions this works only for single track ...
Definition
IPositionMomentumWriter.h:27
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
G4UA::EnergyLossRecorder::Config
Definition
EnergyLossRecorder.h:45
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
type
Generated on
for ATLAS Offline Software by
1.17.0