File indexing completed on 2024-04-06 12:23:59
0001
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003
0004
0005 process.load("PhysicsTools.PatAlgos.patSequences_cff")
0006
0007
0008
0009
0010 from PhysicsTools.PatAlgos.tools.pfTools import *
0011
0012
0013
0014
0015 postfix = "PFlow"
0016 usePF2PAT(process,runPF2PAT=True, jetAlgo='AK4', runOnMC=True, postfix=postfix)
0017
0018
0019 getattr(process, "patElectrons"+postfix).embedGenMatch = True
0020 getattr(process, "patMuons"+postfix).embedGenMatch = True
0021
0022
0023 getattr(process, "patElectrons"+postfix).userData.userFunctions.append( 'trackIso * caloIso' )
0024 getattr(process, "patMuons"+postfix).userData.userFunctions.append( 'trackIso * caloIso' )
0025 process.patElectrons.userData.userFunctions.append( 'trackIso * caloIso' )
0026 process.patMuons.userData.userFunctions.append( 'trackIso * caloIso' )
0027
0028 getattr(process, "patElectrons"+postfix).userData.userFunctionLabels.append( 'trackIso * caloIso' )
0029 getattr(process, "patMuons"+postfix).userData.userFunctionLabels.append( 'trackIso * caloIso' )
0030 process.patElectrons.userData.userFunctionLabels.append( 'trackIso * caloIso' )
0031 process.patMuons.userData.userFunctionLabels.append( 'trackIso * caloIso' )
0032
0033
0034 process.p = cms.Path(
0035 getattr(process,"patPF2PATSequence"+postfix)
0036 )
0037 if not postfix=="":
0038 process.p += process.patDefaultSequence
0039
0040
0041
0042
0043
0044 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning
0045
0046
0047 process.out.outputCommands = cms.untracked.vstring('drop *',
0048 *patEventContentNoCleaning )
0049
0050
0051
0052
0053
0054
0055
0056
0057 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
0058 process.source.fileNames = filesRelValProdTTbarAODSIM
0059
0060 process.maxEvents.input = 10
0061
0062
0063
0064 process.out.fileName = 'patTuple_userData.root'
0065
0066