test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
tkAlTrackRefitSequence_cff.py
Go to the documentation of this file.
2 
3 #### Configuration of the track handling modules as in Alignment/OfflineValidation
4 
6 refittedTracks = TrackRefitter.clone(src = cms.InputTag("generalTracks"))
7 
8 # try to reproduce Alignment/OfflineValidation
9 
11 TrackerTrackHitFilter.src = 'refittedTracks'
12 TrackerTrackHitFilter.useTrajectories= True # this is needed only if you require some selections; but it will work even if you don't ask for them
13 TrackerTrackHitFilter.minimumHits = 8
14 TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
15 TrackerTrackHitFilter.detsToIgnore = []
16 TrackerTrackHitFilter.replaceWithInactiveHits = True
17 TrackerTrackHitFilter.stripAllInvalidHits = False
18 TrackerTrackHitFilter.rejectBadStoNHits = True
19 TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 14.0")
20 TrackerTrackHitFilter.rejectLowAngleHits= True
21 TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
22 TrackerTrackHitFilter.usePixelQualityFlag= True
23 
24 ################################################################################################
25 #TRACK PRODUCER
26 #now we give the TrackCandidate coming out of the TrackerTrackHitFilter to the track producer
27 ################################################################################################
29 HitFilteredTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff.ctfWithMaterialTracks.clone(
30  src = 'TrackerTrackHitFilter',
31  #TrajectoryInEvent = True
32  TTRHBuilder = "WithAngleAndTemplate"
33 )
34 
36 AlignmentTrackSelector.src ='HitFilteredTracks'
37 AlignmentTrackSelector.applyBasicCuts = True
38 AlignmentTrackSelector.ptMin = 1.5
39 AlignmentTrackSelector.pMin = 0.
40 AlignmentTrackSelector.nHitMin =10
41 AlignmentTrackSelector.nHitMin2D = 2
42 AlignmentTrackSelector.chi2nMax = 100.
43 
44 refittedATSTracks = TrackRefitter.clone(src = cms.InputTag("AlignmentTrackSelector"))
45 
46 seqTrackRefitting = cms.Sequence( refittedTracks
47  + TrackerTrackHitFilter
48  + HitFilteredTracks
49  + AlignmentTrackSelector
50  + refittedATSTracks
51  )
dont throw on unknown path names