Skip to content
Snippets Groups Projects
Commit e26881be authored by John Chapman's avatar John Chapman
Browse files

Set ExtraOutputs from Geant4 in Geant4ToolCfg rather than Kernel_GenericSimulatorMTCfg

parent 0f362ce6
No related branches found
No related tags found
No related merge requests found
...@@ -68,14 +68,6 @@ def Kernel_GenericSimulatorMTCfg(flags, name="ISF_Kernel_GenericSimulatorMT", ** ...@@ -68,14 +68,6 @@ def Kernel_GenericSimulatorMTCfg(flags, name="ISF_Kernel_GenericSimulatorMT", **
kwargs.setdefault("Cardinality", flags.Concurrency.NumThreads) kwargs.setdefault("Cardinality", flags.Concurrency.NumThreads)
kwargs.setdefault("InputEvgenCollection", "BeamTruthEvent") kwargs.setdefault("InputEvgenCollection", "BeamTruthEvent")
kwargs.setdefault("OutputTruthCollection", "TruthEvent") kwargs.setdefault("OutputTruthCollection", "TruthEvent")
from SimulationConfig.SimEnums import CalibrationRun
if flags.Sim.CalibrationRun in [CalibrationRun.LAr, CalibrationRun.LArTile, CalibrationRun.LArTileZDC]:
# Needed to ensure that DeadMaterialCalibrationHitsMerger is scheduled correctly.
kwargs.setdefault("ExtraOutputs", [
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitActive_DEAD' ),
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitDeadMaterial_DEAD' ),
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitInactive_DEAD' )
])
if flags.Sim.ISF.Simulator.isQuasiStable(): if flags.Sim.ISF.Simulator.isQuasiStable():
if "QuasiStablePatcher" not in kwargs: if "QuasiStablePatcher" not in kwargs:
......
...@@ -53,6 +53,26 @@ def Geant4ToolCfg(flags, name="ISF_Geant4Tool", **kwargs): ...@@ -53,6 +53,26 @@ def Geant4ToolCfg(flags, name="ISF_Geant4Tool", **kwargs):
# PhysicsListSvc # PhysicsListSvc
kwargs.setdefault("PhysicsListSvc", acc.getPrimaryAndMerge(PhysicsListSvcCfg(flags)).name) kwargs.setdefault("PhysicsListSvc", acc.getPrimaryAndMerge(PhysicsListSvcCfg(flags)).name)
extraOutputs = []
from SimulationConfig.SimEnums import CalibrationRun
if flags.Sim.CalibrationRun in [CalibrationRun.LAr, CalibrationRun.LArTile, CalibrationRun.LArTileZDC]:
# Needed to ensure that DeadMaterialCalibrationHitsMerger is scheduled correctly.
extraOutputs += [
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitActive_DEAD' ),
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitDeadMaterial_DEAD' ),
( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitInactive_DEAD' )
]
from SimulationConfig.SimEnums import LArParameterization
if (flags.Sim.ISFRun or flags.Sim.LArParameterization is LArParameterization.FastCaloSim) and flags.Sim.ISF.HITSMergingRequired.get('CALO', True):
extraOutputs += [
( 'TileHitVector' , 'StoreGateSvc+TileHitVec_G4' ),
( 'TileHitVector' , 'StoreGateSvc+MBTSHits_G4' ),
( 'LArHitContainer' , 'StoreGateSvc+LArHitHEC_G4' ),
( 'LArHitContainer' , 'StoreGateSvc+LArHitFCAL_G4' ),
( 'LArHitContainer' , 'StoreGateSvc+LArHitEMEC_G4' ),
( 'LArHitContainer' , 'StoreGateSvc+LArHitEMB_G4' )
]
kwargs.setdefault("ExtraOutputs", extraOutputs)
# Workaround to keep other simulation flavours working while we migrate everything to be AthenaMT-compatible. # Workaround to keep other simulation flavours working while we migrate everything to be AthenaMT-compatible.
from SimulationConfig.SimEnums import SimulationFlavour from SimulationConfig.SimEnums import SimulationFlavour
if flags.Sim.ISF.Simulator in [SimulationFlavour.ATLFAST3F_ACTSMT, SimulationFlavour.FullG4MT, SimulationFlavour.FullG4MT_QS, SimulationFlavour.PassBackG4MT, SimulationFlavour.ATLFAST3MT, SimulationFlavour.ATLFAST3MT_QS]: if flags.Sim.ISF.Simulator in [SimulationFlavour.ATLFAST3F_ACTSMT, SimulationFlavour.FullG4MT, SimulationFlavour.FullG4MT_QS, SimulationFlavour.PassBackG4MT, SimulationFlavour.ATLFAST3MT, SimulationFlavour.ATLFAST3MT_QS]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment