Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-09 08:23:37

0001 from DDSim.DD4hepSimulation import DD4hepSimulation
0002 SIM = DD4hepSimulation()
0003 
0004 # make ddsim find the sensitive detector for box of straws (type: tracker)
0005 SIM.action.trackerSDTypes = ['sensitive']
0006 SIM.action.tracker = ('Geant4ScintillatorCalorimeterAction', {'UseVolumeManager': False})
0007 
0008 SIM.outputFile = "sim.root"
0009 SIM.outputConfig.forceDD4HEP = True
0010 
0011 # Trigger printout of event seed
0012 SIM.random.enableEventSeed = True
0013 
0014 # Fix random seed for all events (debugging only):
0015 # SIM.random.seed = <number>
0016 
0017 SIM.filter.calo = ""
0018 
0019 # Configure the regexSD for the BoxOfStraws gas_
0020 SIM.geometry.regexSensitiveDetector['BoxOfStrawsDet'] = {'Match': ['gas_'],
0021                                                          'OutputLevel': 4,
0022                                                          }
0023 
0024 
0025 # Disable userParticleHander for box of straws
0026 SIM.part.userParticleHandler = ""