CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTrackerP5_cff.py
Go to the documentation of this file.
2 
3 #
4 # Tracking configuration file fragment for P5 cosmic running
5 #
7 # TTRHBuilders
9 # COSMIC TRACK FINDER
12 # Final Track Selector for CosmicTF
14 
15 #chi2 set to 40!!
16 # CTF
20 combinedP5SeedsForCTF = RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cfi.globalCombinedSeeds.clone()
21 combinedP5SeedsForCTF.seedCollections = cms.VInputTag(
22  cms.InputTag('combinatorialcosmicseedfinderP5'),
23  cms.InputTag('simpleCosmicBONSeeds'),
24 )
25 #backward compatibility 2.2/3.1
26 combinedP5SeedsForCTF.PairCollection = cms.InputTag('combinatorialcosmicseedfinderP5')
27 combinedP5SeedsForCTF.TripletCollection = cms.InputTag('simpleCosmicBONSeeds')
28 
30 ckfTrackCandidatesP5.src = cms.InputTag('combinedP5SeedsForCTF')
31 #backward compatibility 2.2/3.1
32 #ckfTrackCandidatesP5.SeedProducer = 'combinedP5SeedsForCTF'
33 
34 #import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi
36 # Final Track Selector for CTF
38 
39 # ROACH SEARCH
44 # Final Track Selector for RS
46 
47 # TRACK INFO
48 #include "AnalysisAlgos/TrackInfoProducer/data/TrackInfoProducerP5.cff"
49 
50 ckfTrackCandidatesP5LHCNavigation = ckfTrackCandidatesP5.clone(NavigationSchool = cms.string('SimpleNavigationSchool'))
51 ctfWithMaterialTracksP5LHCNavigation = ctfWithMaterialTracksCosmics.clone(src = cms.InputTag("ckfTrackCandidatesP5LHCNavigation"))
52 
53 ctftracksP5 = cms.Sequence(combinatorialcosmicseedfinderP5*simpleCosmicBONSeeds*combinedP5SeedsForCTF*
54  ckfTrackCandidatesP5*ctfWithMaterialTracksCosmics*ctfWithMaterialTracksP5+
55  ckfTrackCandidatesP5LHCNavigation*ctfWithMaterialTracksP5LHCNavigation)
56 
57 rstracksP5 = cms.Sequence(roadSearchSeedsP5*roadSearchCloudsP5*rsTrackCandidatesP5*rsWithMaterialTracksCosmics*rsWithMaterialTracksP5)
58 
60 cosmicTrackSplitter.tjTkAssociationMapTag = 'cosmictrackfinderCosmics'
61 cosmicTrackSplitter.tracks = 'cosmictrackfinderCosmics'
62 splittedTracksP5 = cosmictrackfinderCosmics.clone(src = cms.InputTag("cosmicTrackSplitter"))
63 
64 cosmictracksP5 = cms.Sequence(cosmicseedfinderP5*cosmicCandidateFinderP5*cosmictrackfinderCosmics*cosmictrackfinderP5*cosmicTrackSplitter*splittedTracksP5)
65 
66 
67 #Top/Bottom tracks NEW
69 trackerCosmics_TopBot = cms.Sequence((trackerlocalrecoTop*tracksP5Top)+(trackerlocalrecoBottom*tracksP5Bottom))
70 
71 #dEdX reconstruction
73 #sequence tracksP5 = {cosmictracksP5, ctftracksP5, rstracksP5, trackinfoP5}
74 tracksP5 = cms.Sequence(cosmictracksP5*ctftracksP5*rstracksP5*trackerCosmics_TopBot*doAllCosmicdEdXEstimators)
75 tracksP5_wodEdX = tracksP5.copy()
76 tracksP5_wodEdX.remove(doAllCosmicdEdXEstimators)
77 
78 # explicitely switch on hit splitting
79 ckfTrackCandidatesP5.useHitsSplitting = True
80 rsTrackCandidatesP5.SplitMatchedHits = True
81 
82 
83 
84 # REGIONAL RECONSTRUCTION
85 # Seeds
87 regionalTrackerCosmicSeeds = RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmicsRegionalReconstruction_cff.regionalCosmicTrackerSeeds.clone(
88  RegionInJetsCheckPSet = cms.PSet( # verify if the region is built inside a jet
89  doJetsExclusionCheck = cms.bool( False )
90  )
91 )
92 # Ckf
94 regionalCosmicTrackerCkfTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
95  src = cms.InputTag( "regionalTrackerCosmicSeeds"),
96  NavigationSchool = cms.string('CosmicNavigationSchool'),
97  #TrajectoryBuilder = cms.string( "CkfTrajectoryBuilder" ),
98  TrajectoryBuilder = cms.string( "GroupedCkfTrajectoryBuilder" ),
99 )
100 
101 # Track producer
103 regionalCosmicTrackerTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
104  src = cms.InputTag( "regionalCosmicTrackerCkfTrackCandidates"),
105  NavigationSchool = 'CosmicNavigationSchool',
106  AlgorithmName = 'cosmics',
107  alias = 'regionalCosmicTracks'
108 )
109 # Final Sequence
110 regionalTrackerCosmic = cms.Sequence( regionalTrackerCosmicSeeds * regionalCosmicTrackerCkfTrackCandidates * regionalCosmicTrackerTracks )