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
2 changes: 1 addition & 1 deletion Examples/options/export_detector_gdml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from Gaudi.Configuration import *

from Configurables import ApplicationMgr
from k4FWCore import ApplicationMgr
app = ApplicationMgr()
app.TopAlg = []
app.EvtSel = 'NONE'
Expand Down
15 changes: 7 additions & 8 deletions Examples/options/geant_fastsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
from GaudiKernel import SystemOfUnits as units
from GaudiKernel import PhysicalConstants as constants

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc = ['RndmGenSvc']

from Configurables import FCCDataSvc
## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]


Expand Down Expand Up @@ -126,9 +127,7 @@
ApplicationMgr().TopAlg += [hist]


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

18 changes: 9 additions & 9 deletions Examples/options/geant_fastsim_tklayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

from Gaudi.Configuration import *

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc += ['RndmGenSvc']

# Data service
from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")

podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

from Configurables import MomentumRangeParticleGun
Expand Down Expand Up @@ -112,10 +114,8 @@
THistSvc().AutoFlush = True
ApplicationMgr().TopAlg += hist

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput()
out.filename = "out_geant_fastsim_tklayout.root"
out.outputCommands = ["keep *"]
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.Output = "out_geant_fastsim_tklayout.root"
iosvc.outputCommands = ["keep *"]

17 changes: 8 additions & 9 deletions Examples/options/geant_fullsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
from GaudiKernel import SystemOfUnits as units
from GaudiKernel import PhysicalConstants as constants

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc = ['RndmGenSvc']

from Configurables import FCCDataSvc
## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]


Expand Down Expand Up @@ -77,10 +78,8 @@
geantsim.eventProvider.GenParticles.Path = "allGenParticles"
ApplicationMgr().TopAlg += [geantsim]

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput()
out.outputCommands = ["keep *"]
out.filename = "out_geant_fullsim.root"
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.Output = "out_geant_fullsim.root"
iosvc.outputCommands = ["keep *"]

19 changes: 9 additions & 10 deletions Examples/options/geant_fullsim_fccee_cld_hepevt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
from GaudiKernel import SystemOfUnits as units
from GaudiKernel import PhysicalConstants as constants

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import FCCDataSvc

## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

# from Configurables import HepMCReader
Expand Down Expand Up @@ -127,12 +129,9 @@
geantsim.eventProvider.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [geantsim]

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput("out")
out.filename = "out_geant_fullsim_fccee_cld_hepevt.root"
out.OutputLevel = DEBUG
out.outputCommands = ["keep *"]
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.Output = "out_geant_fullsim_fccee_cld_hepevt.root"
iosvc.outputCommands = ["keep *"]


19 changes: 9 additions & 10 deletions Examples/options/geant_fullsim_fccee_cld_pgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
from GaudiKernel import SystemOfUnits as units
from GaudiKernel import PhysicalConstants as constants

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import FCCDataSvc

## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

from Configurables import MomentumRangeParticleGun
Expand Down Expand Up @@ -143,11 +145,8 @@
geantsim.eventProvider.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [geantsim]

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput("out")
out.filename = "out_geant_fullsim_fccee_cld_pgun.root"
out.OutputLevel = DEBUG
out.outputCommands = ["keep *"]
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.Output = "out_geant_fullsim_fccee_cld_pgun.root"
iosvc.outputCommands = ["keep *"]

15 changes: 7 additions & 8 deletions Examples/options/geant_fullsim_fccee_idea_hepevt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
from Gaudi.Configuration import *
import GaudiKernel.SystemOfUnits as units

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = "NONE"
ApplicationMgr().EvtMax = 100
ApplicationMgr().OutputLevel = INFO


from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

# from Configurables import HepMCReader
Expand Down Expand Up @@ -100,9 +101,7 @@
geantsim.eventProvider.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [geantsim]

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

15 changes: 7 additions & 8 deletions Examples/options/geant_fullsim_fccee_idea_pgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
from Gaudi.Configuration import *
import GaudiKernel.SystemOfUnits as units

from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = "NONE"
ApplicationMgr().EvtMax = 100
ApplicationMgr().OutputLevel = INFO


from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

# DD4hep geometry service
Expand Down Expand Up @@ -106,9 +107,7 @@
geantsim.eventProvider = pgun
ApplicationMgr().TopAlg += [geantsim]

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

19 changes: 8 additions & 11 deletions Examples/options/geant_fullsim_fccee_lar_pgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
from GaudiKernel import PhysicalConstants as constants
from GaudiKernel.SystemOfUnits import MeV, GeV, tesla

from Configurables import ApplicationMgr
from Configurables import MetadataSvc, EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().StopOnSignal = True
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import MetadataSvc
ApplicationMgr().ExtSvc += [MetadataSvc()]

from Configurables import FCCDataSvc

## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

from Configurables import MomentumRangeParticleGun
Expand Down Expand Up @@ -256,12 +257,9 @@


################ Output
from Configurables import PodioOutput
out = PodioOutput("out")
out.outputCommands = ["keep *", "drop ECalBarrelHits", "drop HCal*", "drop ECalBarrelCellsStep*", "drop ECalBarrelPositionedHits", "drop emptyCaloCells", "drop CaloClusterCells"]
import uuid
out.filename = "output_fullCalo_SimAndDigi.root"
ApplicationMgr().TopAlg += [out]
iosvc = IOSvc()
iosvc.outputCommands = ["keep *", "drop ECalBarrelHits", "drop HCal*", "drop ECalBarrelCellsStep*", "drop ECalBarrelPositionedHits", "drop emptyCaloCells", "drop CaloClusterCells"]
iosvc.Output = "output_fullCalo_SimAndDigi.root"

#CPU information
from Configurables import AuditorSvc, ChronoAuditor
Expand All @@ -275,5 +273,4 @@
resegmentEcalBarrel.AuditExecute = True
createEcalBarrelCells.AuditExecute = True
createHcalBarrelCells.AuditExecute = True
out.AuditExecute = True
# ApplicationMgr().ExtSvc += [audsvc]
18 changes: 9 additions & 9 deletions Examples/options/geant_fullsim_fcchh_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
from k4_workflow_blocks.fccsw.detector_fcc_hh_main import *


from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import FCCDataSvc

## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]


Expand All @@ -45,10 +47,8 @@
geantsim.eventProvider.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [geantsim]

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput()
out.outputCommands = ["keep *"]
out.filename = "out_geant_fullsim_fcchh_main.root"
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.Output = "out_geant_fullsim_fcchh_main.root"
iosvc.outputCommands = ["keep *"]

18 changes: 9 additions & 9 deletions Examples/options/geant_fullsim_fcchh_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@
from k4_workflow_blocks.fccsw.detector_fcc_hh_tracker import *


from Configurables import ApplicationMgr
from Configurables import EventDataSvc
from k4FWCore import ApplicationMgr, IOSvc

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 2
ApplicationMgr().OutputLevel = INFO
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import FCCDataSvc

## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = EventDataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]


Expand Down Expand Up @@ -61,10 +63,8 @@
geantsim.eventProvider.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [geantsim]

# PODIO algorithm
from Configurables import PodioOutput
out = PodioOutput()
out.outputCommands = ["keep *"]
out.filename = "out_geant_fullsim_fcchh_tracker.root"
ApplicationMgr().TopAlg += [out]
# PODIO output
iosvc = IOSvc()
iosvc.outputCommands = ["keep *"]
iosvc.Output = "out_geant_fullsim_fcchh_tracker.root"

Loading
Loading