Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002 from Validation.RecoTau.RecoTauValidation_cfi import *
00003 import copy
00004
00005 from PhysicsTools.HepMCCandAlgos.genParticles_cfi import *
00006 from RecoJets.Configuration.RecoGenJets_cff import *
00007 from RecoJets.Configuration.GenJetParticles_cff import *
00008
00009 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
00010 selectElectrons = cms.EDProducer(
00011 "GenParticlePruner",
00012 src = cms.InputTag("genParticles"),
00013 select = cms.vstring(
00014 "drop * ",
00015 "keep++ pdgId = 13",
00016 "keep++ pdgId = -13",
00017 )
00018 )
00019
00020
00021 selectElectronsForGenJets = copy.deepcopy(genParticlesForJets)
00022
00023 selectElectronsForGenJets.src = cms.InputTag("selectElectrons")
00024
00025 objectTypeSelectedTauValDenominator = copy.deepcopy(iterativeCone5GenJets)
00026 objectTypeSelectedTauValDenominator.src = cms.InputTag("selectElectronsForGenJets")
00027
00028 produceDenominator = cms.Sequence(
00029 selectElectrons
00030 +selectElectronsForGenJets
00031 +objectTypeSelectedTauValDenominator
00032 +kinematicSelectedTauValDenominator
00033 )
00034
00035 runTauValidationBatchMode = cms.Sequence(
00036 produceDenominator
00037 +TauValNumeratorAndDenominator
00038 )
00039
00040 runTauValidation = cms.Sequence(
00041 runTauValidationBatchMode
00042 +TauEfficiencies
00043 )
00044