) # Define the geometry. process.GeometryService = mu2e.Service("GeometryService", inputfile=cms.untracked.string("Mu2eG4/test/geom_03.txt") ) # Define and configure some modules to do work on each event. # Modules are just defined for now, the are scheduled later. # Start each new event with an empty event. process.source = mu2e.Source("EmptySource") # Make some generated tracks and add them to the event. process.generate = mu2e.EDProducer( "EventGenerator", inputfile = mu2e.untracked.string("Mu2eG4/test/genconfig_02.txt") ) # Run G4 and add its hits to the event. process.g4run = mu2e.EDProducer( "G4" ) process.outfile = mu2e.OutputModule( "PoolOutputModule", fileName = cms.untracked.string('file:data_03.root'), ) # Look at the hits from G4. process.checkhits = mu2e.EDAnalyzer( "ReadBack",
) # Define the geometry. process.GeometryService = mu2e.Service("GeometryService", inputfile=cms.untracked.string("Example02/test/ex02geom.txt") ) # Define and configure some modules to do work on each event. # Modules are just defined for now, the are scheduled later. # Start each new event with an empty event. process.source = mu2e.Source("EmptySource") # Make some hits and add them to the event. process.ex02hitmaker = mu2e.EDProducer( "Ex02MakeHits", minPulseHeight=cms.double(6.5) ) # Filter to select events with an odd event number. process.oddfilter = mu2e.EDFilter( "Ex02SelectEvents", keepOddOrEven=cms.untracked.int32(1) ) # Filter to select events with an odd event number. process.evenfilter = mu2e.EDFilter( "Ex02SelectEvents", keepOddOrEven=cms.untracked.int32(2) ) # Get the hits out of the event and look at them. Make histograms.