CMS 3D CMS Logo

customizeHLTIter0ToMkFit.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import RecoTracker.MkFit.mkFitGeometryESProducer_cfi as mkFitGeometryESProducer_cfi
4 import RecoTracker.MkFit.mkFitSiPixelHitConverter_cfi as mkFitSiPixelHitConverter_cfi
5 import RecoTracker.MkFit.mkFitSiStripHitConverter_cfi as mkFitSiStripHitConverter_cfi
6 import RecoTracker.MkFit.mkFitEventOfHitsProducer_cfi as mkFitEventOfHitsProducer_cfi
7 import RecoTracker.MkFit.mkFitSeedConverter_cfi as mkFitSeedConverter_cfi
8 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi as mkFitIterationConfigESProducer_cfi
9 import RecoTracker.MkFit.mkFitProducer_cfi as mkFitProducer_cfi
10 import RecoTracker.MkFit.mkFitOutputConverter_cfi as mkFitOutputConverter_cfi
12 
14  # mkFit needs all clusters, so switch off the on-demand mode
15  process.hltSiStripRawToClustersFacility.onDemand = False
16 
17  process.hltSiStripRecHits = SiStripRecHitConverter_cfi.siStripMatchedRecHits.clone(
18  ClusterProducer = "hltSiStripRawToClustersFacility",
19  StripCPE = "hltESPStripCPEfromTrackAngle:hltESPStripCPEfromTrackAngle",
20  doMatching = False,
21  )
22 
23  # Use fourth hit if one is available
24  process.hltIter0PFLowPixelSeedsFromPixelTracks.includeFourthHit = cms.bool(True)
25 
26  process.hltMkFitGeometryESProducer = mkFitGeometryESProducer_cfi.mkFitGeometryESProducer.clone()
27 
28  process.hltIter0PFlowCkfTrackCandidatesMkFitSiPixelHits = mkFitSiPixelHitConverter_cfi.mkFitSiPixelHitConverter.clone(
29  hits = "hltSiPixelRecHits",
30  ttrhBuilder = ":hltESPTTRHBWithTrackAngle",
31  )
32  process.hltIter0PFlowCkfTrackCandidatesMkFitSiStripHits = mkFitSiStripHitConverter_cfi.mkFitSiStripHitConverter.clone(
33  rphiHits = "hltSiStripRecHits:rphiRecHit",
34  stereoHits = "hltSiStripRecHits:stereoRecHit",
35  ttrhBuilder = ":hltESPTTRHBWithTrackAngle",
36  minGoodStripCharge = dict(refToPSet_ = 'HLTSiStripClusterChargeCutLoose'),
37  )
38  process.hltIter0PFlowCkfTrackCandidatesMkFitEventOfHits = mkFitEventOfHitsProducer_cfi.mkFitEventOfHitsProducer.clone(
39  pixelHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiPixelHits",
40  stripHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiStripHits",
41  )
42  process.hltIter0PFlowCkfTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
43  seeds = "hltIter0PFLowPixelSeedsFromPixelTracks",
44  ttrhBuilder = ":hltESPTTRHBWithTrackAngle",
45  )
46  process.hltIter0PFlowTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
47  ComponentName = 'hltIter0PFlowTrackCandidatesMkFitConfig',
48  config = 'RecoTracker/MkFit/data/mkfit-phase1-initialStep.json',
49  )
50  process.hltIter0PFlowCkfTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
51  pixelHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiPixelHits",
52  stripHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiStripHits",
53  eventOfHits = "hltIter0PFlowCkfTrackCandidatesMkFitEventOfHits",
54  seeds = "hltIter0PFlowCkfTrackCandidatesMkFitSeeds",
55  config = ('', 'hltIter0PFlowTrackCandidatesMkFitConfig'),
56  minGoodStripCharge = dict(refToPSet_ = 'HLTSiStripClusterChargeCutLoose'),
57  )
58  process.hltIter0PFlowCkfTrackCandidates = mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
59  seeds = "hltIter0PFLowPixelSeedsFromPixelTracks",
60  mkFitEventOfHits = "hltIter0PFlowCkfTrackCandidatesMkFitEventOfHits",
61  mkFitPixelHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiPixelHits",
62  mkFitStripHits = "hltIter0PFlowCkfTrackCandidatesMkFitSiStripHits",
63  mkFitSeeds = "hltIter0PFlowCkfTrackCandidatesMkFitSeeds",
64  tracks = "hltIter0PFlowCkfTrackCandidatesMkFit",
65  ttrhBuilder = ":hltESPTTRHBWithTrackAngle",
66  propagatorAlong = ":PropagatorWithMaterialParabolicMf",
67  propagatorOpposite = ":PropagatorWithMaterialParabolicMfOpposite",
68  )
69 
70  process.HLTDoLocalStripSequence += process.hltSiStripRecHits
71  process.HLTIterativeTrackingIteration0.replace(process.hltIter0PFlowCkfTrackCandidates,
72  process.hltIter0PFlowCkfTrackCandidatesMkFitSiPixelHits +
73  process.hltIter0PFlowCkfTrackCandidatesMkFitSiStripHits +
74  process.hltIter0PFlowCkfTrackCandidatesMkFitEventOfHits +
75  process.hltIter0PFlowCkfTrackCandidatesMkFitSeeds +
76  process.hltIter0PFlowCkfTrackCandidatesMkFit +
77  process.hltIter0PFlowCkfTrackCandidates)
78 
79  return process
SiStripRecHitConverter_cfi
customizeHLTIter0ToMkFit.customizeHLTIter0ToMkFit
def customizeHLTIter0ToMkFit(process)
Definition: customizeHLTIter0ToMkFit.py:13