ATLAS Offline Software
TFCSTruthState.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSTruthState_h
6 #define ISF_FASTCALOSIMEVENT_TFCSTruthState_h
7 
8 #include <TLorentzVector.h>
9 
11 
12 
13 class TFCSTruthState : public TLorentzVector, public ISF_FCS::MLogging {
14 public:
16  TFCSTruthState(Double_t x, Double_t y, Double_t z, Double_t t, int pdgid);
17 
18  void set_pdgid(int val) { m_pdgid = val; };
19  void set_vertex(const TLorentzVector &val) { m_vertex = val; };
20  void set_vertex(Double_t x, Double_t y, Double_t z, Double_t t = 0) {
21  m_vertex.SetXYZT(x, y, z, t);
22  };
23  void set_Ekin_off(double val) { m_ekin_off = val; };
24 
25  int pdgid() const { return m_pdgid; };
26  double Ekin() const { return E() - M() + m_ekin_off; };
27  double Ekin_off() const { return m_ekin_off; };
28  const TLorentzVector &vertex() const { return m_vertex; };
29 
30  void Print(Option_t *option = "") const;
31 
32 private:
33  int m_pdgid;
34  TLorentzVector m_vertex;
35  double m_ekin_off = 0;
36 
37  ClassDef(TFCSTruthState, 3) // TFCSTruthState
38 };
39 
40 #endif
TFCSTruthState::set_vertex
void set_vertex(Double_t x, Double_t y, Double_t z, Double_t t=0)
Definition: TFCSTruthState.h:20
ISF_FCS::MLogging
Cut down AthMessaging.
Definition: MLogging.h:176
TFCSTruthState::m_vertex
TLorentzVector m_vertex
Definition: TFCSTruthState.h:34
TFCSTruthState::set_Ekin_off
void set_Ekin_off(double val)
Definition: TFCSTruthState.h:23
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TFCSTruthState::Print
void Print(Option_t *option="") const
Definition: TFCSTruthState.cxx:21
x
#define x
TFCSTruthState::vertex
const TLorentzVector & vertex() const
Definition: TFCSTruthState.h:28
TFCSTruthState::m_ekin_off
double m_ekin_off
Definition: TFCSTruthState.h:35
z
#define z
TFCSTruthState::m_pdgid
int m_pdgid
Definition: TFCSTruthState.h:33
TFCSTruthState::Ekin
double Ekin() const
Definition: TFCSTruthState.h:26
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
TFCSTruthState::pdgid
int pdgid() const
Definition: TFCSTruthState.h:25
TFCSTruthState::Ekin_off
double Ekin_off() const
Definition: TFCSTruthState.h:27
y
#define y
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
TFCSTruthState::set_vertex
void set_vertex(const TLorentzVector &val)
Definition: TFCSTruthState.h:19
TFCSTruthState::TFCSTruthState
TFCSTruthState()
Definition: TFCSTruthState.cxx:12
TFCSTruthState
Definition: TFCSTruthState.h:13
MLogging.h
TFCSTruthState::set_pdgid
void set_pdgid(int val)
Definition: TFCSTruthState.h:18