ATLAS Offline Software
Tracking
TrkG4Components
TrkG4UserActions
TrkG4UserActions
EnergyLossRecorder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// EnergyLossRecorder.h, (c) ATLAS Detector software
8
9
#ifndef EnergyLossRecorder_H
10
#define EnergyLossRecorder_H
11
12
#include <string>
13
#include <vector>
14
15
#include "G4UserRunAction.hh"
16
#include "G4UserEventAction.hh"
17
#include "G4UserSteppingAction.hh"
18
31
namespace
Trk
32
{
33
class
IPositionMomentumWriter;
34
}
35
36
namespace
G4UA
37
{
38
39
class
EnergyLossRecorder
:
public
G4UserRunAction,
public
G4UserEventAction,
public
G4UserSteppingAction
40
{
41
42
public
:
43
44
struct
Config
45
{
46
Trk::IPositionMomentumWriter
*
pmWriter
=
nullptr
;
47
};
48
49
EnergyLossRecorder
(
const
Config
&
config
);
50
virtual
void
BeginOfRunAction
(
const
G4Run*)
override
;
51
virtual
void
EndOfRunAction
(
const
G4Run*)
override
;
52
virtual
void
BeginOfEventAction
(
const
G4Event*)
override
;
53
virtual
void
EndOfEventAction
(
const
G4Event*)
override
;
54
virtual
void
UserSteppingAction
(
const
G4Step*)
override
;
55
private
:
56
Config
m_config
;
57
unsigned
int
m_entries
;
58
};
// class EnergyLossRecorder
59
60
}
// namespace G4UA
61
62
#endif
G4UA::EnergyLossRecorder::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition:
EnergyLossRecorder.cxx:40
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
config
Definition:
PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
G4UA::EnergyLossRecorder::m_entries
unsigned int m_entries
Definition:
EnergyLossRecorder.h:57
G4UA::EnergyLossRecorder::m_config
Config m_config
Definition:
EnergyLossRecorder.h:56
G4UA::EnergyLossRecorder
Definition:
EnergyLossRecorder.h:40
G4UA::EnergyLossRecorder::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition:
EnergyLossRecorder.cxx:44
G4UA::EnergyLossRecorder::Config
Definition:
EnergyLossRecorder.h:45
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
G4UA::EnergyLossRecorder::EndOfRunAction
virtual void EndOfRunAction(const G4Run *) override
Definition:
EnergyLossRecorder.cxx:36
G4UA::EnergyLossRecorder::EnergyLossRecorder
EnergyLossRecorder(const Config &config)
Definition:
EnergyLossRecorder.cxx:24
G4UA::EnergyLossRecorder::Config::pmWriter
Trk::IPositionMomentumWriter * pmWriter
Definition:
EnergyLossRecorder.h:46
G4UA::EnergyLossRecorder::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition:
EnergyLossRecorder.cxx:54
Trk::IPositionMomentumWriter
Definition:
IPositionMomentumWriter.h:27
G4UA::EnergyLossRecorder::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition:
EnergyLossRecorder.cxx:32
Generated on Sun Dec 22 2024 21:10:10 for ATLAS Offline Software by
1.8.18