CMS 3D CMS Logo

cosmicDC_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # seeding
4 import RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
6 hitCollectorForCosmicDCSeeds = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
7  ComponentName = 'hitCollectorForCosmicDCSeeds',
8  MaxChi2 = 100.0,
9  nSigma = 4.,
10  MaxDisplacement = 100,
11  MaxSagitta = -1.0,
12  MinimalTolerance = 0.5,
13  appendToDataLabel = '',
14 )
15 cosmicDCSeeds = RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi.outInSeedsFromStandaloneMuons.clone(
16  src = 'muonsFromCosmics',
17  cut = 'p > 3 && abs(eta)<1.6 && phi<0',
18  hitCollector = 'hitCollectorForCosmicDCSeeds',
19  fromVertex = False,
20  maxEtaForTOB = 2.5,
21  minEtaForTEC = 0.0,
22 )
23 
24 # Ckf pattern
26 Chi2MeasurementEstimatorForCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.Chi2MeasurementEstimatorForP5.clone(
27  ComponentName = 'Chi2MeasurementEstimatorForCDC',
28  MaxDisplacement = 500,
29 )
30 
31 ckfBaseTrajectoryFilterCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.ckfBaseTrajectoryFilterP5.clone(
32  maxLostHits = 10,
33  maxConsecLostHits = 10,
34 )
35 
36 GroupedCkfTrajectoryBuilderCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.GroupedCkfTrajectoryBuilderP5.clone(
37  maxCand = 3,
38  estimator = 'Chi2MeasurementEstimatorForCDC',
39  trajectoryFilter = dict(refToPSet_ = 'ckfBaseTrajectoryFilterCDC'),
40 )
41 
43 cosmicDCCkfTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff.ckfTrackCandidatesP5.clone(
44  src = 'cosmicDCSeeds',
45  TrajectoryBuilderPSet = dict(refToPSet_ = 'GroupedCkfTrajectoryBuilderCDC'),
46 )
47 
48 # Track producer
50 cosmicDCTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff.ctfWithMaterialTracksCosmics.clone(
51  src = 'cosmicDCCkfTrackCandidates',
52 )
53 
54 # Final Sequence
55 cosmicDCTracksSeqTask = cms.Task( cosmicDCSeeds , cosmicDCCkfTrackCandidates , cosmicDCTracks )
56 cosmicDCTracksSeq = cms.Sequence(cosmicDCTracksSeqTask)