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