eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
hadronic/EventSmear.cxx
Go to the documentation of this file.
1
9
#include <
eicsmear/hadronic/EventSmear.h
>
10
11
namespace
erhic
{
12
namespace
hadronic {
13
14
EventSmear::~EventSmear
() {
15
for
(
unsigned
i(0); i <
GetNTracks
(); ++i) {
16
delete
particles
.at(i);
17
particles
.at(i) = NULL;
18
}
// for
19
}
20
21
EventSmear::EventSmear
() {
22
}
23
24
const
Smear::ParticleMCS
*
EventSmear::GetTrack
(UInt_t i)
const
{
25
return
particles
.at(i);
26
}
27
28
Smear::ParticleMCS
*
EventSmear::GetTrack
(UInt_t i) {
29
return
particles
.at(i);
30
}
31
32
UInt_t
EventSmear::GetNTracks
()
const
{
33
return
particles
.size();
34
}
35
36
void
EventSmear::AddLast
(
Smear::ParticleMCS
* p) {
37
particles
.push_back(p);
38
}
39
40
}
// namespace hadronic
41
}
// namespace erhic
erhic
Definition:
EventDis.cxx:14
erhic::hadronic::EventSmear::EventSmear
EventSmear()
Constructor.
Definition:
hadronic/EventSmear.cxx:21
erhic::hadronic::EventSmear::~EventSmear
virtual ~EventSmear()
Destructor.
Definition:
hadronic/EventSmear.cxx:14
erhic::hadronic::EventSmear::AddLast
virtual void AddLast(Smear::ParticleMCS *)
Add a particle to the end of the list.
Definition:
hadronic/EventSmear.cxx:36
Smear::ParticleMCS
A smeared Monte Carlo particle.
Definition:
ParticleMCS.h:27
EventSmear.h
erhic::hadronic::EventSmear::particles
std::vector< Smear::ParticleMCS * > particles
Definition:
hadronic/EventSmear.h:61
erhic::hadronic::EventSmear::GetNTracks
virtual UInt_t GetNTracks() const
Returns the number of tracks in the event.
Definition:
hadronic/EventSmear.cxx:32
erhic::hadronic::EventSmear::GetTrack
virtual const Smear::ParticleMCS * GetTrack(UInt_t) const
Returns the numbered track for the event.
Definition:
hadronic/EventSmear.cxx:24
src
hadronic
EventSmear.cxx
Generated on Fri Jan 31 2020 15:11:33 for eic-smear by
1.8.17