ATLAS Offline Software
Loading...
Searching...
No Matches
LorentzHelper.cxx File Reference
Include dependency graph for LorentzHelper.cxx:

Go to the source code of this file.

Functions

ROOT::Math::PxPyPzMVector GetPxPyPzMfromTruth (const xAOD::TruthParticle *TruthParticle)
ROOT::Math::PtEtaPhiMVector GetPtEtaPhiMfromTruth (const xAOD::TruthParticle *TruthParticle)
ROOT::Math::PtEtaPhiEVector GetPtEtaPhiEfromTruth (const xAOD::TruthParticle *TruthParticle)
ROOT::Math::PxPyPzEVector GetPxPyPzEfromTruth (const xAOD::TruthParticle *TruthParticle)

Function Documentation

◆ GetPtEtaPhiEfromTruth()

ROOT::Math::PtEtaPhiEVector GetPtEtaPhiEfromTruth ( const xAOD::TruthParticle * TruthParticle)

Definition at line 39 of file LorentzHelper.cxx.

40 {
41 asg::msgUserCode::ANA_MSG_WARNING(
42 "LorentzHelper WARNING: We can't guarantee the mass from this 4-vector "
43 "is correct, consider using GetPtEtaPhiMfromTruth");
44 ROOT::Math::PtEtaPhiEVector EnergySafeVector(
48 TruthParticle->e());
49 return EnergySafeVector;
50}
virtual double e() const
energy
virtual double pt() const
transverse momentum
virtual double phi() const
phi in [-pi,pi[
virtual double eta() const
pseudo rapidity

◆ GetPtEtaPhiMfromTruth()

ROOT::Math::PtEtaPhiMVector GetPtEtaPhiMfromTruth ( const xAOD::TruthParticle * TruthParticle)

Definition at line 29 of file LorentzHelper.cxx.

30 {
31 ROOT::Math::PtEtaPhiMVector MassSafeVector(
35 TruthParticle->m());
36 return MassSafeVector;
37}
virtual double m() const
mass

◆ GetPxPyPzEfromTruth()

ROOT::Math::PxPyPzEVector GetPxPyPzEfromTruth ( const xAOD::TruthParticle * TruthParticle)

Definition at line 52 of file LorentzHelper.cxx.

53 {
54 asg::msgUserCode::ANA_MSG_WARNING(
55 "LorentzHelper WARNING: We can't guarantee the mass from this 4-vector "
56 "is correct, consider using GetPxPyPzMfromTruth");
57 ROOT::Math::PxPyPzEVector EnergySafeVector(
61 TruthParticle->e());
62 return EnergySafeVector;
63}
virtual double pz() const
z component of momentum
virtual double px() const
x component of momentum
virtual double py() const
y component of momentum

◆ GetPxPyPzMfromTruth()

ROOT::Math::PxPyPzMVector GetPxPyPzMfromTruth ( const xAOD::TruthParticle * TruthParticle)
Author
Baptiste Ravina bapti.nosp@m.ste..nosp@m.ravin.nosp@m.a@ce.nosp@m.rn.ch
Steffen Korn steff.nosp@m.en.k.nosp@m.orn@c.nosp@m.ern..nosp@m.ch

Definition at line 19 of file LorentzHelper.cxx.

20 {
21 ROOT::Math::PxPyPzMVector MassSafeVector(
25 TruthParticle->m());
26 return MassSafeVector;
27}