Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-11 23:32:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # seeding
0004 import RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
0005 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi 
0006 hitCollectorForCosmicDCSeeds = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
0007     ComponentName     = 'hitCollectorForCosmicDCSeeds',
0008     MaxChi2           = 100.0, ## was 30 ## TO BE TUNED
0009     nSigma            = 4.,    ## was 3  ## TO BE TUNED 
0010     MaxDisplacement   = 100,
0011     MaxSagitta        = -1.0,
0012     MinimalTolerance  = 0.5,
0013     appendToDataLabel = '',
0014 )
0015 cosmicDCSeeds = RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi.outInSeedsFromStandaloneMuons.clone(
0016     src          = 'muonsFromCosmics',
0017     cut          = 'p > 3 && abs(eta)<1.6 && phi<0',
0018     hitCollector = 'hitCollectorForCosmicDCSeeds',
0019     fromVertex   = False,
0020     maxEtaForTOB = 2.5,
0021     minEtaForTEC = 0.0,
0022 )
0023 
0024 # Ckf pattern
0025 import RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff
0026 Chi2MeasurementEstimatorForCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.Chi2MeasurementEstimatorForP5.clone(
0027     ComponentName   = 'Chi2MeasurementEstimatorForCDC',
0028     MaxDisplacement = 500,
0029 )
0030 
0031 ckfBaseTrajectoryFilterCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.ckfBaseTrajectoryFilterP5.clone(
0032     maxLostHits       = 10,
0033     maxConsecLostHits = 10,
0034 )
0035 
0036 GroupedCkfTrajectoryBuilderCDC = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderP5_cff.GroupedCkfTrajectoryBuilderP5.clone(
0037     maxCand   = 3,
0038     estimator = 'Chi2MeasurementEstimatorForCDC',
0039     trajectoryFilter = dict(refToPSet_ = 'ckfBaseTrajectoryFilterCDC'),
0040 )
0041 
0042 import RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff
0043 cosmicDCCkfTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff.ckfTrackCandidatesP5.clone(
0044     src = 'cosmicDCSeeds',
0045     TrajectoryBuilderPSet = dict(refToPSet_ = 'GroupedCkfTrajectoryBuilderCDC'),
0046 )
0047 
0048 # Track producer
0049 import RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff
0050 cosmicDCTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff.ctfWithMaterialTracksCosmics.clone(
0051     src = 'cosmicDCCkfTrackCandidates',
0052 )
0053 
0054 # Final Sequence
0055 cosmicDCTracksSeqTask = cms.Task( cosmicDCSeeds , cosmicDCCkfTrackCandidates , cosmicDCTracks )
0056 cosmicDCTracksSeq = cms.Sequence(cosmicDCTracksSeqTask)