1 import FWCore.ParameterSet.Config
as cms
3 from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstMuonSimple_cfi
import pfRecoTauDiscriminationAgainstMuonSimple
6 IDWPdefinitionsSimple = cms.VPSet()
7 for wp
in hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions:
9 aWP.IDname = wp.IDname.value().
replace(
'MuonRejection3',
'MuonRejectionSimple')
10 del aWP.discriminatorOption
11 aWP.maxNumberOfRPCMuons = cms.int32(-1)
12 aWP.maxNumberOfSTAMuons = cms.int32(-1)
13 IDWPdefinitionsSimple.append(aWP)
15 hpsPFTauDiscriminationByMuonRejectionSimple = pfRecoTauDiscriminationAgainstMuonSimple.clone(
16 PFTauProducer = hpsPFTauDiscriminationByMuonRejection3.PFTauProducer,
17 Prediscriminants = hpsPFTauDiscriminationByMuonRejection3.Prediscriminants,
18 IDWPdefinitions = IDWPdefinitionsSimple,
19 dRmuonMatch = hpsPFTauDiscriminationByMuonRejection3.dRmuonMatch,
20 dRmuonMatchLimitedToJetArea = hpsPFTauDiscriminationByMuonRejection3.dRmuonMatchLimitedToJetArea,
21 minPtMatchedMuon = hpsPFTauDiscriminationByMuonRejection3.minPtMatchedMuon,
22 maskMatchesDT = hpsPFTauDiscriminationByMuonRejection3.maskMatchesDT,
23 maskMatchesCSC = hpsPFTauDiscriminationByMuonRejection3.maskMatchesCSC,
24 maskMatchesRPC = hpsPFTauDiscriminationByMuonRejection3.maskMatchesRPC,
25 maskHitsDT = hpsPFTauDiscriminationByMuonRejection3.maskHitsDT,
26 maskHitsCSC = hpsPFTauDiscriminationByMuonRejection3.maskHitsCSC,
27 maskHitsRPC = hpsPFTauDiscriminationByMuonRejection3.maskHitsRPC