ATLAS Offline Software
Loading...
Searching...
No Matches
MarsParticle.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MARSPARTICLE_H
6#define MARSPARTICLE_H
7
9#include <vector>
10#include <string>
11
20 public:
22
25 double weight;
26 HepMC::FourVector position;
28};
29
30
39 public:
41
43 int nevve;
44 double timeOfFlight;
45};
46
47
56 public:
58
61 int read(std::vector<std::string> *eventAsStringVector);
62
66 void print(bool beamGas);
67
69 long eventNumber() const { return m_eventNumber; }
70
72 int particleId() const { return m_particleId; }
73
76 double kineticEnergy() const { return m_kineticEnergy; }
77
80 double weight() const { return m_weight; }
81
84 HepMC::FourVector positionAtScoringPlane() const { return m_positionAtScoringPlane; }
85
88 HepMC::FourVector directionalCosines() const { return m_directionalCosines; }
89
91 double timeOfFlight() const { return m_timeOfFlight; }
92
95 double primaryProtonZ() const { return m_primaryProtonZ; }
96
100
104
106 int pdgId();
107
108 private:
112 double m_weight;
113 HepMC::FourVector m_positionAtScoringPlane;
114 HepMC::FourVector m_directionalCosines;
119};
120
121#endif
A class to describe the beam gas interaction that produced a given MARS particle.
double timeOfFlight
ZBGASHIT.
MarsBeamGasInteraction beamGasInteraction() const
A function to return the beam gas interaction information for this particle.
long eventNumber() const
A function to return the event number of this particle.
int read(std::vector< std::string > *eventAsStringVector)
A function to read the values from a single row definition and fill the data members.
HepMC::FourVector positionAtScoringPlane() const
A function to the position of this particle with respect to the scoring plane.
HepMC::FourVector directionalCosines() const
A function to return the directional cosines of this particle.
double kineticEnergy() const
A function to return the relativistic kinetic energy of this particle.
double weight() const
A function to return the weight associated with this particle in the input ASCII file.
int pdgId()
A function to return the PDG id for this particle.
MarsShowerPrimary m_showerPrimary
double m_timeOfFlight
MarsBeamGasInteraction m_beamGasInteraction
const MarsShowerPrimary & showerPrimary() const
A function to return the shower primary infomation for this particle.
double timeOfFlight() const
A function to return the time of flight for this particle.
double m_kineticEnergy
double primaryProtonZ() const
A function to return the primary proton Z position for this particle.
HepMC::FourVector m_positionAtScoringPlane
double m_primaryProtonZ
HepMC::FourVector m_directionalCosines
int particleId() const
A function to return the particle identify of this particle.
void print(bool beamGas)
A function to print the contents of this particle.
A class to describe the primary shower that produced a given MARS particle.
HepMC::FourVector position
XORG, YORG, ZORG , T.
double weight
WORIG.
int particleId
IORIG.
double kineticEnergy
EORIG.
int processId
KORIG.