CMS 3D CMS Logo

isolatedTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from TrackingTools.TrackAssociator.default_cfi import TrackAssociatorParameterBlock
3 
4 tkAssocParamBlock = TrackAssociatorParameterBlock.clone()
5 tkAssocParamBlock.TrackAssociatorParameters.useMuon = cms.bool(False)
6 tkAssocParamBlock.TrackAssociatorParameters.useCalo = cms.bool(False)
7 tkAssocParamBlock.TrackAssociatorParameters.useHO = cms.bool(False)
8 tkAssocParamBlock.TrackAssociatorParameters.usePreshower = cms.bool(False)
9 tkAssocParamBlock.TrackAssociatorParameters.EERecHitCollectionLabel = cms.InputTag("reducedEcalRecHitsEE")
10 tkAssocParamBlock.TrackAssociatorParameters.EBRecHitCollectionLabel = cms.InputTag("reducedEcalRecHitsEB")
11 tkAssocParamBlock.TrackAssociatorParameters.HBHERecHitCollectionLabel = cms.InputTag("reducedHcalRecHits","hbhereco")
12 tkAssocParamBlock.TrackAssociatorParameters.HORecHitCollectionLabel = cms.InputTag("reducedHcalRecHits","horeco")
13 
14 isolatedTracks = cms.EDProducer("PATIsolatedTrackProducer",
15  tkAssocParamBlock,
16  packedPFCandidates = cms.InputTag("packedPFCandidates"),
17  lostTracks = cms.InputTag("lostTracks"),
18  generalTracks = cms.InputTag("generalTracks"),
19  primaryVertices = cms.InputTag("offlinePrimaryVertices"),
20  caloJets = cms.InputTag("ak4CaloJets"),
21  dEdxDataStrip = cms.InputTag("dedxHarmonic2"),
22  dEdxDataPixel = cms.InputTag("dedxPixelHarmonic2"),
23  dEdxHitInfo = cms.InputTag("dedxHitInfo"),
24  usePrecomputedDeDxStrip = cms.bool(True), # if these are set to True, will get estimated DeDx from DeDxData branches
25  usePrecomputedDeDxPixel = cms.bool(True), # if set to False, will manually compute using dEdxHitInfo
26  pT_cut = cms.double(5.0), # save tracks above this pt
27  pT_cut_noIso = cms.double(20.0), # for tracks with at least this pT, don't apply any iso cut
28  pfIsolation_DR = cms.double(0.3),
29  pfIsolation_DZ = cms.double(0.1),
30  miniIsoParams = cms.vdouble(0.05, 0.2, 10.0), # (minDR, maxDR, kT)
31  # dR for miniiso is max(minDR, min(maxDR, kT/pT))
32  absIso_cut = cms.double(5.0),
33  relIso_cut = cms.double(0.2),
34  miniRelIso_cut = cms.double(0.2),
35 
36  caloJet_DR = cms.double(0.3),
37 
38 )