hepmc_converter.DataOutputs.genvertices.Path="allGenVertices" from Configurables import GeoSvc geoservice = GeoSvc("GeoSvc", detector='file:DetectorDescription/Detectors/compact/ParametricSimTracker.xml', OutputLevel = DEBUG) from Configurables import GeantSvc geantservice = GeantSvc("GeantSvc", config="GeantFastSimConfig", detector='DD4hepDetector') from Configurables import GeantFastSimAlg, GeantFastSimConfig, SimpleSmear geantsim = GeantFastSimAlg("GeantFastSimAlg") geantsim.DataInputs.genParticles.Path="allGenParticles" geantsim.DataOutputs.particles.Path = "recParticles" geantsim.DataOutputs.particleassociation.Path = "particleMCparticleAssociation" fastsimconfig = GeantFastSimConfig("FastSimConfig", smearing = "SimpleSmear") geantservice.addTool(fastsimconfig) smear = SimpleSmear("SimpleSmear", sigma = 0.015) fastsimconfig.addTool(smear) from Configurables import AlbersWrite, AlbersOutput out = AlbersOutput("out", OutputLevel=DEBUG) out.outputCommands = ["keep *"] ApplicationMgr( TopAlg = [reader, hepmc_converter, geantsim, out], EvtSel = 'NONE', EvtMax = 1, ExtSvc = [albersevent, geoservice, geantservice], # order! geo needed by geant OutputLevel=DEBUG )
reader.DataOutputs.hepmc.Path = "hepmc" from Configurables import HepMCConverter hepmc_converter = HepMCConverter("Converter") hepmc_converter.DataInputs.hepmc.Path="hepmc" hepmc_converter.DataOutputs.genparticles.Path="allGenParticles" hepmc_converter.DataOutputs.genvertices.Path="allGenVertices" from Configurables import GeoSvc geoservice = GeoSvc("GeoSvc", detector='file:DetectorDescription/Detectors/compact/TestTracker.xml', OutputLevel = DEBUG) from Configurables import GeantSvc, GdmlDetector det = GdmlDetector("GdmlDetector", gdml = "Sim/SimG4Common/gdml/example.xml") geantservice = GeantSvc("GeantSvc", config="GeantFullSimConfig", detector="GdmlDetector") geantservice.addTool(det) from Configurables import GeantFullSimAlg geantsim = GeantFullSimAlg("GeantFullSimAlg") geantsim.DataInputs.genParticles.Path="allGenParticles" geantsim.DataOutputs.trackClusters.Path = "clusters" geantsim.DataOutputs.trackHits.Path = "hits" geantsim.DataOutputs.trackHitsClusters.Path = "hitClusterAssociation" from Configurables import AlbersWrite, AlbersOutput out = AlbersOutput("out", OutputLevel=DEBUG) out.outputCommands = ["keep *"] ApplicationMgr( TopAlg = [reader, hepmc_converter, geantsim, out],