Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions framework/k4SimDelphes/examples/options/k4simdelphesalg.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from Gaudi.Configuration import *
from GaudiKernel import SystemOfUnits as units

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc
app = ApplicationMgr()
app.EvtMax = 3
app.EvtSel = "NONE"

from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")
app.ExtSvc += [podioevent]
app.ExtSvc += [EventDataSvc("EventDataSvc")]

from Configurables import ConstPtParticleGun
guntool1 = ConstPtParticleGun(PdgCodes=[-211], PtMin=50*units.GeV, PtMax=50*units.GeV)
Expand All @@ -35,9 +33,8 @@
ApplicationMgr().TopAlg += [delphesalg]


from Configurables import PodioOutput
out = PodioOutput("out", filename = "output_k4SimDelphes.root")
out.outputCommands = ["keep *"]
ApplicationMgr().TopAlg += [out]
iosvc = IOSvc()
iosvc.Output = "output_k4SimDelphes.root"
iosvc.outputCommands = ["keep *"]


Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from Gaudi.Configuration import *
import os

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc
app = ApplicationMgr()
app.EvtMax = 100
app.EvtSel = "NONE"

from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")
app.ExtSvc += [podioevent]
app.ExtSvc += [EventDataSvc("EventDataSvc")]


from Configurables import PythiaInterface
Expand Down Expand Up @@ -46,9 +44,8 @@
ApplicationMgr().TopAlg += [delphesalg]


from Configurables import PodioOutput
out = PodioOutput("out", filename = "output_k4SimDelphes_pythia.root")
out.outputCommands = ["keep *"]
ApplicationMgr().TopAlg += [out]
iosvc = IOSvc()
iosvc.Output = "output_k4SimDelphes_pythia.root"
iosvc.outputCommands = ["keep *"]


Loading