EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EventSmear.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EventSmear.cxx
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
eic-smear
blob
master
src
hadronic
EventSmear.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration