This struct is used by the TrackingPerformanceEvaluation Module to save information of reconstructed tracks.
More...
#include <MCParticleInfo.h>
|
| MCParticleInfo (const MCParticle &the_mcParticle, const ROOT::Math::XYZVector &the_magField) |
| Constructor.
|
|
double | getPx () |
| Getter for x component of momentum.
|
|
double | getPy () |
| Getter for y component of momentum.
|
|
double | getPz () |
| Getter for z component of momentum.
|
|
double | getPt () |
| Getter for transverse momentum.
|
|
double | getP () |
| Getter for magnitut of momentum.
|
|
double | getEnergy () |
| Getter for energy.
|
|
double | getX () |
| Getter for x component of vertex.
|
|
double | getY () |
| Getter for y component of vertex.
|
|
double | getZ () |
| Getter for z component of vertex.
|
|
double | getPtheta () |
| Getter for theta of momentum vector.
|
|
double | getPphi () |
| Getter for phi of momentum vector.
|
|
double | getCharge () |
| Getter for electric charge of particle.
|
|
double | getD0 () |
| Getter for D0.
|
|
double | getZ0 () |
| Getter for Z0.
|
|
double | getPhi () |
| Getter for Phi.
|
|
double | getOmega () |
| Getter for Omega.
|
|
double | getCotTheta () |
| Getter for Theta.
|
|
double | getLambda () |
| Getter for Lambda.
|
|
double | getChi () |
| Getter for Chi.
|
|
This struct is used by the TrackingPerformanceEvaluation Module to save information of reconstructed tracks.
Definition at line 22 of file MCParticleInfo.h.
◆ MCParticleInfo()
Constructor.
Definition at line 14 of file MCParticleInfo.cc.
18{
19
21} ;
double m_myBz
Member variable for z component of B field.
const MCParticle & m_mcParticle
Reference to MC particle.
double m_charge
Member variable for particle's electric charge.
float getCharge() const
Return the particle charge defined in TDatabasePDG.
◆ getCharge()
◆ getChi()
Getter for Chi.
Definition at line 50 of file MCParticleInfo.cc.
51{
52 double px = this->
getPx();
53 double py = this->
getPy();
54 double pt = this->
getPt();
55 double x = this->
getX();
56 double y = this->
getY();
57
58 double sinChi = -
m_charge * (px * x + py * y);
60
61 return atan2(sinChi, cosChi);
62
63};
double getPx()
Getter for x component of momentum.
double getPt()
Getter for transverse momentum.
double getY()
Getter for y component of vertex.
double getX()
Getter for x component of vertex.
double getPy()
Getter for y component of momentum.
◆ getCotTheta()
Getter for Theta.
Definition at line 79 of file MCParticleInfo.cc.
80{
82
83 return tanDip;
84};
double getPz()
Getter for z component of momentum.
◆ getD0()
Getter for D0.
Definition at line 24 of file MCParticleInfo.cc.
25{
26
27 double pt = this->
getPt();
28 double px = this->
getPx();
29 double py = this->
getPy();
30 double x = this->
getX();
31 double y = this->
getY();
33
34 double alpha =
R / pt;
35 double Cx = x + alpha * py;
36 double Cy = y - alpha * px;
39
40 return d0;
41};
double getOmega()
Getter for Omega.
double sqrt(double a)
sqrt for double
◆ getEnergy()
Getter for energy.
Definition at line 40 of file MCParticleInfo.h.
float getEnergy() const
Return particle energy in GeV.
◆ getLambda()
Getter for Lambda.
Definition at line 87 of file MCParticleInfo.cc.
88{
89 double lambda = atan2(this->
getPz(), this->
getPt());
90 return lambda;
91};
◆ getOmega()
◆ getP()
Getter for magnitut of momentum.
Definition at line 38 of file MCParticleInfo.h.
ROOT::Math::XYZVector getMomentum() const
Return momentum.
◆ getPhi()
Getter for Phi.
Definition at line 44 of file MCParticleInfo.cc.
45{
47};
double getChi()
Getter for Chi.
◆ getPphi()
◆ getPt()
◆ getPtheta()
◆ getPx()
◆ getPy()
◆ getPz()
◆ getX()
Getter for x component of vertex.
Definition at line 43 of file MCParticleInfo.h.
ROOT::Math::XYZVector getVertex() const
Return production vertex position, shorthand for getProductionVertex().
◆ getY()
◆ getZ()
◆ getZ0()
Getter for Z0.
Definition at line 73 of file MCParticleInfo.cc.
74{
76};
double getZ()
Getter for z component of vertex.
◆ m_charge
Member variable for particle's electric charge.
Definition at line 80 of file MCParticleInfo.h.
◆ m_mcParticle
◆ m_myBz
Member variable for z component of B field.
Definition at line 78 of file MCParticleInfo.h.
The documentation for this class was generated from the following files: