Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
76e5eb06
Commit
76e5eb06
authored
7 years ago
by
Frank Gaede
Committed by
Frank Gaede
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adapt LCIOEventReader for Pythia8 and Whizard2
- add all parentless particles to outgoing vertex
parent
30a5c410
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
DDG4/lcio/LCIOEventReader.cpp
+10
-4
10 additions, 4 deletions
DDG4/lcio/LCIOEventReader.cpp
with
10 additions
and
4 deletions
DDG4/lcio/LCIOEventReader.cpp
+
10
−
4
View file @
76e5eb06
...
@@ -149,11 +149,17 @@ LCIOEventReader::readParticles(int event_number,
...
@@ -149,11 +149,17 @@ LCIOEventReader::readParticles(int event_number,
// haveVertex = true ;
// haveVertex = true ;
// }
// }
//fg: we simply add all particles without parents as outgoing to the main
// event vertex. This might include the incoming beam particles, e.g. in
// the case of lcio files written with Whizard2, which is slightly odd,
// however should be treated correctly in Geant4InputHandling.cpp.
// We no longer make an attempt to identify the incoming particles
// based on the generator status, as this varies widely with different
// generators.
if
(
p
->
parents
.
size
()
==
0
)
{
if
(
p
->
parents
.
size
()
==
0
)
{
if
(
status
.
isSet
(
G4PARTICLE_GEN_EMPTY
)
||
status
.
isSet
(
G4PARTICLE_GEN_DOCUMENTATION
)
)
vtx
->
in
.
insert
(
p
->
id
);
// Beam particles and primary quarks etc
vtx
->
out
.
insert
(
p
->
id
);
// Stuff, to be given to Geant4 together with daughters
else
vtx
->
out
.
insert
(
p
->
id
);
// Stuff, to be given to Geant4 together with daughters
}
}
if
(
mcp
->
isCreatedInSimulation
()
)
status
.
set
(
G4PARTICLE_SIM_CREATED
);
if
(
mcp
->
isCreatedInSimulation
()
)
status
.
set
(
G4PARTICLE_SIM_CREATED
);
...
...
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