Belle II Software development
|
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. | |
~BParticle () | |
Default destructor. | |
float | px () const |
float | py () const |
float | pz () const |
z | |
float | e () const |
float | GetMomentum () const |
Get the momentum of the particle. | |
float | GetTransverseMomentum () const |
Get the transverse momentum of the particle. | |
float | charge () const |
Get the particle charge. | |
SIMPLEPID | pid () const |
Get the particle identity. | |
float | logL_e () const |
Get the log likelihood for electron hypothesis. | |
float | logL_mu () const |
Get the log likelihood for muon hypothesis. | |
float | logL_pi () const |
Get the log likelihood for pion hypothesis. | |
float | logL_k () const |
Get the log likelihood for kaon hypothesis. | |
float | logL_p () const |
Get the log likelihood for proton hypothesis. | |
float | logL_d () const |
Get the log likelihood for deuteron hypothesis. | |
float | GetLogL (SIMPLEPID pid) |
Get the log likelihood for a particle hypothesis. | |
float | GetPID (SIMPLEPID pid) |
Get the log likelihood ratio for a particle hypothesis with respect to all other hypotheses. | |
float | GetBinPID (SIMPLEPID pid1, SIMPLEPID pid2) |
Get the binary log likelihood ratio for a particle hypothesis with respect to a second hypothesis. | |
float | GetMass (SIMPLEPID pid) |
Get the mass of the particle with the identity. | |
float | GetMass () |
Get the mass of the particle. | |
void | SetEnergyFromMass (float mass) |
Recalculate energy from particle mass and momentum. | |
void | SetEnergyFromPid () |
Recalculate energy from particle identity and momentum. | |
void | SetPid (SIMPLEPID pid) |
Set particle identity. | |
int | InMassRange (float mlower, float mupper) |
Test if the mass is in range. | |
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.
|
inline |
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 |
|
inline |
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 |
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 |
|
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.
Assign a particle.
Definition at line 192 of file BParticle.h.
|
inline |
|
inline |
|
inline |
|
inline |
void SetEnergyFromMass | ( | float | mass | ) |
void SetEnergyFromPid | ( | ) |
Recalculate energy from particle identity and momentum.
Definition at line 113 of file BParticle.cc.
|
inline |
Set particle identity.
pid | - particle identity |
Definition at line 181 of file BParticle.h.
|
private |
charge of the particle
Definition at line 25 of file BParticle.h.
|
private |
energy of the particle
Definition at line 24 of file BParticle.h.
|
private |
log likelihood of the deuteron hypothesis
Definition at line 32 of file BParticle.h.
|
private |
log likelihood of the electron hypothesis
Definition at line 27 of file BParticle.h.
|
private |
log likelihood of the kaon hypothesis
Definition at line 30 of file BParticle.h.
|
private |
log likelihood of the muon hypothesis
Definition at line 28 of file BParticle.h.
|
private |
log likelihood of the proton hypothesis
Definition at line 31 of file BParticle.h.
|
private |
log likelihood of the pion hypothesis
Definition at line 29 of file BParticle.h.
|
private |
particle identity
Definition at line 26 of file BParticle.h.
|
private |
x component of the particle momentum
Definition at line 21 of file BParticle.h.
|
private |
y component of the particle momentum
Definition at line 22 of file BParticle.h.
|
private |
z component of the particle momentum
Definition at line 23 of file BParticle.h.