Belle II Software development
MCParticleInfo.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <mdst/dataobjects/MCParticle.h>
12
13namespace Belle2 {
23
24 public :
25
27 MCParticleInfo(const MCParticle& the_mcParticle, const ROOT::Math::XYZVector& the_magField);
28
30 double getPx() { return m_mcParticle.getMomentum().x(); };
32 double getPy() { return m_mcParticle.getMomentum().y(); };
34 double getPz() { return m_mcParticle.getMomentum().z(); };
36 double getPt() { return m_mcParticle.getMomentum().Rho(); };
38 double getP() { return m_mcParticle.getMomentum().R(); };
40 double getEnergy() { return m_mcParticle.getEnergy(); };
41
43 double getX() { return m_mcParticle.getVertex().X(); };
45 double getY() { return m_mcParticle.getVertex().Y(); };
47 double getZ() { return m_mcParticle.getVertex().Z(); };
48
50 double getPtheta() { return m_mcParticle.getMomentum().Theta(); };
52 double getPphi() { return m_mcParticle.getMomentum().Phi(); };
53
55 double getCharge() { return m_mcParticle.getCharge(); };
56
58 double getD0();
60 double getZ0();
62 double getPhi();
64 double getOmega();
66 double getCotTheta();
68 double getLambda();
69
71 double getChi();
72
73 private:
74
78 double m_myBz;
80 double m_charge;
81 };
83}
This struct is used by the TrackingPerformanceEvaluation Module to save information of reconstructed ...
double getPx()
Getter for x component of momentum.
double m_myBz
Member variable for z component of B field.
double getZ()
Getter for z component of vertex.
double getPt()
Getter for transverse momentum.
double getY()
Getter for y component of vertex.
double getCharge()
Getter for electric charge of particle.
double getLambda()
Getter for Lambda.
double getPtheta()
Getter for theta of momentum vector.
double getZ0()
Getter for Z0.
double getX()
Getter for x component of vertex.
double getPy()
Getter for y component of momentum.
double getCotTheta()
Getter for Theta.
double getEnergy()
Getter for energy.
double getPhi()
Getter for Phi.
double getPz()
Getter for z component of momentum.
double getOmega()
Getter for Omega.
const MCParticle & m_mcParticle
Reference to MC particle.
double getPphi()
Getter for phi of momentum vector.
double getChi()
Getter for Chi.
double getD0()
Getter for D0.
double m_charge
Member variable for particle's electric charge.
double getP()
Getter for magnitut of momentum.
A Class to store the Monte Carlo particle information.
Definition: MCParticle.h:32
float getEnergy() const
Return particle energy in GeV.
Definition: MCParticle.h:147
ROOT::Math::XYZVector getVertex() const
Return production vertex position, shorthand for getProductionVertex().
Definition: MCParticle.h:183
float getCharge() const
Return the particle charge defined in TDatabasePDG.
Definition: MCParticle.cc:36
ROOT::Math::XYZVector getMomentum() const
Return momentum.
Definition: MCParticle.h:198
Abstract base class for different kinds of events.