Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #------------------------------------ DT ------------------------------------------------
0004 # 1D RecHits
0005 from RecoLocalMuon.DTRecHit.dt1DRecHits_LinearDriftFromDB_CosmicData_cfi import *
0006 # 2D Segments
0007 from RecoLocalMuon.DTSegment.dt2DSegments_MTPatternReco2D_LinearDriftFromDB_CosmicData_cfi import *
0008 # 4D Segments
0009 from RecoLocalMuon.DTSegment.dt4DSegments_MTPatternReco4D_LinearDriftFromDB_CosmicData_cfi import *
0010 # T0 seg correction
0011 from RecoLocalMuon.DTSegment.dt4DSegments_ApplyT0Correction_cfi import *
0012 
0013 #------------------------------------ CSC -----------------------------------------------
0014 # 2D RecHit
0015 from RecoLocalMuon.CSCRecHitD.cscRecHitD_cfi import *
0016 # Segments
0017 from RecoLocalMuon.CSCSegment.cscSegments_cfi import *
0018 from CalibMuon.CSCCalibration.CSCChannelMapper_cfi import *
0019 from CalibMuon.CSCCalibration.CSCIndexer_cfi import *
0020 
0021 #------------------------------------ RPC -----------------------------------------------
0022 # 1D RecHits
0023 from RecoLocalMuon.RPCRecHit.rpcRecHits_cfi import *
0024 
0025 #----------------------------------------------------------------------------------------
0026 # DT sequence for the standard reconstruction chain 
0027 # The reconstruction of the 2D segments are not required for the 4D segments reconstruction, they are used
0028 # only for debuging purpose and for specific studies
0029 dtlocalrecoTask = cms.Task(dt1DRecHits,dt4DSegments)
0030 dtlocalreco = cms.Sequence(dtlocalrecoTask)
0031 # DT sequence with the 2D segment reconstruction
0032 dtlocalreco_with_2DSegmentsTask = cms.Task(dt1DRecHits,dt2DSegments,dt4DSegments)
0033 dtlocalreco_with_2DSegments = cms.Sequence(dtlocalreco_with_2DSegmentsTask)
0034 # DT sequence with T0seg correction
0035 dtlocalrecoT0SegTask = cms.Task(dt1DRecHits,dt4DSegments,dt4DSegmentsT0Seg)
0036 dtlocalrecoT0Seg = cms.Sequence(dtlocalrecoT0SegTask)
0037 # CSC sequence
0038 csclocalrecoTask = cms.Task(csc2DRecHits,cscSegments)
0039 csclocalreco = cms.Sequence(csclocalrecoTask)
0040 # DT, CSC and RPC together
0041 muonlocalreco_with_2DSegmentsTask = cms.Task(dtlocalreco_with_2DSegmentsTask,csclocalrecoTask,rpcRecHits)
0042 muonlocalreco_with_2DSegments = cms.Sequence(muonlocalreco_with_2DSegmentsTask)
0043 # DT, CSC and RPC together (correct sequence for the standard path)
0044 muonlocalrecoTask = cms.Task(dtlocalrecoTask,csclocalrecoTask,rpcRecHits)
0045 muonlocalreco = cms.Sequence(muonlocalrecoTask)
0046 # DT, CSC and RPC together (with t0seg correction for DTs)
0047 muonlocalrecoT0SegTask = cms.Task(dtlocalrecoT0SegTask,csclocalrecoTask,rpcRecHits)
0048 muonlocalrecoT0Seg = cms.Sequence(muonlocalrecoT0SegTask)
0049 # all sequences to be used for GR
0050 muonLocalRecoGRTask = cms.Task(muonlocalrecoTask,muonlocalrecoT0SegTask)
0051 muonLocalRecoGR = cms.Sequence(muonLocalRecoGRTask)
0052 
0053 from RecoLocalMuon.GEMRecHit.gemLocalReco_cff import *
0054 from RecoLocalMuon.GEMRecHit.me0LocalReco_cff import *
0055 
0056 _run2_GEM_2017_muonlocalrecoTask = muonlocalrecoTask.copy()
0057 _run2_GEM_2017_muonlocalrecoTask.add(gemLocalRecoTask)
0058 
0059 _run3_muonlocalrecoTask = muonlocalrecoTask.copy()
0060 _run3_muonlocalrecoTask.add(gemLocalRecoTask)
0061 
0062 _phase2_muonlocalrecoTask = _run3_muonlocalrecoTask.copy()
0063 _phase2_muonlocalrecoTask.add(me0LocalRecoTask)
0064 
0065 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0066 run2_GEM_2017.toReplaceWith( muonlocalrecoTask , _run2_GEM_2017_muonlocalrecoTask )
0067 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0068 run3_GEM.toReplaceWith( muonlocalrecoTask , _run3_muonlocalrecoTask )
0069 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0070 phase2_muon.toReplaceWith( muonlocalrecoTask , _phase2_muonlocalrecoTask )