Belle II Software  release-06-02-00
BEvent Class Reference

The Class for Masterclass event parameters. More...

#include <BEvent.h>

Inheritance diagram for BEvent:
Collaboration diagram for BEvent:

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. More...
 
int NParticles ()
 Get the number of particles in the event. More...
 
TClonesArray * GetParticleList ()
 Get the array of particles in the event. More...
 

Private Attributes

int m_evno
 current event number
 
int m_nprt
 number of particles in the event
 
TClonesArray * m_particles
 array of particles
 

Detailed Description

The Class for Masterclass event parameters.

This class provides the data structure to write out the data files used for Belle II Masterclass application.

Definition at line 19 of file BEvent.h.

Member Function Documentation

◆ AddTrack()

void AddTrack ( float  px,
float  py,
float  pz,
float  e,
float  charge,
SIMPLEPID  pid 
)

Add the track to the event.

Parameters
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 33 of file BEvent.cc.

35 {
36  const TClonesArray& particles = *m_particles;
37  new(particles[m_nprt++]) BParticle(px, py, pz, e, charge, pid);
38 }
TClonesArray * m_particles
array of particles
Definition: BEvent.h:23
int m_nprt
number of particles in the event
Definition: BEvent.h:22
The Class for Masterclass particle information This class provides the data structure of the particle...
Definition: BParticle.h:18

◆ GetParticleList()

TClonesArray * GetParticleList ( )

Get the array of particles in the event.

Returns
array of particles

Definition at line 45 of file BEvent.cc.

◆ NParticles()

int NParticles ( )

Get the number of particles in the event.

Returns
number of particles in the event

Definition at line 40 of file BEvent.cc.


The documentation for this class was generated from the following files: