Skip to content
Snippets Groups Projects
Commit a4323177 authored by Jan Strube's avatar Jan Strube Committed by Andre Sailer
Browse files

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
"""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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment