Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Peter Sherwood
athena
Commits
ede21980
Commit
ede21980
authored
4 years ago
by
Andrii Verbytskyi
Committed by
Frank Winklmeier
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Hepmc3 nightly fixes 17122020 part 2
parent
00d997c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Generators/Pythia8_i/src/Pythia8_i.cxx
+21
-0
21 additions, 0 deletions
Generators/Pythia8_i/src/Pythia8_i.cxx
with
21 additions
and
0 deletions
Generators/Pythia8_i/src/Pythia8_i.cxx
+
21
−
0
View file @
ede21980
...
...
@@ -606,6 +606,26 @@ StatusCode Pythia8_i::genFinalize(){
////////////////////////////////////////////////////////////////////////////////
void
Pythia8_i
::
addLHEToHepMC
(
HepMC
::
GenEvent
*
evt
){
#ifdef HEPMC3
HepMC
::
GenEvent
*
procEvent
=
new
HepMC
::
GenEvent
();
// Adding the LHE event to the HepMC results in undecayed partons in the event record.
// Pythia's HepMC converter throws up undecayed partons, so we ignore that
// (expected) exception this time
m_pythiaToHepMC
.
fill_next_event
(
m_pythia
->
process
,
procEvent
,
evt
->
event_number
(),
&
m_pythia
->
info
,
&
m_pythia
->
settings
);
for
(
auto
p
:
*
procEvent
){
p
->
set_status
(
1003
);
}
//This code and the HepMC2 version below assume a correct input, e.g. beams[0]->end_vertex() exists.
for
(
auto
v
:
procEvent
->
vertices
())
v
->
set_status
(
1
);
auto
beams
=
evt
->
beams
();
auto
procBeams
=
procEvent
->
beams
();
if
(
beams
[
0
]
->
momentum
().
pz
()
*
procBeams
[
0
]
->
momentum
().
pz
()
<
0.
)
std
::
swap
(
procBeams
[
0
],
procBeams
[
1
]);
for
(
auto
p
:
procBeams
[
0
]
->
end_vertex
()
->
particles_out
())
beams
[
0
]
->
end_vertex
()
->
add_particle_out
(
p
);
for
(
auto
p
:
procBeams
[
1
]
->
end_vertex
()
->
particles_out
())
beams
[
1
]
->
end_vertex
()
->
add_particle_out
(
p
);
#else
HepMC
::
GenEvent
*
procEvent
=
new
HepMC
::
GenEvent
(
evt
->
momentum_unit
(),
evt
->
length_unit
());
// Adding the LHE event to the HepMC results in undecayed partons in the event record.
...
...
@@ -668,6 +688,7 @@ void Pythia8_i::addLHEToHepMC(HepMC::GenEvent *evt){
vit
=
vtxCopies
.
find
((
*
p
)
->
end_vertex
());
if
(
vit
!=
vtxCopies
.
end
())
vit
->
second
->
add_particle_in
(
pCopy
);
}
#endif
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment