Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:16

0001 import FWCore.ParameterSet.Config as cms
0002 import copy
0003 
0004 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByLeadingTrackFinding_cfi import *
0005 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import *
0006 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolationUsingLeadingPion_cfi import *
0007 from RecoTauTag.RecoTau.TauDiscriminatorTools import *
0008 #Need this next one to put the transientTrackRecord in and avoid crashes 
0009 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
0010 
0011 from RecoTauTag.Configuration.ShrinkingConePFTaus_cff import *
0012 looseShrikingConePFTaus = copy.deepcopy(shrinkingConePFTauProducer)
0013 looseShrikingConePFTaus.LeadPFCand_minPt = cms.double(3.0)
0014 
0015 thePFTauDiscByLeadTrkFinding = copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackFinding)
0016 thePFTauDiscByLeadTrkFinding.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
0017 
0018 thePFTauDiscByIsolation = copy.deepcopy(pfRecoTauDiscriminationByIsolation)
0019 thePFTauDiscByIsolation.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
0020 thePFTauDiscByIsolation.Prediscriminants = cms.PSet(
0021       BooleanOperator = cms.string("and"),
0022       leadTrack = cms.PSet(
0023       Producer = cms.InputTag('thePFTauDiscByLeadTrkFinding'),
0024       cut = cms.double(0.5)
0025       )
0026 )
0027 
0028 PFTausSelected = cms.EDFilter("PFTauSelector",
0029     src = cms.InputTag("looseShrikingConePFTaus"),
0030     discriminators = cms.VPSet(
0031     cms.PSet( discriminator=cms.InputTag("thePFTauDiscByIsolation"),
0032            selectionCut=cms.double(0.5)
0033     )
0034     ),
0035     cut = cms.string('et > 15. && abs(eta) < 2.5') 
0036 )
0037 
0038 PFTauSkimmed = cms.EDFilter("CandViewCountFilter",
0039   src = cms.InputTag('PFTausSelected'),
0040   minNumber = cms.uint32(1)
0041 )
0042 
0043 singlePfTauPt15QualitySeq = cms.Sequence(
0044     looseShrikingConePFTaus+thePFTauDiscByLeadTrkFinding+thePFTauDiscByIsolation+PFTausSelected+PFTauSkimmed
0045     )