File indexing completed on 2024-04-06 12:10:20
0001
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003
0004
0005 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0006 patAlgosToolsTask.add(process.patCandidatesTask)
0007
0008 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0009 patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0010
0011 process.Tracer = cms.Service("Tracer")
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 process.patConversions = cms.EDProducer("PATConversionProducer",
0033
0034
0035 electronSource = cms.InputTag("selectedPatElectrons")
0036
0037 )
0038 patAlgosToolsTask.add(process.patConversions)
0039
0040 process.mvaTrigNoIPPAT = cms.EDProducer("ElectronPATIdMVAProducer",
0041 verbose = cms.untracked.bool(True),
0042 electronTag = cms.InputTag('selectedPatElectrons'),
0043 method = cms.string("BDT"),
0044 Rho = cms.InputTag("kt6PFJets", "rho"),
0045 mvaWeightFile = cms.vstring(
0046 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat1.weights.xml",
0047 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat2.weights.xml",
0048 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat3.weights.xml",
0049 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat4.weights.xml",
0050 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat5.weights.xml",
0051 "EgammaAnalysis/ElectronTools/data/Electrons_BDTG_TrigNoIPV0_2012_Cat6.weights.xml",
0052 ),
0053 Trig = cms.bool(True),
0054 NoIP = cms.bool(True),
0055 )
0056 patAlgosToolsTask.add(process.mvaTrigNoIPPAT)
0057
0058 process.out.outputCommands.append( 'keep *_patConversions_*_*' )
0059 process.out.outputCommands.append( 'keep *_mvaTrigNoIPPAT_*_*' )
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
0071 process.source.fileNames = filesRelValProdTTbarAODSIM
0072
0073 process.maxEvents.input = 100
0074
0075
0076
0077 process.out.fileName = 'patToPat_electronId.root'
0078
0079