Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Framework
SEvent
SEvent/ScintillatorSimData.cc
Go to the documentation of this file.
1
#include <sevt/ScintillatorSimData.h>
2
#include <utl/Particle.h>
3
4
using namespace
utl;
5
using namespace
sevt;
6
using namespace
std;
7
8
9
void
10
ScintillatorSimData::CountParticle(
const
utl::Particle
&
particle
)
11
{
12
++fTotalParticleCount;
13
/* Should return enum, not int. Perhaps modification of GetType() member
14
function of Particle class warranted */
15
const
int
type = particle.
GetType
();
16
if
(type ==
utl::Particle::eMuon
|| type ==
utl::Particle::eAntiMuon
)
17
++fNumberOfMuons;
18
else
if
(type ==
utl::Particle::eElectron
|| type ==
utl::Particle::ePositron
)
19
++fNumberOfElectrons;
20
else
if
(type ==
utl::Particle::ePhoton
)
21
++fNumberOfPhotons;
22
}
utl::Particle
Describes a particle for Simulation.
Definition:
Particle.h:26
utl::Particle::ePhoton
Definition:
Particle.h:56
utl::Particle::ePositron
Definition:
Particle.h:50
utl::Particle::eMuon
Definition:
Particle.h:52
particle
struct particle_info particle[80]
utl::Particle::GetType
int GetType() const
Definition:
Particle.h:101
utl::Particle::eAntiMuon
Definition:
Particle.h:52
utl::Particle::eElectron
Definition:
Particle.h:50
, generated on Tue Sep 26 2023.