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
EventSmear.cxx
1 
9 #include <eicsmear/hadronic/EventSmear.h>
10 
11 namespace erhic {
12 namespace hadronic {
13 
15  for (unsigned i(0); i < GetNTracks(); ++i) {
16  delete particles.at(i);
17  particles.at(i) = NULL;
18  } // for
19 }
20 
22 }
23 
24 const Smear::ParticleMCS* EventSmear::GetTrack(UInt_t i) const {
25  return particles.at(i);
26 }
27 
29  return particles.at(i);
30 }
31 
32 UInt_t EventSmear::GetNTracks() const {
33  return particles.size();
34 }
35 
37  particles.push_back(p);
38 }
39 
40 } // namespace hadronic
41 } // namespace erhic
virtual UInt_t GetNTracks() const
Definition: EventSmear.cxx:32
virtual void AddLast(Smear::ParticleMCS *)
Definition: EventSmear.cxx:36
virtual const Smear::ParticleMCS * GetTrack(UInt_t) const
Definition: EventSmear.cxx:24