CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DPGAnalysis/Skims/python/singlePfTauSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 import copy
00003 
00004 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackFinding_cfi import *
00005 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import *
00006 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolationUsingLeadingPion_cfi import *
00007 from RecoTauTag.RecoTau.TauDiscriminatorTools import *
00008 #Need this next one to put the transientTrackRecord in and avoid crashes 
00009 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
00010 
00011 from RecoTauTag.Configuration.ShrinkingConePFTaus_cff import *
00012 looseShrikingConePFTaus = copy.deepcopy(shrinkingConePFTauProducer)
00013 looseShrikingConePFTaus.LeadPFCand_minPt = cms.double(3.0)
00014 
00015 thePFTauDiscByLeadTrkFinding = copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackFinding)
00016 thePFTauDiscByLeadTrkFinding.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
00017 
00018 thePFTauDiscByIsolation = copy.deepcopy(pfRecoTauDiscriminationByIsolation)
00019 thePFTauDiscByIsolation.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
00020 thePFTauDiscByIsolation.Prediscriminants = cms.PSet(
00021       BooleanOperator = cms.string("and"),
00022       leadTrack = cms.PSet(
00023       Producer = cms.InputTag('thePFTauDiscByLeadTrkFinding'),
00024       cut = cms.double(0.5)
00025       )
00026 )
00027 
00028 PFTausSelected = cms.EDFilter("PFTauSelector",
00029     src = cms.InputTag("looseShrikingConePFTaus"),
00030     discriminators = cms.VPSet(
00031         cms.PSet( discriminator=cms.InputTag("thePFTauDiscByIsolation"),
00032                    selectionCut=cms.double(0.5)
00033         )
00034     ),
00035     cut = cms.string('et > 15. && abs(eta) < 2.5') 
00036 )
00037 
00038 PFTauSkimmed = cms.EDFilter("CandViewCountFilter",
00039   src = cms.InputTag('PFTausSelected'),
00040   minNumber = cms.uint32(1)
00041 )
00042 
00043 singlePfTauPt15QualitySeq = cms.Sequence(
00044     looseShrikingConePFTaus+thePFTauDiscByLeadTrkFinding+thePFTauDiscByIsolation+PFTausSelected+PFTauSkimmed
00045     )