Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-29 07:35:41

0001 """Helper object for files containing one or more MCParticle collections"""
0002 
0003 from DDSim.Helper.Input import Input
0004 from DDSim.Helper.MCParticle import MCParticleMixin
0005 
0006 
0007 class EDM4hep(Input, MCParticleMixin):
0008   """Configuration for the EDM4hep input files"""
0009 
0010   def __init__(self):
0011     super(EDM4hep, self).__init__()
0012     self._parameters["MCParticleCollectionName"] = "MCParticles"
0013     self._parameters["EventHeaderCollectionName"] = "EventHeader"
0014     self._closeProperties()
0015 
0016   @property
0017   def eventHeaderCollectionName(self):
0018     """Set the name of the collection containing the EventHeader input.
0019     """
0020     return self._parameters["EventHeaderCollectionName"]
0021 
0022   @eventHeaderCollectionName.setter
0023   def eventHeaderCollectionName(self, val):
0024     self._parameters["MCParticleCollectionName"] = val