Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #AOD content
0004 RecoJetsAOD = cms.PSet(
0005     outputCommands = cms.untracked.vstring('keep recoCaloJets_ak4CaloJets_*_*',
0006                                            'keep *_ak4CaloJets_rho_*',
0007                                            'keep *_ak4CaloJets_sigma_*',
0008                                            'keep *_ak4PFJetsCHS_*_*',
0009                                            'keep floatedmValueMap_puppi_*_*',
0010                                            'keep *_ak4PFJetsPuppi_*_*',
0011                                            'keep *_ak8PFJetsPuppi_*_*',
0012                                            'keep *_ak8PFJetsPuppiSoftDrop_*_*',
0013                                            'keep recoPFJets_ak4PFJets_*_*',
0014                                            'keep *_ak4PFJets_rho_*',
0015                                            'keep *_ak4PFJets_sigma_*',
0016                                            'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',    
0017                                            'keep *_caloTowers_*_*', 
0018                                            'keep *_CastorTowerReco_*_*',                                           
0019                                            'keep *_ak4JetTracksAssociatorAtVertex_*_*',
0020                                            'keep *_ak4JetTracksAssociatorAtVertexPF_*_*', 
0021                                            'keep *_ak4JetTracksAssociatorExplicit_*_*',
0022                                            'keep *_ak4JetExtender_*_*', 
0023                                            'keep *_ak4JetID_*_*',
0024                                            'keep recoBasicJets_ak5CastorJets_*_*',
0025                                            'keep *_ak5CastorJets_rho_*',
0026                                            'keep *_ak5CastorJets_sigma_*',
0027                                            'keep *_ak5CastorJetID_*_*',
0028                                            'keep recoBasicJets_ak7CastorJets_*_*',
0029                                            'keep *_ak7CastorJets_rho_*',
0030                                            'keep *_ak7CastorJets_sigma_*',
0031                                            'keep *_ak7CastorJetID_*_*',
0032                                            'keep *_fixedGridRhoAll_*_*',
0033                                            'keep *_fixedGridRhoFastjetAll_*_*',
0034                                            'keep *_fixedGridRhoFastjetAllTmp_*_*',
0035                                            'keep *_fixedGridRhoFastjetCentral_*_*',
0036                                            'keep *_fixedGridRhoFastjetAllCalo_*_*',
0037                                            'keep *_fixedGridRhoFastjetCentralCalo_*_*',
0038                                            'keep *_fixedGridRhoFastjetCentralChargedPileUp_*_*',
0039                                            'keep *_fixedGridRhoFastjetCentralNeutral_*_*',
0040                                            'keep *_ak8PFJetsPuppiSoftDropMass_*_*'
0041                                            )
0042 )
0043 RecoGenJetsAOD = cms.PSet(
0044     outputCommands = cms.untracked.vstring('keep *_ak4GenJets_*_*',
0045                                            'keep *_ak8GenJets_*_*',
0046                                            'keep *_ak4GenJetsNoNu_*_*',
0047                                            'keep *_ak8GenJetsNoNu_*_*',
0048                                            'keep *_genParticle_*_*'
0049                                            )
0050 )
0051 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0052 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
0053 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0054 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0055 from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
0056 from Configuration.Eras.Modifier_ppRef_2024_cff import ppRef_2024
0057 #products from regular pp which does not fit the normal AOD
0058 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA]:
0059     e.toModify( RecoJetsAOD.outputCommands, 
0060                 func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
0061                 )
0062 for e in [pp_on_XeXe_2017, pp_on_AA, run3_upc]:
0063     e.toModify( RecoJetsAOD.outputCommands,
0064                 func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
0065                                                                    'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
0066                                                                    ])
0067                 )
0068 ppRef_2024.toModify( RecoJetsAOD.outputCommands,
0069                      func=lambda outputCommands: outputCommands.extend(['keep recoClusterCompatibility*_hiClusterCompatibility_*_*'])
0070                      )
0071 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
0072 pA_2016.toModify( RecoJetsAOD.outputCommands, 
0073                   func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
0074                                                                      'keep *_hiFJGridEmptyAreaCalculator_*_*',
0075                                                                      'keep *_hiFJRhoProducer_*_*'
0076                                                                      ])
0077                 )
0078 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
0079 peripheralPbPb.toModify( RecoJetsAOD.outputCommands, 
0080                          func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
0081                          )
0082 
0083 pp_on_AA.toModify( RecoJetsAOD.outputCommands, 
0084                         func=lambda outputCommands: outputCommands.extend(['keep *_hiCentrality_*_*',
0085                                                                            'keep *_hiFJRhoProducer_*_*',
0086                                                                            'keep *_akPu3PFJets_*_*',
0087                                                                            'keep *_akPu4PFJets_*_*',
0088                                                                            'keep *_kt4PFJetsForRho_*_*',
0089                                                                            'keep *_akCs4PFJets_*_*',
0090                                                                            'keep *_akPu4CaloJets_*_*',
0091                                                                            'drop *_caloTowers_*_*'
0092                                                                            ])
0093                         )
0094 #RECO content
0095 RecoJetsRECO = cms.PSet(
0096     outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
0097                                            'keep *_ak4PFJets_*_*',
0098                                            'keep *_ak4TrackJets_*_*',
0099                                            'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',         
0100                                            'keep *_towerMaker_*_*',
0101                                            'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
0102                        'keep *_ak5CastorJets_*_*',
0103                                            'keep *_ak7CastorJets_*_*',
0104                                            )
0105 )
0106 RecoJetsRECO.outputCommands.extend(RecoJetsAOD.outputCommands)
0107 
0108 RecoGenJetsRECO = cms.PSet(
0109     outputCommands = cms.untracked.vstring()
0110 )
0111 RecoGenJetsRECO.outputCommands.extend(RecoGenJetsAOD.outputCommands)
0112 #Full Event content 
0113 RecoJetsFEVT = cms.PSet(
0114     outputCommands = cms.untracked.vstring('keep recoCaloJets_*_*_*', 
0115                                            'keep recoPFJets_*_*_*',
0116                                            'keep recoTrackJets_*_*_*',
0117                                            'keep recoJPTJets_*_*_*',
0118                                            'keep recoBasicJets_*_*_*',
0119                                            'keep *_kt4JetTracksAssociatorAtVertex_*_*', 
0120                                            'keep *_kt4JetTracksAssociatorAtCaloFace_*_*', 
0121                                            'keep *_kt4JetExtender_*_*',
0122                                            'keep *_ak7JetTracksAssociatorAtVertex*_*_*', 
0123                                            'keep *_ak7JetTracksAssociatorAtCaloFace*_*_*', 
0124                                            'keep *_ak7JetExtender_*_*',
0125                                            #keep jet area variables for jet colls in RECO 
0126                                            'keep *_kt4CaloJets_*_*', 
0127                                            'keep *_kt6CaloJets_*_*',
0128                                            'keep *_ak5CaloJets_*_*',
0129                                            'keep *_ak7CaloJets_*_*',
0130                                            'keep *_kt4PFJets_*_*', 
0131                                            'keep *_kt6PFJets_*_*',
0132                                            'keep *_ak5PFJets_*_*',
0133                                            'keep *_ak7PFJets_*_*',
0134                                            'keep *_kt4TrackJets_*_*',
0135                                            'keep *_ca*Mass_*_*',
0136                                            'keep *_ak*Mass_*_*'
0137         )
0138 )
0139 RecoJetsFEVT.outputCommands.extend(RecoJetsRECO.outputCommands)
0140 
0141 RecoGenJetsFEVT = cms.PSet(
0142     outputCommands = cms.untracked.vstring('keep recoGenJets_ak*_*_*')
0143 )
0144 RecoGenJetsFEVT.outputCommands.extend(RecoGenJetsRECO.outputCommands)