CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customizeHLTIter0ToMkFit Namespace Reference

Functions

def customizeHLTIter0ToMkFit
 

Function Documentation

def customizeHLTIter0ToMkFit.customizeHLTIter0ToMkFit (   process)

Definition at line 13 of file customizeHLTIter0ToMkFit.py.

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