CMS 3D CMS Logo

hpsPFTauDiscriminationByMuonRejectionSimple_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstMuonSimple_cfi import pfRecoTauDiscriminationAgainstMuonSimple
4 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMuonRejection3
5 
6 IDWPdefinitionsSimple = cms.VPSet()
7 for wp in hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions:
8  aWP = wp.copy()
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)
14 
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
28 )
HPSPFTaus_cff
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444