Belle II Software
release-06-02-00
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
BEvent.cc
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
#include "masterclass/dataobjects/BEvent.h"
10
11
BEvent::BEvent
() :
12
m_evno{0},
13
m_nprt{0}
14
{
15
m_particles
=
new
TClonesArray(
"BParticle"
, 500);
16
}
17
18
BEvent::~BEvent
()
19
{
20
delete
m_particles
;
21
}
22
23
void
BEvent::EventNo
(
int
evt)
24
{
25
m_evno
= evt;
26
}
27
28
int
BEvent::EventNo
()
29
{
30
return
m_evno
;
31
}
32
33
void
BEvent::AddTrack
(
float
px,
float
py,
float
pz,
float
e,
34
float
charge, SIMPLEPID pid)
35
{
36
const
TClonesArray& particles = *
m_particles
;
37
new
(particles[
m_nprt
++])
BParticle
(px, py, pz, e, charge, pid);
38
}
39
40
int
BEvent::NParticles
()
41
{
42
return
m_nprt
;
43
}
44
45
TClonesArray*
BEvent::GetParticleList
()
46
{
47
return
m_particles
;
48
}
49
50
void
BEvent::Clear
(Option_t*)
51
{
52
m_particles
->Clear();
53
m_nprt
= 0;
54
}
55
BEvent::Clear
virtual void Clear(Option_t *="")
Clear the array of particles.
Definition:
BEvent.cc:50
BEvent::GetParticleList
TClonesArray * GetParticleList()
Get the array of particles in the event.
Definition:
BEvent.cc:45
BEvent::EventNo
int EventNo()
Get the current event number.
Definition:
BEvent.cc:28
BEvent::m_particles
TClonesArray * m_particles
array of particles
Definition:
BEvent.h:23
BEvent::AddTrack
void AddTrack(float px, float py, float pz, float e, float charge, SIMPLEPID pid)
Add the track to the event.
Definition:
BEvent.cc:33
BEvent::m_nprt
int m_nprt
number of particles in the event
Definition:
BEvent.h:22
BEvent::~BEvent
~BEvent()
Default destructor.
Definition:
BEvent.cc:18
BEvent::NParticles
int NParticles()
Get the number of particles in the event.
Definition:
BEvent.cc:40
BEvent::BEvent
BEvent()
Default constructor.
Definition:
BEvent.cc:11
BEvent::m_evno
int m_evno
current event number
Definition:
BEvent.h:21
BParticle
The Class for Masterclass particle information This class provides the data structure of the particle...
Definition:
BParticle.h:18
masterclass
dataobjects
src
BEvent.cc
Generated on Thu Dec 28 2023 02:28:27 for Belle II Software by
1.9.1