Belle II Software
release-08-01-10
|
The Class for Masterclass particle information This class provides the data structure of the particle that are used by Belle II Masterclass application. More...
#include <BParticle.h>
Public Member Functions | |
BParticle () | |
Default constructor. | |
BParticle (const BParticle &)=default | |
Constructor using the particle. | |
BParticle & | operator+= (const BParticle &) |
Operator to add particle. | |
BParticle (float px, float py, float pz, float energy, float charge, SIMPLEPID pid, float logL_e=0, float logL_mu=0, float logL_pi=0, float logL_k=0, float logL_p=0, float logL_d=0) | |
Constructor of fthe particle. More... | |
~BParticle () | |
Default destructor. | |
float | px () const |
float | py () const |
float | pz () const |
z More... | |
float | e () const |
float | GetMomentum () const |
Get the momentum of the particle. More... | |
float | GetTransverseMomentum () const |
Get the transverse momentum of the particle. More... | |
float | charge () const |
Get the particle charge. More... | |
SIMPLEPID | pid () const |
Get the particle identity. More... | |
float | logL_e () const |
Get the log likelihood for electron hypothesis. More... | |
float | logL_mu () const |
Get the log likelihood for muon hypothesis. More... | |
float | logL_pi () const |
Get the log likelihood for pion hypothesis. More... | |
float | logL_k () const |
Get the log likelihood for kaon hypothesis. More... | |
float | logL_p () const |
Get the log likelihood for proton hypothesis. More... | |
float | logL_d () const |
Get the log likelihood for deuteron hypothesis. More... | |
float | GetLogL (SIMPLEPID pid) |
Get the log likelihood for a particle hypothesis. More... | |
float | GetPID (SIMPLEPID pid) |
Get the log likelihood ratio for a particle hypothesis with respect to all other hypotheses. More... | |
float | GetBinPID (SIMPLEPID pid1, SIMPLEPID pid2) |
Get the binary log likelihood ratio for a particle hypothesis with respect to a second hypothesis. More... | |
float | GetMass (SIMPLEPID pid) |
Get the mass of the particle with the identity. More... | |
float | GetMass () |
Get the mass of the particle. More... | |
void | SetEnergyFromMass (float mass) |
Recalculate energy from particle mass and momentum. More... | |
void | SetEnergyFromPid () |
Recalculate energy from particle identity and momentum. | |
void | SetPid (SIMPLEPID pid) |
Set particle identity. More... | |
int | InMassRange (float mlower, float mupper) |
Test if the mass is in range. More... | |
BParticle & | operator= (const BParticle &p) |
Assign a particle. | |
Private Attributes | |
float | m_px |
x component of the particle momentum | |
float | m_py |
y component of the particle momentum | |
float | m_pz |
z component of the particle momentum | |
float | m_e |
energy of the particle | |
float | m_charge |
charge of the particle | |
SIMPLEPID | m_pid |
particle identity | |
float | m_logL_e |
log likelihood of the electron hypothesis | |
float | m_logL_mu |
log likelihood of the muon hypothesis | |
float | m_logL_pi |
log likelihood of the pion hypothesis | |
float | m_logL_k |
log likelihood of the kaon hypothesis | |
float | m_logL_p |
log likelihood of the proton hypothesis | |
float | m_logL_d |
log likelihood of the deuteron hypothesis | |
The Class for Masterclass particle information This class provides the data structure of the particle that are used by Belle II Masterclass application.
Definition at line 18 of file BParticle.h.
BParticle | ( | float | px, |
float | py, | ||
float | pz, | ||
float | energy, | ||
float | charge, | ||
SIMPLEPID | pid, | ||
float | logL_e = 0 , |
||
float | logL_mu = 0 , |
||
float | logL_pi = 0 , |
||
float | logL_k = 0 , |
||
float | logL_p = 0 , |
||
float | logL_d = 0 |
||
) |
Constructor of fthe particle.
px | - x component of the particle momentum |
py | - y component of the particle momentum |
pz | - z component of the particle momentum |
energy | - energy of the particle |
charge | - unit charge of the particle |
pid | - particle identity - hypothesis with the highest maximum likelihood |
logL_e | - log likelihood of the electron hypothesis |
logL_mu | - log likelihood of the muon hypothesis |
logL_pi | - log likelihood of the pion hypothesis |
logL_k | - log likelihood of the kaon hypothesis |
logL_p | - log likelihood of the proton hypothesis |
logL_d | - log likelihood of the deuteron hypothesis |
Definition at line 13 of file BParticle.cc.
|
inline |
|
inline |
Definition at line 79 of file BParticle.h.
float GetBinPID | ( | SIMPLEPID | pid1, |
SIMPLEPID | pid2 | ||
) |
Get the binary log likelihood ratio for a particle hypothesis with respect to a second hypothesis.
pid1 | particle identity |
pid2 | particle identity |
Definition at line 71 of file BParticle.cc.
float GetLogL | ( | SIMPLEPID | pid | ) |
Get the log likelihood for a particle hypothesis.
pid | particle identity |
Definition at line 48 of file BParticle.cc.
float GetMass | ( | ) |
Get the mass of the particle.
Definition at line 99 of file BParticle.cc.
float GetMass | ( | SIMPLEPID | pid | ) |
Get the mass of the particle with the identity.
pid | particle identity |
Definition at line 76 of file BParticle.cc.
|
inline |
Get the momentum of the particle.
Definition at line 84 of file BParticle.h.
float GetPID | ( | SIMPLEPID | pid | ) |
Get the log likelihood ratio for a particle hypothesis with respect to all other hypotheses.
pid | particle identity |
Definition at line 61 of file BParticle.cc.
|
inline |
Get the transverse momentum of the particle.
Definition at line 89 of file BParticle.h.
|
inline |
Test if the mass is in range.
mlower | lower limit of the range |
mupper | upper limit of the range |
Definition at line 189 of file BParticle.h.
|
inline |
Get the log likelihood for deuteron hypothesis.
Definition at line 131 of file BParticle.h.
|
inline |
Get the log likelihood for electron hypothesis.
Definition at line 106 of file BParticle.h.
|
inline |
Get the log likelihood for kaon hypothesis.
Definition at line 121 of file BParticle.h.
|
inline |
Get the log likelihood for muon hypothesis.
Definition at line 111 of file BParticle.h.
|
inline |
Get the log likelihood for proton hypothesis.
Definition at line 126 of file BParticle.h.
|
inline |
Get the log likelihood for pion hypothesis.
Definition at line 116 of file BParticle.h.
|
inline |
|
inline |
Definition at line 67 of file BParticle.h.
|
inline |
Definition at line 71 of file BParticle.h.
|
inline |
void SetEnergyFromMass | ( | float | mass | ) |
Recalculate energy from particle mass and momentum.
mass | of the particle |
Definition at line 106 of file BParticle.cc.
|
inline |
Set particle identity.
pid | - particle identity |
Definition at line 181 of file BParticle.h.