Skip to content

Commit

Permalink
Merge pull request #24223 from mtosi/fixTRKDQM_dz0p1
Browse files Browse the repository at this point in the history
fix tracks collection from PV in TRK DQM [backport #23775]
  • Loading branch information
cmsbuild committed Aug 17, 2018
2 parents fd83052 + 6489468 commit 3d7b998
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions DQM/TrackingMonitorSource/python/TrackCollections2monitor_cff.py
Expand Up @@ -233,47 +233,47 @@
from CommonTools.RecoAlgos.TrackWithVertexSelector_cfi import *

trackAssociated2pvSelector = trackWithVertexSelector.clone()
trackAssociated2pvSelector.trackWithVertexSelectorParams = cms.PSet(
# the track collection
src = cms.InputTag('generalTracks'),
# kinematic cuts (pT in GeV)
etaMin = cms.double(0.0),
etaMax = cms.double(5.0),
ptMin = cms.double(0.0),
ptMax = cms.double(100000.0),
# impact parameter cut (in cm)
d0Max = cms.double(999.),
dzMax = cms.double(999.),
# quality cuts (valid hits, normalized chi2)
normalizedChi2 = cms.double(999999.),
numberOfValidHits = cms.uint32(0),
numberOfLostHits = cms.uint32(999), ## at most 999 lost hits
numberOfValidPixelHits = cms.uint32(0), ## at least <n> hits in the pixels
ptErrorCut = cms.double(9999999.), ## [pTError/pT]*max(1,normChi2) <= ptErrorCut
quality = cms.string("highPurity"), # quality cut as defined in reco::TrackBase
# compatibility with a vertex ?
useVtx = cms.bool(True),
vertexTag = cms.InputTag('trackingDQMgoodOfflinePrimaryVertices'),
timesTag = cms.InputTag(''),
timeResosTag = cms.InputTag(''),
nVertices = cms.uint32(1), ## how many vertices to look at before dropping the track
vtxFallback = cms.bool(True), ## falback to beam spot if there are no vertices
# uses vtx=(0,0,0) with deltaZeta=15.9, deltaRho = 0.2
zetaVtx = cms.double(0.1),
# rhoVtx = cms.double(0.2), ## tags used by b-tagging folks
rhoVtx = cms.double(999.), ## tags used by b-tagging folks
nSigmaDtVertex = cms.double(0),
# should _not_ be used for the TrackWithVertexRefSelector
copyExtras = cms.untracked.bool(False), ## copies also extras and rechits on RECO
copyTrajectories = cms.untracked.bool(False), # don't set this to true on AOD!
)
# the track collection
trackAssociated2pvSelector.src = cms.InputTag('generalTracks')
# kinematic cuts (pT in GeV)
trackAssociated2pvSelector.etaMin = cms.double(0.0)
trackAssociated2pvSelector.etaMax = cms.double(5.0)
trackAssociated2pvSelector.ptMin = cms.double(0.0)
trackAssociated2pvSelector.ptMax = cms.double(100000.0)
# impact parameter cut (in cm)
trackAssociated2pvSelector.d0Max = cms.double(999.)
trackAssociated2pvSelector.dzMax = cms.double(999.)
# quality cuts (valid hits, normalized chi2)
trackAssociated2pvSelector.normalizedChi2 = cms.double(999999.)
trackAssociated2pvSelector.numberOfValidHits = cms.uint32(0)
trackAssociated2pvSelector.numberOfLostHits = cms.uint32(999) ## at most 999 lost hits
trackAssociated2pvSelector.numberOfValidPixelHits = cms.uint32(0) ## at least <n> hits in the pixels
trackAssociated2pvSelector.ptErrorCut = cms.double(9999999.) ## [pTError/pT]*max(1,normChi2) <= ptErrorCut
trackAssociated2pvSelector.quality = cms.string("highPurity") # quality cut as defined in reco::TrackBase
# compatibility with a vertex ?
trackAssociated2pvSelector.useVtx = cms.bool(True)
trackAssociated2pvSelector.vertexTag = cms.InputTag('trackingDQMgoodOfflinePrimaryVertices')
trackAssociated2pvSelector.timesTag = cms.InputTag('')
trackAssociated2pvSelector.timeResosTag = cms.InputTag('')
trackAssociated2pvSelector.nVertices = cms.uint32(1) ## how many vertices to look at before dropping the track
trackAssociated2pvSelector.vtxFallback = cms.bool(True) ## falback to beam spot if there are no vertices
# uses vtx=(0,0,0) with deltaZeta=15.9, deltaRho = 0.2
trackAssociated2pvSelector.zetaVtx = cms.double(999.)
#trackAssociated2pvSelector.rhoVtx = cms.double(0.2) ## tags used by b-tagging folks
trackAssociated2pvSelector.rhoVtx = cms.double(999.) ## tags used by b-tagging folks
trackAssociated2pvSelector.nSigmaDtVertex = cms.double(0)
# should _not_ be used for the TrackWithVertexRefSelector
trackAssociated2pvSelector.copyExtras = cms.untracked.bool(False) ## copies also extras and rechits on RECO
trackAssociated2pvSelector.copyTrajectories = cms.untracked.bool(False) # don't set this to true on AOD!

highPurityPV0p1 = trackAssociated2pvSelector.clone()
highPurityPV0p1.trackWithVertexSelectorParams.zetaVtx = cms.double(0.1)
highPurityPV0p1.zetaVtx = cms.double(0.1) # wrt PV
#highPurityPV0p1.dzMax = cms.double(0.1) # wrt BS

PV0p1 = highPurityPV0p1.clone()
PV0p1.quality = cms.string("") # quality cut as defined in reco::TrackBase

#sequenceName ['highPurityPV0p1'] = highPurityPV0p1
sequenceName ['highPurityPV0p1'] = highPurityPV0p1+PV0p1
allTrackProducer['highPurityPV0p1'] = 'PV0p1'
mainfolderName ['highPurityPV0p1'] = 'Tracking/TrackParameters/highPurityTracks/dzPV0p1'
Expand Down

0 comments on commit 3d7b998

Please sign in to comment.