#include <ALFA_BeamTrack.h>
Definition at line 28 of file ALFA_BeamTrack.h.
◆ ALFA_BeamTrack()
| ALFA_BeamTrack::ALFA_BeamTrack |
( |
| ) |
|
|
default |
◆ ~ALFA_BeamTrack()
| ALFA_BeamTrack::~ALFA_BeamTrack |
( |
| ) |
|
|
default |
◆ CalculatePosRP()
calculates the particle position and momentum at RP run first CalculatePosRP() then posRP() and momRP()
Definition at line 117 of file ALFA_BeamTrack.cxx.
117 {
118
119 FPTracker::Particle
Particle=std::move(particle);
120 FPTracker::Point lost_markerMom(-99,-99,-99);
121
122
123 std::cout<<
"fpTracker: "<<
Particle<<std::endl;
125 std::cout<<
"fpTracker: "<<
Particle<<std::endl;
126
127
129
133
135
136
138 {
139
140 FPTracker::Point lost_markerPos(-99,-99,
Particle.positionRelBeam().z());
141 std::cout<<"Particle got lost"<<std::endl;
142
143
145
147 }
148
149
150 return true;
151}
FPTracker::Beamline m_Beamline_2
FPTracker::Point m_PosParticleRP
FPTracker::Beamline m_Beamline_1
FPTracker::Point m_MomParticleRP
Particle_v1 Particle
Define the latest version of the particle class.
◆ initialize()
| int ALFA_BeamTrack::initialize |
( |
const FPConfig & | ConfigValues | ) |
|
Definition at line 28 of file ALFA_BeamTrack.cxx.
28 {
29
32
33
34
35 if (
m_AlfaTwiss) {std::cout<<
"Will use alfa twiss files"<<std::endl;}
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 FPTracker::ConfigData ConfigData;
61
62
63 ConfigData.
IP=ConfigValues.
IP;
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
93
99 std::cout<<" beamline_1 start "<<'\n';
101 std::cout<<" beamline_1 end "<<"\n\n";
102
108
109 std::cout<<" beamline_2 start "<<'\n';
111 std::cout<<" beamline_2 end "<<"\n\n";
112
113 return true;
114}
std::shared_ptr< std::ifstream > m_Magfile
std::shared_ptr< std::ifstream > getAlfaMagnetConfigFiles(const std::string &dir, const Side &side)
std::shared_ptr< std::ifstream > getMagnetConfigFiles(const std::string &dir, int IP, int magVer, const Side &side)
Beamline setupBeamline(const ConfigData &, const Side &, int magver, std::shared_ptr< std::ifstream >)
◆ MomRP()
◆ PosRP()
◆ m_AlfaTwiss
| bool ALFA_BeamTrack::m_AlfaTwiss {true} |
|
private |
◆ m_Beamline_1
◆ m_Beamline_2
◆ m_ConfDir
| std::string ALFA_BeamTrack::m_ConfDir |
|
private |
◆ m_ConfigData
◆ m_ip
| int ALFA_BeamTrack::m_ip {1} |
|
private |
◆ m_Magfile
| std::shared_ptr< std::ifstream > ALFA_BeamTrack::m_Magfile |
|
private |
◆ m_Magver
| int ALFA_BeamTrack::m_Magver {3} |
|
private |
◆ m_MomParticleRP
◆ m_PosParticleRP
◆ m_Side
The documentation for this class was generated from the following files: