diff --git a/Configuration/EventContent/python/EventContentCosmics_cff.py b/Configuration/EventContent/python/EventContentCosmics_cff.py index 21ec8b2549f2b..710fed95176ab 100644 --- a/Configuration/EventContent/python/EventContentCosmics_cff.py +++ b/Configuration/EventContent/python/EventContentCosmics_cff.py @@ -132,6 +132,7 @@ AODEventContent.outputCommands.extend(EvtScalersAOD.outputCommands) AODEventContent.outputCommands.extend(OnlineMetaDataContent.outputCommands) AODEventContent.outputCommands.extend(TcdsEventContent.outputCommands) +AODEventContent.outputCommands.extend(L1TriggerAOD.outputCommands) # # # RAWSIM Data Tier definition diff --git a/L1Trigger/Configuration/python/L1Trigger_EventContent_Cosmics_cff.py b/L1Trigger/Configuration/python/L1Trigger_EventContent_Cosmics_cff.py index 6fe234378a1f5..87c3817f3c45e 100644 --- a/L1Trigger/Configuration/python/L1Trigger_EventContent_Cosmics_cff.py +++ b/L1Trigger/Configuration/python/L1Trigger_EventContent_Cosmics_cff.py @@ -84,3 +84,17 @@ 'keep LumiSummary_lumiProducer_*_*' ) ) + +def _appendStage2Digis(obj): + l1Stage2Digis = [ + 'keep *_gtStage2Digis_*_*', + 'keep *_gmtStage2Digis_*_*', + 'keep *_caloStage2Digis_*_*', + ] + obj.outputCommands += l1Stage2Digis + +# adding them to all places where we had l1extraParticles +from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger +stage2L1Trigger.toModify(L1TriggerRECO, func=_appendStage2Digis) +stage2L1Trigger.toModify(L1TriggerAOD, func=_appendStage2Digis) +stage2L1Trigger.toModify(L1TriggerFEVTDEBUG, func=_appendStage2Digis)