Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-02 22:32:03

0001 import FWCore.ParameterSet.Config as cms
0002 import copy
0003 
0004 from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstMuonSimple_cfi import pfRecoTauDiscriminationAgainstMuonSimple
0005 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMuonRejection3
0006 
0007 IDWPdefinitionsSimple = cms.VPSet()
0008 for wp in hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions:
0009     aWP = copy.deepcopy(wp)
0010     aWP.IDname = wp.IDname.value().replace('MuonRejection3','MuonRejectionSimple')
0011     del aWP.discriminatorOption
0012     aWP.maxNumberOfRPCMuons = cms.int32(-1)
0013     aWP.maxNumberOfSTAMuons = cms.int32(-1)
0014     IDWPdefinitionsSimple.append(aWP)
0015 
0016 hpsPFTauDiscriminationByMuonRejectionSimple = pfRecoTauDiscriminationAgainstMuonSimple.clone(
0017     PFTauProducer = hpsPFTauDiscriminationByMuonRejection3.PFTauProducer,
0018     Prediscriminants = hpsPFTauDiscriminationByMuonRejection3.Prediscriminants,
0019     IDWPdefinitions = IDWPdefinitionsSimple,
0020     dRmuonMatch = hpsPFTauDiscriminationByMuonRejection3.dRmuonMatch,
0021     dRmuonMatchLimitedToJetArea = hpsPFTauDiscriminationByMuonRejection3.dRmuonMatchLimitedToJetArea,
0022     minPtMatchedMuon = hpsPFTauDiscriminationByMuonRejection3.minPtMatchedMuon,
0023     maskMatchesDT = hpsPFTauDiscriminationByMuonRejection3.maskMatchesDT,
0024     maskMatchesCSC = hpsPFTauDiscriminationByMuonRejection3.maskMatchesCSC,
0025     maskMatchesRPC = hpsPFTauDiscriminationByMuonRejection3.maskMatchesRPC,
0026     maskHitsDT = hpsPFTauDiscriminationByMuonRejection3.maskHitsDT,
0027     maskHitsCSC = hpsPFTauDiscriminationByMuonRejection3.maskHitsCSC,
0028     maskHitsRPC = hpsPFTauDiscriminationByMuonRejection3.maskHitsRPC
0029 )