ATLAS Offline Software
Loading...
Searching...
No Matches
FlukaParticle.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FLUKAPARTICLE_H
6#define FLUKAPARTICLE_H
7
9#include <string>
10#include <vector>
11
20 public:
21 FlukaParticle(int type = 0);
22 FlukaParticle(const FlukaParticle& flukaParticle) = default;
23 FlukaParticle& operator=(const FlukaParticle& flukaParticle) = default;
24
27 int read(std::vector<std::string> *eventAsStringVector);
28
30 void print(void);
31
33 void clear(void);
34
36 int type(void) const { return m_type; }
37
39 long eventId(void) const { return m_eventId; }
40
42 int flukaId(void) const { return m_flukaId; }
43
46 int partGenNum(void) const { return m_partGenNum; }
47
50 double kineticEnergy(void) const { return m_kineticEnergy; }
51
54 HepMC::FourVector positionAtScoringPlane(void) const { return m_positionAtScoringPlane; }
55
58 HepMC::FourVector directionalCosines(void) const { return m_directionalCosines; }
59
61 double weight(void) const { return m_weight; }
62
64 double totalEnergy(void) const { return m_totalEnergy; }
65
67 HepMC::FourVector positionAtPrimary(void) const { return m_positionAtPrimary; }
68
70 int pdgId();
71
75
76 private:
77 int m_type;
78
83 HepMC::FourVector m_positionAtScoringPlane;
84 HepMC::FourVector m_directionalCosines;
85 double m_weight;
87 HepMC::FourVector m_positionAtPrimary;
88
89};
90
91#endif
FlukaParticle & operator=(const FlukaParticle &flukaParticle)=default
FlukaParticle(const FlukaParticle &flukaParticle)=default
HepMC::FourVector positionAtPrimary(void) const
A function to return the position of the primary interaction.
int flukaId(void) const
A function to return the FLUKA particle Id of this particle.
HepMC::FourVector directionalCosines(void) const
A function to return the directional cosines of this particle.
long eventId(void) const
A function to return the FLUKA event Id of this particle.
double weight(void) const
A function to return the particle or event weight.
HepMC::FourVector m_directionalCosines
int partGenNum(void) const
A function to return the particle generation number of this particle.
HepMC::FourVector positionAtScoringPlane(void) const
A function to return the fourvector position with respect to the scoring plane of this particle.
double m_totalEnergy
double totalEnergy(void) const
A function to return the total energy.
int read(std::vector< std::string > *eventAsStringVector)
A function to read the values from a single row definition and fill the data members.
void clear(void)
A function to clear the values of this particle.
HepMC::FourVector m_positionAtScoringPlane
double kineticEnergy(void) const
A function to return the relativistic kinetic energy of this particle.
void print(void)
A function to print the contents of this particle.
HepMC::FourVector m_positionAtPrimary
double m_kineticEnergy
FlukaParticle(int type=0)
int type(void) const
A function to return the type of this FlukaParticle.
int pdgId()
A function to return the PDG id of this particle.