CMS 3D CMS Logo

hpsPFTauDiscriminationByAMuonRejectionSimple_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMuonRejection3
4 
5 hpsPFTauDiscriminationByLooseMuonRejectionSimple = hpsPFTauDiscriminationByMuonRejection3.clone(
6  PFTauProducer=cms.InputTag("hpsPFTauProducer"),
7  HoPMin=cms.double(0.1), #use smaller value than with AOD as raw energy is used
8  doCaloMuonVeto=cms.bool(False), #do not use it until tuned
9  srcPatMuons=cms.InputTag("slimmedMuons"),
10  maxNumberOfSTAMuons=cms.int32(-1),
11  maxNumberOfRPCMuons=cms.int32(-1),
12  maxNumberOfMatches = hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions[0].maxNumberOfMatches,
13  maxNumberOfHitsLast2Stations = hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions[0].maxNumberOfHitsLast2Stations
14  )
15 
16 hpsPFTauDiscriminationByLooseMuonRejectionSimple.__dict__['_TypedParameterizable__type'] = "PFRecoTauDiscriminationAgainstMuonSimple"
17 
18 for attr in ['IDWPdefinitions', 'srcMuons']:
19  delattr(hpsPFTauDiscriminationByLooseMuonRejectionSimple, attr)
20 
21 
22 hpsPFTauDiscriminationByTightMuonRejectionSimple = hpsPFTauDiscriminationByLooseMuonRejectionSimple.clone(
23  maxNumberOfHitsLast2Stations=hpsPFTauDiscriminationByMuonRejection3.IDWPdefinitions[1].maxNumberOfHitsLast2Stations
24 )
HPSPFTaus_cff