Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-20 03:45:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def PFRecoTauDiscriminationAgainstMuonSimple(*args, **kwargs):
0004   mod = cms.EDProducer('PFRecoTauDiscriminationAgainstMuonSimple',
0005     PFTauProducer = cms.InputTag('pfRecoTauProducer'),
0006     Prediscriminants = cms.PSet(
0007       BooleanOperator = cms.string('and'),
0008       leadTrack = cms.PSet(
0009         cut = cms.required.double,
0010         Producer = cms.required.InputTag
0011       )
0012     ),
0013     IDWPdefinitions = cms.VPSet(
0014       cms.PSet(
0015         HoPMin = cms.double(0.2),
0016         IDname = cms.string('ByLooseMuonRejectionSimple'),
0017         doCaloMuonVeto = cms.bool(True),
0018         maxNumberOfHitsLast2Stations = cms.int32(-1),
0019         maxNumberOfMatches = cms.int32(1),
0020         maxNumberOfRPCMuons = cms.int32(-1),
0021         maxNumberOfSTAMuons = cms.int32(-1)
0022       ),
0023       template = cms.PSetTemplate(
0024         IDname = cms.required.string,
0025         HoPMin = cms.required.double,
0026         maxNumberOfMatches = cms.required.int32,
0027         doCaloMuonVeto = cms.required.bool,
0028         maxNumberOfHitsLast2Stations = cms.required.int32,
0029         maxNumberOfSTAMuons = cms.required.int32,
0030         maxNumberOfRPCMuons = cms.required.int32
0031       )
0032     ),
0033     IDdefinitions = cms.VPSet(
0034     ),
0035     srcPatMuons = cms.InputTag('slimmedMuons'),
0036     dRmuonMatch = cms.double(0.3),
0037     dRmuonMatchLimitedToJetArea = cms.bool(False),
0038     minPtMatchedMuon = cms.double(5),
0039     maskMatchesDT = cms.vint32(
0040       0,
0041       0,
0042       0,
0043       0
0044     ),
0045     maskMatchesCSC = cms.vint32(
0046       1,
0047       0,
0048       0,
0049       0
0050     ),
0051     maskMatchesRPC = cms.vint32(
0052       0,
0053       0,
0054       0,
0055       0
0056     ),
0057     maskHitsDT = cms.vint32(
0058       0,
0059       0,
0060       0,
0061       0
0062     ),
0063     maskHitsCSC = cms.vint32(
0064       0,
0065       0,
0066       0,
0067       0
0068     ),
0069     maskHitsRPC = cms.vint32(
0070       0,
0071       0,
0072       0,
0073       0
0074     ),
0075     verbosity = cms.int32(0),
0076     mightGet = cms.optional.untracked.vstring
0077   )
0078   for a in args:
0079     mod.update_(a)
0080   mod.update_(kwargs)
0081   return mod