File indexing completed on 2024-04-06 12:24:29
0001 import FWCore.ParameterSet.Config as cms
0002 from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask
0003
0004 process = cms.Process("PATtest")
0005
0006
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0009
0010
0011
0012 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True),
0013 SkipEvent = cms.untracked.vstring('ProductNotFound'))
0014
0015
0016 process.source = cms.Source("PoolSource",
0017 fileNames = cms.untracked.vstring(),
0018
0019 )
0020
0021
0022
0023
0024
0025 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0026
0027
0028 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0029 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0030 from Configuration.AlCa.GlobalTag import GlobalTag
0031 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0032 process.load("Configuration.StandardSequences.MagneticField_cff")
0033
0034
0035 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning
0036 process.out = cms.OutputModule("PoolOutputModule",
0037 fileName = cms.untracked.string('patTuple.root'),
0038
0039
0040
0041
0042 outputCommands = cms.untracked.vstring('drop *', *patEventContentNoCleaning )
0043 )
0044
0045 patAlgosToolsTask = getPatAlgosToolsTask(process)
0046 process.outpath = cms.EndPath(process.out, patAlgosToolsTask)
0047
0048
0049 from PhysicsTools.PatAlgos.tools.jetTools import updateJetCollection
0050
0051 updateJetCollection(
0052 process,
0053 jetSource = cms.InputTag('slimmedJetsAK8'),
0054 pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
0055 svSource = cms.InputTag('slimmedSecondaryVertices'),
0056 rParam = 0.8,
0057 jetCorrections = ('AK8PFchs', cms.vstring(['L2Relative', 'L3Absolute']), 'None'),
0058 btagDiscriminators = [
0059 'pfBoostedDoubleSecondaryVertexAK8BJetTags',
0060 'pfMassIndependentDeepDoubleBvLJetTags:probQCD',
0061 'pfMassIndependentDeepDoubleBvLJetTags:probHbb',
0062 'pfMassIndependentDeepDoubleCvLJetTags:probQCD',
0063 'pfMassIndependentDeepDoubleCvLJetTags:probHcc',
0064 'pfMassIndependentDeepDoubleCvBJetTags:probHbb',
0065 'pfMassIndependentDeepDoubleCvBJetTags:probHcc',
0066 'pfMassIndependentDeepDoubleBvLV2JetTags:probQCD',
0067 'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
0068 'pfMassIndependentDeepDoubleCvLV2JetTags:probQCD',
0069 'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
0070 'pfMassIndependentDeepDoubleCvBV2JetTags:probHbb',
0071 'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc',
0072
0073 ]
0074 )
0075
0076
0077 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarPileUpMINIAODSIM
0078
0079 process.source.fileNames = filesRelValTTbarPileUpMINIAODSIM
0080 process.source.fileNames = cms.untracked.vstring(
0081
0082
0083
0084 'file:72164088-CB67-E811-9D0D-008CFA197AC4.root',
0085
0086 )
0087
0088
0089 from Configuration.EventContent.EventContent_cff import MINIAODSIMEventContent
0090 process.out.outputCommands.append('keep *_slimmedJetsAK8*_*_*')
0091 process.out.outputCommands.append('keep *_offlineSlimmedPrimaryVertices*_*_*')
0092 process.out.outputCommands.append('keep *_slimmedSecondaryVertices*_*_*')
0093 process.out.outputCommands.append('keep *_selectedPatJets*_*_*')
0094 process.out.outputCommands.append('keep *_selectedUpdatedPatJets*_*_*')
0095 process.out.outputCommands.append('keep *_pfBoostedDoubleSVAK8TagInfos*_*_*')
0096 process.out.outputCommands.append('keep *_pfDeepDoubleXTagInfos*_*_*')
0097 process.out.outputCommands.append('keep *_updatedPatJets*_*_*')
0098
0099 process.out.fileName = 'output_test_DDX.root'
0100
0101
0102
0103