Skip to content
Snippets Groups Projects

necessary Db change and moved the output to AOD instead of HITS

Merged Miha Muskinja requested to merge mmuskinj/athena:master-ISF_ParSim-revived into master
2 files
+ 24
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -78,10 +78,6 @@ def getHITSStreamItemList():
if simFlags.RecordStepInfo.get_Value():
hitsItemList +=["ISF_FCS_Parametrization::FCS_StepInfoCollection#MergedEventSteps"]
## add xAOD::TrackParticles output collection Parametric Simulation
if simFlags.SimulationFlavour == "ParametricSimulation":
hitsItemList +=["xAOD::TrackParticleContainer#*",
"xAOD::TrackParticleAuxContainer#*"]
## Add cosmics and test beam configuration hit persistency if required cf. geom tag
layout = simFlags.SimLayout.get_Value()
if "tb" not in layout:
@@ -111,6 +107,16 @@ def getEVNTStreamItemList():
evntItemList += ["TrackRecordCollection#CosmicRecord"]
return evntItemList
def getAODStreamItemList():
AODItemList=[]
## EventInfo always written by default
AODItemList += ["EventInfo#*"]
## add xAOD::TrackParticles output collection Parametric Simulation
AODItemList += ["xAOD::TrackParticleContainer#*",
"xAOD::TrackParticleAuxContainer#*"]
## return the item list
return AODItemList
class ISF_HITSStream:
"""
Place to handle the persistency.
@@ -151,7 +157,19 @@ class ISF_HITSStream:
stream1.ItemList = getHITSStreamItemList()
## Make stream aware of aborted events
stream1.AcceptAlgs = [ISF_Flags.Simulator.KernelName()]
## xAOD Stream if ParametricSimulation
# TODO: name of the AOD file cannot be changed via Sim_tf because it
# does not have an --outputAODFile option
xAODStream = None
if simFlags.SimulationFlavour == "ParametricSimulation":
output_file = athenaCommonFlags.PoolAODOutput()
xAODStream = AthenaPoolOutputStream("StreamAOD", output_file, noTag=True)
xAODStream.ForceRead = True
xAODStream.ItemList = getAODStreamItemList()
## Make stream aware of aborted events
xAODStream.AcceptAlgs = [ISF_Flags.Simulator.KernelName()]
## StreamEVGEN: needed for cosmic simulations and cavern BG
## Separate stream of track record (TR) info -- it does not apply to the CTB simulations.
# TODO: Can this be merged into the cosmics sec above, or do the AthenaPool includes *need* to be in-between?
Loading