Belle II Software development
BEvent.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12#include <TClonesArray.h>
13
14#include "BParticle.h"
15
17
19class BEvent : public TObject {
20private:
21 int m_evno;
22 int m_nprt;
23 TClonesArray* m_particles;
25public:
26
28 BEvent();
29
31 ~BEvent();
32
37 virtual void Clear(Option_t* /*option*/ = "");
42 void EventNo(int evtno);
43
47 int EventNo();
48
58 void AddTrack(float px, float py, float pz, float e,
59 float charge, SIMPLEPID pid);
60
76 void AddTrack(float px, float py, float pz, float e,
77 float charge, SIMPLEPID pid,
78 float logL_e, float logL_mu, float logL_pi, float logL_k, float logL_p, float logL_d);
79
85 int NParticles();
86
91 TClonesArray* GetParticleList();
92
93 ClassDef(BEvent, 2)
94};
95
96
The Class for Masterclass event parameters.
Definition: BEvent.h:19
virtual void Clear(Option_t *="")
Clear the array of particles.
Definition: BEvent.cc:57
TClonesArray * GetParticleList()
Get the array of particles in the event.
Definition: BEvent.cc:52
int EventNo()
Get the current event number.
Definition: BEvent.cc:29
TClonesArray * m_particles
array of particles
Definition: BEvent.h:23
void AddTrack(float px, float py, float pz, float e, float charge, SIMPLEPID pid)
Add the track to the event.
Definition: BEvent.cc:34
int m_nprt
number of particles in the event
Definition: BEvent.h:22
~BEvent()
Default destructor.
Definition: BEvent.cc:19
int NParticles()
Get the number of particles in the event.
Definition: BEvent.cc:47
BEvent()
Default constructor.
Definition: BEvent.cc:12
int m_evno
current event number
Definition: BEvent.h:21