File indexing completed on 2024-08-27 22:59:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def PFTauMiniAODPrimaryVertexProducer(**kwargs):
0004 mod = cms.EDProducer('PFTauMiniAODPrimaryVertexProducer',
0005 discriminators = cms.required.VPSet,
0006 qualityCuts = cms.PSet(
0007 signalQualityCuts = cms.PSet(
0008 minTrackPt = cms.double(0.5),
0009 maxTrackChi2 = cms.double(100),
0010 maxTransverseImpactParameter = cms.double(0.1),
0011 maxDeltaZ = cms.double(0.4),
0012 maxDeltaZToLeadTrack = cms.double(-1),
0013 minTrackVertexWeight = cms.double(-1),
0014 minTrackPixelHits = cms.uint32(0),
0015 minTrackHits = cms.uint32(3),
0016 minGammaEt = cms.double(1),
0017 useTracksInsteadOfPFHadrons = cms.optional.bool,
0018 minNeutralHadronEt = cms.double(30)
0019 ),
0020 isolationQualityCuts = cms.PSet(
0021 minTrackPt = cms.double(1),
0022 maxTrackChi2 = cms.double(100),
0023 maxTransverseImpactParameter = cms.double(0.03),
0024 maxDeltaZ = cms.double(0.2),
0025 maxDeltaZToLeadTrack = cms.double(-1),
0026 minTrackVertexWeight = cms.double(-1),
0027 minTrackPixelHits = cms.uint32(0),
0028 minTrackHits = cms.uint32(8),
0029 minGammaEt = cms.double(1.5),
0030 useTracksInsteadOfPFHadrons = cms.optional.bool
0031 ),
0032 vxAssocQualityCuts = cms.PSet(
0033 minTrackPt = cms.double(0.5),
0034 maxTrackChi2 = cms.double(100),
0035 maxTransverseImpactParameter = cms.double(0.1),
0036 minTrackVertexWeight = cms.double(-1),
0037 minTrackPixelHits = cms.uint32(0),
0038 minTrackHits = cms.uint32(3),
0039 minGammaEt = cms.double(1),
0040 useTracksInsteadOfPFHadrons = cms.optional.bool
0041 ),
0042 primaryVertexSrc = cms.InputTag('offlinePrimaryVertices'),
0043 pvFindingAlgo = cms.string('closestInDeltaZ'),
0044 vertexTrackFiltering = cms.bool(False),
0045 recoverLeadingTrk = cms.bool(False),
0046 leadingTrkOrPFCandOption = cms.string('leadPFCand')
0047 ),
0048 cut = cms.string('pt > 18.0 & abs(eta)<2.3'),
0049 Algorithm = cms.int32(0),
0050 RemoveElectronTracks = cms.bool(False),
0051 RemoveMuonTracks = cms.bool(False),
0052 useBeamSpot = cms.bool(True),
0053 useSelectedTaus = cms.bool(False),
0054 beamSpot = cms.InputTag('offlineBeamSpot'),
0055 ElectronTag = cms.InputTag('MyElectrons'),
0056 PFTauTag = cms.InputTag('hpsPFTauProducer'),
0057 MuonTag = cms.InputTag('MyMuons'),
0058 PVTag = cms.InputTag('offlinePrimaryVertices'),
0059 lostCandidatesTag = cms.InputTag('lostTracks'),
0060 packedCandidatesTag = cms.InputTag('packedPFCandidates'),
0061 mightGet = cms.optional.untracked.vstring
0062 )
0063 for k,v in kwargs.items():
0064 setattr(mod, k, v)
0065 return mod