Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:48

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 #products from regular pp which does not fit the normal AOD
0056 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA]:
0057     e.toModify( RecoJetsAOD.outputCommands, 
0058                 func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
0059                 )
0060 for e in [pp_on_XeXe_2017, pp_on_AA]:
0061     e.toModify( RecoJetsAOD.outputCommands,
0062                 func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
0063                                                                    'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
0064                                                                    ])
0065                 )
0066 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
0067 pA_2016.toModify( RecoJetsAOD.outputCommands, 
0068                   func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*',
0069                                                                      'keep *_hiFJGridEmptyAreaCalculator_*_*',
0070                                                                      'keep *_hiFJRhoProducer_*_*'
0071                                                                      ])
0072                 )
0073 #HI-specific products: needed in AOD, propagate to more inclusive tiers as well
0074 peripheralPbPb.toModify( RecoJetsAOD.outputCommands, 
0075                          func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_pACentrality_*_*'])
0076                          )
0077 
0078 pp_on_AA.toModify( RecoJetsAOD.outputCommands, 
0079                         func=lambda outputCommands: outputCommands.extend(['keep *_hiCentrality_*_*',
0080                                                                            'keep *_hiFJRhoProducer_*_*',
0081                                                                            'keep *_akPu3PFJets_*_*',
0082                                                                            'keep *_akPu4PFJets_*_*',
0083                                                                            'keep *_kt4PFJetsForRho_*_*',
0084                                                                            'keep *_akCs4PFJets_*_*',
0085                                                                            'keep *_akPu4CaloJets_*_*',
0086                                                                            'drop *_caloTowers_*_*'
0087                                                                            ])
0088                         )
0089 #RECO content
0090 RecoJetsRECO = cms.PSet(
0091     outputCommands = cms.untracked.vstring('keep *_ak4CaloJets_*_*',
0092                                            'keep *_ak4PFJets_*_*',
0093                                            'keep *_ak4TrackJets_*_*',
0094                                            'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',         
0095                                            'keep *_towerMaker_*_*',
0096                                            'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
0097                        'keep *_ak5CastorJets_*_*',
0098                                            'keep *_ak7CastorJets_*_*',
0099                                            )
0100 )
0101 RecoJetsRECO.outputCommands.extend(RecoJetsAOD.outputCommands)
0102 
0103 RecoGenJetsRECO = cms.PSet(
0104     outputCommands = cms.untracked.vstring()
0105 )
0106 RecoGenJetsRECO.outputCommands.extend(RecoGenJetsAOD.outputCommands)
0107 #Full Event content 
0108 RecoJetsFEVT = cms.PSet(
0109     outputCommands = cms.untracked.vstring('keep recoCaloJets_*_*_*', 
0110                                            'keep recoPFJets_*_*_*',
0111                                            'keep recoTrackJets_*_*_*',
0112                                            'keep recoJPTJets_*_*_*',
0113                                            'keep recoBasicJets_*_*_*',
0114                                            'keep *_kt4JetTracksAssociatorAtVertex_*_*', 
0115                                            'keep *_kt4JetTracksAssociatorAtCaloFace_*_*', 
0116                                            'keep *_kt4JetExtender_*_*',
0117                                            'keep *_ak7JetTracksAssociatorAtVertex*_*_*', 
0118                                            'keep *_ak7JetTracksAssociatorAtCaloFace*_*_*', 
0119                                            'keep *_ak7JetExtender_*_*',
0120                                            #keep jet area variables for jet colls in RECO 
0121                                            'keep *_kt4CaloJets_*_*', 
0122                                            'keep *_kt6CaloJets_*_*',
0123                                            'keep *_ak5CaloJets_*_*',
0124                                            'keep *_ak7CaloJets_*_*',
0125                                            'keep *_kt4PFJets_*_*', 
0126                                            'keep *_kt6PFJets_*_*',
0127                                            'keep *_ak5PFJets_*_*',
0128                                            'keep *_ak7PFJets_*_*',
0129                                            'keep *_kt4TrackJets_*_*',
0130                                            'keep *_ca*Mass_*_*',
0131                                            'keep *_ak*Mass_*_*'
0132         )
0133 )
0134 RecoJetsFEVT.outputCommands.extend(RecoJetsRECO.outputCommands)
0135 
0136 RecoGenJetsFEVT = cms.PSet(
0137     outputCommands = cms.untracked.vstring('keep recoGenJets_ak*_*_*')
0138 )
0139 RecoGenJetsFEVT.outputCommands.extend(RecoGenJetsRECO.outputCommands)