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
a4323177
Commit
a4323177
authored
7 years ago
by
Jan Strube
Committed by
Andre Sailer
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding a helper to set the name of the MCParticle collection
parent
4639943a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDSim/Helper/MCParticles.py
+20
-0
20 additions, 0 deletions
DDSim/Helper/MCParticles.py
with
20 additions
and
0 deletions
DDSim/Helper/MCParticles.py
0 → 100644
+
20
−
0
View file @
a4323177
"""
Helper object for files containing one or more MCParticle collections
"""
from
DDSim.Helper.Input
import
Input
class
MCParticles
(
Input
):
"""
Configuration for the generator-level InputFiles
"""
def
__init__
(
self
):
super
(
MCParticles
,
self
).
__init__
()
self
.
_parameters
[
"
MCParticleCollectionName
"
]
=
"
MCParticle
"
@property
def
mcParticleCollectionName
(
self
):
"""
Set the name of the collection containing the MCParticle input.
Default is
"
MCParticle
"
.
"""
return
self
.
_parameters
[
"
MCParticleCollectionName
"
]
@particlesPerEvent.setter
def
particlesPerEvent
(
self
,
val
):
self
.
_parameters
[
"
MCParticleCollectionName
"
]
=
val
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