Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
150
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Merge requests
!73084
Draft: Statuses
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Statuses
averbyts/athena:statuses
into
main
Overview
0
Commits
35
Pipelines
0
Changes
5
Closed
Andrii Verbytskyi
requested to merge
averbyts/athena:statuses
into
main
6 months ago
Overview
0
Commits
35
Pipelines
0
Changes
5
Expand
👍
0
👎
0
Merge request reports
Compare
main
version 6
69ca2794
5 months ago
version 5
342ba40a
5 months ago
version 4
bfeeed4b
6 months ago
version 3
2b6e254a
6 months ago
version 2
69244e94
6 months ago
version 1
861dcdad
6 months ago
main (base)
and
latest version
latest version
435345bd
35 commits,
5 months ago
version 6
69ca2794
34 commits,
5 months ago
version 5
342ba40a
33 commits,
5 months ago
version 4
bfeeed4b
32 commits,
6 months ago
version 3
2b6e254a
31 commits,
6 months ago
version 2
69244e94
30 commits,
6 months ago
version 1
861dcdad
29 commits,
6 months ago
5 files
+
11
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
ForwardDetectors/ALFA/ALFA_BeamTransport/src/ALFA_BeamTransport.cxx
+
6
−
4
Options
@@ -377,10 +377,12 @@ int ALFA_BeamTransport::TransportSelectedParticle(HepMC::GenEvent& evt, int evt_
ATH_MSG_INFO
(
"Add transproted particle into HepMC event record Beam 1"
);
//Add Data for HepMC Collection
for
(
int
i
=
0
;
i
<
(
int
)
PosAtRP1
.
size
();
i
++
){
//Beam1
//The factor 1000 comes from the fact that HepMC saves length in mm
HepMC
::
FourVector
PositionVectorRP1
=
HepMC
::
FourVector
(
PosAtRP1
.
at
(
i
).
x
()
*
1000.
,
PosAtRP1
.
at
(
i
).
y
()
*
1000.
,
PosAtRP1
.
at
(
i
).
z
()
*
1000.
,
0.
*
1000.
);
HepMC
::
FourVector
MomentumVectorRP1
=
HepMC
::
FourVector
(
MomAtPR1
.
at
(
i
).
x
(),
MomAtPR1
.
at
(
i
).
y
(),
MomAtPR1
.
at
(
i
).
z
(),
EnergyRP1
.
at
(
i
));
for
(
size_t
i
=
0
;
i
<
PosAtRP1
.
size
();
i
++
){
//Beam1
//The factor 1000 comes from the fact that HepMC saves length in mm
HepMC
::
FourVector
PositionVectorRP1
=
HepMC
::
FourVector
(
PosAtRP1
.
at
(
i
).
x
()
*
1000.
,
PosAtRP1
.
at
(
i
).
y
()
*
1000.
,
PosAtRP1
.
at
(
i
).
z
()
*
1000.
,
0.
*
1000.
);
HepMC
::
FourVector
MomentumVectorRP1
=
HepMC
::
FourVector
(
MomAtPR1
.
at
(
i
).
x
(),
MomAtPR1
.
at
(
i
).
y
(),
MomAtPR1
.
at
(
i
).
z
(),
EnergyRP1
.
at
(
i
));
HepMC
::
GenVertexPtr
VertexRP1
=
HepMC
::
newGenVertexPtr
(
PositionVectorRP1
);
HepMC
::
GenParticlePtr
ParticleRP1
=
HepMC
::
newGenParticlePtr
(
MomentumVectorRP1
,
2212
,
1
);
//save the transported particle with status code 1 (added 120124) preview was 201
Loading