ApplicationMgr().TopAlg += [pythia8gen] ### Reads an HepMC::GenEvent from the data service and writes a collection of EDM Particles from Configurables import HepMCToEDMConverter hepmc_converter = HepMCToEDMConverter("Converter") hepmc_converter.hepmc.Path = "hepmc" hepmc_converter.genparticles.Path = "genParticles" hepmc_converter.genvertices.Path = "genVertices" ApplicationMgr().TopAlg += [hepmc_converter] # Define all output tools that convert the Delphes collections to FCC-EDM: from Configurables import DelphesSaveChargedParticles muonSaveTool = DelphesSaveChargedParticles("muons") muonSaveTool.delphesArrayName = "MuonMomentumSmearing/muons" muonSaveTool.particles.Path = "muons" muonSaveTool.mcAssociations.Path = "muonsToMC" muonSaveTool.isolationTags.Path = "muonITags" eleSaveTool = DelphesSaveChargedParticles("electrons") eleSaveTool.delphesArrayName = "ElectronFilter/electrons" eleSaveTool.particles.Path = "electrons" eleSaveTool.mcAssociations.Path = "electronsToMC" eleSaveTool.isolationTags.Path = "electronITags" chhadSaveTool = DelphesSaveChargedParticles("pfcharged") chhadSaveTool.delphesArrayName = "ChargedHadronFilter/chargedHadrons" chhadSaveTool.saveIsolation = False chhadSaveTool.particles.Path = "pfcharged" chhadSaveTool.mcAssociations.Path = "pfchargedToMC"
### Reads an HepMC::GenEvent from the data service and writes a collection of EDM Particles from Configurables import HepMCToEDMConverter hepmc_converter = HepMCToEDMConverter("Converter") hepmc_converter.hepmc.Path = "hepmc" hepmc_converter.hepmcStatusList = [] # convert particles with all statuses, keeping not just stable final state ones hepmc_converter.genparticles.Path = "genParticles" hepmc_converter.genvertices.Path = "genVertices" ApplicationMgr().TopAlg += [hepmc_converter] # Define all output tools that convert the Delphes collections to FCC-EDM: from Configurables import DelphesSaveChargedParticles muonSaveTool = DelphesSaveChargedParticles("muons") muonSaveTool.delphesArrayName = "MuonMomentumSmearing/muons" muonSaveTool.particles.Path = "muons" muonSaveTool.mcAssociations.Path = "muonsToMC" muonSaveTool.isolationTags.Path = "muonITags" eleSaveTool = DelphesSaveChargedParticles("electrons") eleSaveTool.delphesArrayName = "ElectronFilter/electrons" eleSaveTool.particles.Path = "electrons" eleSaveTool.mcAssociations.Path = "electronsToMC" eleSaveTool.isolationTags.Path = "electronITags" chhadSaveTool = DelphesSaveChargedParticles("efcharged") chhadSaveTool.delphesArrayName = "Calorimeter/eflowTracks" chhadSaveTool.saveIsolation = False chhadSaveTool.particles.Path = "efcharged" chhadSaveTool.mcAssociations.Path = "efchargedToMC"