CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
singlePfTauSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
8 #Need this next one to put the transientTrackRecord in and avoid crashes
10 
12 looseShrikingConePFTaus = copy.deepcopy(shrinkingConePFTauProducer)
13 looseShrikingConePFTaus.LeadPFCand_minPt = cms.double(3.0)
14 
15 thePFTauDiscByLeadTrkFinding = copy.deepcopy(pfRecoTauDiscriminationByLeadingTrackFinding)
16 thePFTauDiscByLeadTrkFinding.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
17 
18 thePFTauDiscByIsolation = copy.deepcopy(pfRecoTauDiscriminationByIsolation)
19 thePFTauDiscByIsolation.PFTauProducer = cms.InputTag('looseShrikingConePFTaus')
20 thePFTauDiscByIsolation.Prediscriminants = cms.PSet(
21  BooleanOperator = cms.string("and"),
22  leadTrack = cms.PSet(
23  Producer = cms.InputTag('thePFTauDiscByLeadTrkFinding'),
24  cut = cms.double(0.5)
25  )
26 )
27 
28 PFTausSelected = cms.EDFilter("PFTauSelector",
29  src = cms.InputTag("looseShrikingConePFTaus"),
30  discriminators = cms.VPSet(
31  cms.PSet( discriminator=cms.InputTag("thePFTauDiscByIsolation"),
32  selectionCut=cms.double(0.5)
33  )
34  ),
35  cut = cms.string('et > 15. && abs(eta) < 2.5')
36 )
37 
38 PFTauSkimmed = cms.EDFilter("CandViewCountFilter",
39  src = cms.InputTag('PFTausSelected'),
40  minNumber = cms.uint32(1)
41 )
42 
43 singlePfTauPt15QualitySeq = cms.Sequence(
44  looseShrikingConePFTaus+thePFTauDiscByLeadTrkFinding+thePFTauDiscByIsolation+PFTausSelected+PFTauSkimmed
45  )