ATLAS Offline Software
Loading...
Searching...
No Matches
BeamHaloParticle.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 BEAMHALOPARTICLE_H
6#define BEAMHALOPARTICLE_H
7
9#include <memory>
10
11class MarsParticle;
12class FlukaParticle;
13class GenData;
14
22 public:
23
25
29 double weight);
30
34 double weight,
36
37
38 BeamHaloParticle(const BeamHaloParticle& beamHaloParticle) = default;
39
42
45 int fill(
46 MarsParticle *marsParticle);
47
50 int fill(
51 FlukaParticle *flukaParticle);
52
54 void print();
55
57 long pdgId() const { return m_pdgId; }
58
62
66
69 double weight() const { return m_weight; }
70
74
75 private:
76
78 long m_pdgId;
79
82
85
87 double m_weight;
88
91
93 std::shared_ptr<GenData> m_gendata;
94};
95
96#endif
long m_pdgId
The PDG Id of the particle.
long pdgId() const
A function to return the PDG id of this particle.
HepMC::FourVector m_positionAtScoringPlane
Position of the particle at the scoring plane (x,y,z,t).
void print()
A function to print the contents of this particle.
BeamHaloParticle & operator=(const BeamHaloParticle &rhs)=default
Assignment operator.
double m_weight
The resultant particle weight after normalisation and rescaling.
HepMC::FourVector fourVector() const
A function to return the momentum fourvector of this particle.
HepMC::FourVector m_positionAtPrimary
Position of the particle at the primary interaction point (x,y,z,y).
BeamHaloParticle(const BeamHaloParticle &beamHaloParticle)=default
HepMC::FourVector m_fourVector
A four vector describing this particle at the scoring plane.
std::shared_ptr< GenData > m_gendata
A shared pointer to the GenData helper object.
double weight() const
A function to return the weight of this particle within the input beam background simulation file.
int fill(MarsParticle *marsParticle)
A function to fill the data members from an input MarsParticle object.
HepMC::FourVector positionAtScoringPlane() const
A function to return the position fourvector of this particle with respect to the scoring plane.
HepMC::FourVector positionAtPrimary() const
A function to return the position fourvector of this particle with respect to the primary interaction...
A class to describe a FLUKA particle read from an input ASCII file.
GenData is a class for particle data access.
Definition GenData.h:30
A class to describe a MARS particle read from an input ASCII file.
HepMC3::FourVector FourVector