CMS 3D CMS Logo

hpsPFTauDiscriminationByMuonRejectionSimple_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstMuonSimple_cfi import pfRecoTauDiscriminationAgainstMuonSimple
5 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMuonRejection3
6 
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)
15 
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
29 )
def replace(string, replacements)