ATLAS Offline Software
EnergyLossMonitor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EnergyLossMonitor.h
8 
9 #ifndef TRK_ENERGYLOSSMONITOR_H
10 #define TRK_ENERGYLOSSMONITOR_H
11 
13 #include "GaudiKernel/INTupleSvc.h"
14 #include "GaudiKernel/NTuple.h"
15 
17 
18 namespace Trk {
19 
27  class EnergyLossMonitor : virtual public Trk::IEnergyLossMonitor, public AthAlgTool {
28  public:
29 
31  EnergyLossMonitor(const std::string&,const std::string&,const IInterface*);
33 
37 
39  virtual void initializeTrack(double p,
40  double E,
41  double eta,
42  double phi);
43 
45  virtual void recordTrackState(const Amg::Vector3D& pos,
46  const Amg::Vector3D& mom,
47  double mass);
48 
50  virtual void finalizeTrack();
51 
52 private:
55  std::string m_outputNtuplePath;
57 
60 
62  NTuple::Item<long> m_steps;
64  NTuple::Item<float> m_initialP;
65  NTuple::Item<float> m_initialE;
66  NTuple::Item<float> m_initialEta;
67  NTuple::Item<float> m_initialPhi;
68 
69  NTuple::Array<float> m_p;
70  NTuple::Array<float> m_E;
71  NTuple::Array<float> m_eta;
72  NTuple::Array<float> m_phi;
73  NTuple::Array<float> m_hitX;
74  NTuple::Array<float> m_hitY;
75  NTuple::Array<float> m_hitR;
76  NTuple::Array<float> m_hitZ;
77 
78 };
79 
80 
81 } // end of namespace
82 
83 #endif // TRK_TRACKPOSITIONNTUPLEHELPER_H
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Trk::EnergyLossMonitor::m_initialE
NTuple::Item< float > m_initialE
Definition: EnergyLossMonitor.h:65
Trk::EnergyLossMonitor::initializeTrack
virtual void initializeTrack(double p, double E, double eta, double phi)
Initialize State.
Definition: EnergyLossMonitor.cxx:76
Trk::EnergyLossMonitor::m_initialPhi
NTuple::Item< float > m_initialPhi
Definition: EnergyLossMonitor.h:67
Trk::EnergyLossMonitor::recordTrackState
virtual void recordTrackState(const Amg::Vector3D &pos, const Amg::Vector3D &mom, double mass)
Record a single TrackState.
Definition: EnergyLossMonitor.cxx:88
Trk::EnergyLossMonitor::finalizeTrack
virtual void finalizeTrack()
Finalization State.
Definition: EnergyLossMonitor.cxx:108
Trk::EnergyLossMonitor::finalize
StatusCode finalize()
Definition: EnergyLossMonitor.cxx:69
Trk::EnergyLossMonitor::EnergyLossMonitor
EnergyLossMonitor(const std::string &, const std::string &, const IInterface *)
standard AlgTool constructor / destructor
Definition: EnergyLossMonitor.cxx:17
Trk::EnergyLossMonitor::m_ntupleSvc
ServiceHandle< INTupleSvc > m_ntupleSvc
Ntuple Business.
Definition: EnergyLossMonitor.h:54
Trk::EnergyLossMonitor::initialize
StatusCode initialize()
standard Athena methods
Definition: EnergyLossMonitor.cxx:31
Trk::EnergyLossMonitor::~EnergyLossMonitor
~EnergyLossMonitor()
Definition: EnergyLossMonitor.h:32
Trk::EnergyLossMonitor::m_initialP
NTuple::Item< float > m_initialP
Initial variables.
Definition: EnergyLossMonitor.h:64
Trk::EnergyLossMonitor::m_p
NTuple::Array< float > m_p
Definition: EnergyLossMonitor.h:69
Trk::EnergyLossMonitor::m_phi
NTuple::Array< float > m_phi
Definition: EnergyLossMonitor.h:72
Trk::EnergyLossMonitor
Definition: EnergyLossMonitor.h:27
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
IEnergyLossMonitor.h
Trk::EnergyLossMonitor::m_E
NTuple::Array< float > m_E
Definition: EnergyLossMonitor.h:70
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::EnergyLossMonitor::m_currentStep
int m_currentStep
Ntuple helper.
Definition: EnergyLossMonitor.h:59
Trk::EnergyLossMonitor::m_eta
NTuple::Array< float > m_eta
Definition: EnergyLossMonitor.h:71
AthAlgTool.h
Trk::EnergyLossMonitor::m_hitR
NTuple::Array< float > m_hitR
Definition: EnergyLossMonitor.h:75
Trk::EnergyLossMonitor::m_outputNtupleDescription
std::string m_outputNtupleDescription
Definition: EnergyLossMonitor.h:56
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::EnergyLossMonitor::m_hitZ
NTuple::Array< float > m_hitZ
Definition: EnergyLossMonitor.h:76
Trk::EnergyLossMonitor::m_hitY
NTuple::Array< float > m_hitY
Definition: EnergyLossMonitor.h:74
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Trk::EnergyLossMonitor::m_initialEta
NTuple::Item< float > m_initialEta
Definition: EnergyLossMonitor.h:66
Trk::EnergyLossMonitor::m_hitX
NTuple::Array< float > m_hitX
Definition: EnergyLossMonitor.h:73
Trk::EnergyLossMonitor::m_steps
NTuple::Item< long > m_steps
Step variables.
Definition: EnergyLossMonitor.h:62
Trk::IEnergyLossMonitor
Definition: IEnergyLossMonitor.h:27
Trk::phi
@ phi
Definition: ParamDefs.h:75
AthAlgTool
Definition: AthAlgTool.h:26
Trk::EnergyLossMonitor::m_outputNtuplePath
std::string m_outputNtuplePath
Definition: EnergyLossMonitor.h:55
ServiceHandle< INTupleSvc >