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
ace96baf
Commit
ace96baf
authored
7 years ago
by
Ete Remi
Committed by
Marko Petric
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
LCIOFileReader: add extension with LCIO input event parameters to Geant4 event
parent
a2f60fd1
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/LCIOFileReader.cpp
+8
-0
8 additions, 0 deletions
DDG4/lcio/LCIOFileReader.cpp
with
8 additions
and
0 deletions
DDG4/lcio/LCIOFileReader.cpp
+
8
−
0
View file @
ace96baf
...
...
@@ -27,6 +27,7 @@
// Framework include files
#include
"LCIOEventReader.h"
#include
"LCIOEventParameters.h"
#include
"lcio.h"
using
namespace
lcio
;
...
...
@@ -44,6 +45,7 @@ namespace dd4hep {
/**
* \author P.Kostka (main author)
* \author M.Frank (code reshuffeling into new DDG4 scheme)
* \author R.Ete (added event parameters in event context)
* \version 1.0
* \ingroup DD4HEP_SIMULATION
*/
...
...
@@ -121,6 +123,12 @@ dd4hep::sim::LCIOFileReader::readParticleCollection(int /*event_number*/, EVENT:
if
(
*
particles
)
{
printout
(
INFO
,
"LCIOFileReader"
,
"read collection %s from event %d in run %d "
,
m_collectionName
.
c_str
(),
evt
->
getEventNumber
(),
evt
->
getRunNumber
());
// Create input event parameters context
LCIOEventParameters
*
parameters
=
new
LCIOEventParameters
();
parameters
->
setParameters
(
evt
->
getRunNumber
(),
evt
->
getEventNumber
(),
evt
->
parameters
());
context
()
->
event
().
addExtension
<
LCIOEventParameters
>
(
parameters
);
return
EVENT_READER_OK
;
}
}
...
...
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