CMS 3D CMS Logo

TTRHBuilderWithTemplate_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTracker.TransientTrackingRecHit.tkTransientTrackingRecHitBuilderESProducer_cfi import tkTransientTrackingRecHitBuilderESProducer
4 TTRHBuilderAngleAndTemplate = tkTransientTrackingRecHitBuilderESProducer.clone(StripCPE = 'StripCPEfromTrackAngle',
5  Phase2StripCPE = '',
6  ComponentName = 'WithAngleAndTemplate',
7  PixelCPE = 'PixelCPETemplateReco',
8  Matcher = 'StandardMatcher',
9  ComputeCoarseLocalPositionFromDisk = False)
10 
11 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
12 trackingPhase2PU140.toModify(TTRHBuilderAngleAndTemplate,
13  Phase2StripCPE = 'Phase2StripCPE',
14  StripCPE = 'FakeStripCPE')
15 
16 # uncomment these two lines to turn on Cluster Repair CPE
17 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
18 phase1Pixel.toModify(TTRHBuilderAngleAndTemplate, PixelCPE = 'PixelCPEClusterRepair')
19 
20 TTRHBuilderAngleAndTemplateWithoutProbQ = TTRHBuilderAngleAndTemplate.clone(ComponentName = 'WithAngleAndTemplateWithoutProbQ')
21 phase1Pixel.toModify(TTRHBuilderAngleAndTemplateWithoutProbQ, PixelCPE = 'PixelCPEClusterRepairWithoutProbQ')
22 
23 # Turn off template reco for phase 2 (when not supported)
24 from Configuration.ProcessModifiers.PixelCPEGeneric_cff import PixelCPEGeneric
25 PixelCPEGeneric.toModify(TTRHBuilderAngleAndTemplate, PixelCPE = 'PixelCPEGeneric')
26 PixelCPEGeneric.toModify(TTRHBuilderAngleAndTemplateWithoutProbQ, PixelCPE = 'PixelCPEGeneric')