![]() |
Belle II Software
release-06-02-00
|
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 (float px, float py, float pz, float energy, float charge, SIMPLEPID pid) | |
| 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 | 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 &b) |
| Adds to particles. | |
| 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 | |
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 | ||
| ) |
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 |
Definition at line 12 of file BParticle.cc.
|
inline |
|
inline |
Definition at line 64 of file BParticle.h.
| float GetMass | ( | ) |
Get the mass of the particle.
Definition at line 46 of file BParticle.cc.
| float GetMass | ( | SIMPLEPID | pid | ) |
Get the mass of the particle with the identity.
| pid | particle identity |
Definition at line 24 of file BParticle.cc.
|
inline |
Get the momentum of the particle.
Definition at line 69 of file BParticle.h.
|
inline |
Get the transverse momentum of the particle.
Definition at line 74 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 124 of file BParticle.h.
|
inline |
|
inline |
Definition at line 52 of file BParticle.h.
|
inline |
Definition at line 56 of file BParticle.h.
|
inline |
| void SetEnergyFromMass | ( | float | mass | ) |
Recalculate energy from particle mass and momentum.
| mass | of the particle |
Definition at line 53 of file BParticle.cc.
|
inline |
Set particle identity.
| pid | - particle identity |
Definition at line 116 of file BParticle.h.