Belle II Software  release-06-02-00
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 
19 class BEvent : public TObject {
20 private:
21  int m_evno;
22  int m_nprt;
23  TClonesArray* m_particles;
25 public:
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 
66  int NParticles();
67 
72  TClonesArray* GetParticleList();
73 
74  ClassDef(BEvent, 1)
75 };
76 
77 
The Class for Masterclass event parameters.
Definition: BEvent.h:19
virtual void Clear(Option_t *="")
Clear the array of particles.
Definition: BEvent.cc:50
TClonesArray * GetParticleList()
Get the array of particles in the event.
Definition: BEvent.cc:45
int EventNo()
Get the current event number.
Definition: BEvent.cc:28
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:33
int m_nprt
number of particles in the event
Definition: BEvent.h:22
~BEvent()
Default destructor.
Definition: BEvent.cc:18
int NParticles()
Get the number of particles in the event.
Definition: BEvent.cc:40
BEvent()
Default constructor.
Definition: BEvent.cc:11
int m_evno
current event number
Definition: BEvent.h:21