Belle II Software development
|
The Class for Masterclass event parameters. More...
#include <BEvent.h>
Public Member Functions | |
BEvent () | |
Default constructor. | |
~BEvent () | |
Default destructor. | |
virtual void | Clear (Option_t *="") |
Clear the array of particles. | |
void | EventNo (int evtno) |
Set the current event number. | |
int | EventNo () |
Get the current event number. | |
void | AddTrack (float px, float py, float pz, float e, float charge, SIMPLEPID pid) |
Add the track to the event. | |
void | AddTrack (float px, float py, float pz, float e, float charge, SIMPLEPID pid, float logL_e, float logL_mu, float logL_pi, float logL_k, float logL_p, float logL_d) |
Add the track to the event. | |
int | NParticles () |
Get the number of particles in the event. | |
TClonesArray * | GetParticleList () |
Get the array of particles in the event. | |
Private Attributes | |
int | m_evno |
current event number | |
int | m_nprt |
number of particles in the event | |
TClonesArray * | m_particles |
array of particles | |
The Class for Masterclass event parameters.
This class provides the data structure to write out the data files used for Belle II Masterclass application.
BEvent | ( | ) |
~BEvent | ( | ) |
void AddTrack | ( | float | px, |
float | py, | ||
float | pz, | ||
float | e, | ||
float | charge, | ||
SIMPLEPID | pid | ||
) |
Add the track to the event.
px | - x component of the particle momentum |
py | - y component of the particle momentum |
pz | - z component of the particle momentum |
e | - energy of the particle |
charge | - unit charge of the particle |
pid | - particle identity - hypothesis with the highest maximum likelihood |
Definition at line 34 of file BEvent.cc.
void AddTrack | ( | float | px, |
float | py, | ||
float | pz, | ||
float | e, | ||
float | charge, | ||
SIMPLEPID | pid, | ||
float | logL_e, | ||
float | logL_mu, | ||
float | logL_pi, | ||
float | logL_k, | ||
float | logL_p, | ||
float | logL_d | ||
) |
Add the track to the event.
px | - x component of the particle momentum |
py | - y component of the particle momentum |
pz | - z component of the particle momentum |
e | - energy of the particle |
charge | - unit charge of the particle |
pid | - particle identity - hypothesis with the highest maximum likelihood |
logL_e | - log likelihood for electron hypothesis |
logL_mu | - log likelihood for muon hypothesis |
logL_pi | - log likelihood for pion hypothesis |
logL_k | - log likelihood for kaon hypothesis |
logL_p | - log likelihood for proton hypothesis |
logL_d | - log likelihood for deuteron hypothesis |
|
virtual |
Clear the array of particles.
int EventNo | ( | ) |
void EventNo | ( | int | evtno | ) |
TClonesArray * GetParticleList | ( | ) |
Get the array of particles in the event.
int NParticles | ( | ) |