ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
BeamHaloGenerator
BeamHaloGenerator
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
8
#include "
AtlasHepMC/SimpleVector.h
"
9
#include <memory>
10
11
class
MarsParticle
;
12
class
FlukaParticle
;
13
class
GenData
;
14
21
class
BeamHaloParticle
{
22
public
:
23
24
BeamHaloParticle
();
25
26
BeamHaloParticle
(
long
pdgId
,
27
HepMC::FourVector
fourVector
,
28
HepMC::FourVector
positionAtScoringPlane
,
29
double
weight
);
30
31
BeamHaloParticle
(
long
pdgId
,
32
HepMC::FourVector
fourVector
,
33
HepMC::FourVector
positionAtScoringPlane
,
34
double
weight
,
35
HepMC::FourVector
positionAtPrimary
);
36
37
38
BeamHaloParticle
(
const
BeamHaloParticle
& beamHaloParticle) =
default
;
39
41
BeamHaloParticle
&
operator=
(
const
BeamHaloParticle
&rhs) =
default
;
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
61
HepMC::FourVector
fourVector
()
const
{
return
m_fourVector
; }
62
65
HepMC::FourVector
positionAtScoringPlane
()
const
{
return
m_positionAtScoringPlane
; }
66
69
double
weight
()
const
{
return
m_weight
; }
70
73
HepMC::FourVector
positionAtPrimary
()
const
{
return
m_positionAtPrimary
; }
74
75
private
:
76
78
long
m_pdgId
;
79
81
HepMC::FourVector
m_fourVector
;
82
84
HepMC::FourVector
m_positionAtScoringPlane
;
85
87
double
m_weight
;
88
90
HepMC::FourVector
m_positionAtPrimary
;
91
93
std::shared_ptr<GenData>
m_gendata
;
94
};
95
96
#endif
SimpleVector.h
BeamHaloParticle::m_pdgId
long m_pdgId
The PDG Id of the particle.
Definition
BeamHaloParticle.h:78
BeamHaloParticle::pdgId
long pdgId() const
A function to return the PDG id of this particle.
Definition
BeamHaloParticle.h:57
BeamHaloParticle::m_positionAtScoringPlane
HepMC::FourVector m_positionAtScoringPlane
Position of the particle at the scoring plane (x,y,z,t).
Definition
BeamHaloParticle.h:84
BeamHaloParticle::print
void print()
A function to print the contents of this particle.
Definition
BeamHaloParticle.cxx:193
BeamHaloParticle::operator=
BeamHaloParticle & operator=(const BeamHaloParticle &rhs)=default
Assignment operator.
BeamHaloParticle::m_weight
double m_weight
The resultant particle weight after normalisation and rescaling.
Definition
BeamHaloParticle.h:87
BeamHaloParticle::fourVector
HepMC::FourVector fourVector() const
A function to return the momentum fourvector of this particle.
Definition
BeamHaloParticle.h:61
BeamHaloParticle::m_positionAtPrimary
HepMC::FourVector m_positionAtPrimary
Position of the particle at the primary interaction point (x,y,z,y).
Definition
BeamHaloParticle.h:90
BeamHaloParticle::BeamHaloParticle
BeamHaloParticle(const BeamHaloParticle &beamHaloParticle)=default
BeamHaloParticle::m_fourVector
HepMC::FourVector m_fourVector
A four vector describing this particle at the scoring plane.
Definition
BeamHaloParticle.h:81
BeamHaloParticle::m_gendata
std::shared_ptr< GenData > m_gendata
A shared pointer to the GenData helper object.
Definition
BeamHaloParticle.h:93
BeamHaloParticle::weight
double weight() const
A function to return the weight of this particle within the input beam background simulation file.
Definition
BeamHaloParticle.h:69
BeamHaloParticle::fill
int fill(MarsParticle *marsParticle)
A function to fill the data members from an input MarsParticle object.
Definition
BeamHaloParticle.cxx:56
BeamHaloParticle::positionAtScoringPlane
HepMC::FourVector positionAtScoringPlane() const
A function to return the position fourvector of this particle with respect to the scoring plane.
Definition
BeamHaloParticle.h:65
BeamHaloParticle::positionAtPrimary
HepMC::FourVector positionAtPrimary() const
A function to return the position fourvector of this particle with respect to the primary interaction...
Definition
BeamHaloParticle.h:73
BeamHaloParticle::BeamHaloParticle
BeamHaloParticle()
Definition
BeamHaloParticle.cxx:14
FlukaParticle
A class to describe a FLUKA particle read from an input ASCII file.
Definition
FlukaParticle.h:19
GenData
GenData is a class for particle data access.
Definition
GenData.h:18
MarsParticle
A class to describe a MARS particle read from an input ASCII file.
Definition
MarsParticle.h:55
HepMC::FourVector
HepMC3::FourVector FourVector
Definition
SimpleVector.h:11
Generated on
for ATLAS Offline Software by
1.17.0