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_cfi import *
0006 # 2D Segments
0007 from RecoLocalMuon.DTSegment.dt2DSegments_MTPatternReco2D_LinearDriftFromDB_cfi import *
0008 # 4D Segments
0009 from RecoLocalMuon.DTSegment.dt4DSegments_MTPatternReco4D_LinearDriftFromDB_cfi import *
0010 # 4D segments with t0 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,dt1DCosmicRecHits,dt4DCosmicSegments)
0030 dtlocalreco = cms.Sequence(dtlocalrecoTask)
0031 # DT sequence with the 2D segment reconstruction
0032 dtlocalreco_with_2DSegmentsTask = cms.Task(dt1DRecHits,dt2DSegments,dt4DSegments,dt1DCosmicRecHits,dt2DCosmicSegments,dt4DCosmicSegments)
0033 dtlocalreco_with_2DSegments = cms.Sequence(dtlocalreco_with_2DSegmentsTask)
0034 # DT sequence with T0seg correction
0035 # CSC sequence
0036 csclocalrecoTask = cms.Task(csc2DRecHits,cscSegments)
0037 csclocalreco = cms.Sequence(csclocalrecoTask)
0038 # DT, CSC and RPC together
0039 muonlocalreco_with_2DSegmentsTask = cms.Task(dtlocalreco_with_2DSegmentsTask,csclocalrecoTask,rpcRecHits)
0040 muonlocalreco_with_2DSegments = cms.Sequence(muonlocalreco_with_2DSegmentsTask)
0041 # DT, CSC and RPC together (correct sequence for the standard path)
0042 muonlocalrecoTask = cms.Task(dtlocalrecoTask,csclocalrecoTask,rpcRecHits)
0043 muonlocalreco = cms.Sequence(muonlocalrecoTask)
0044 
0045 from RecoLocalMuon.GEMRecHit.gemLocalReco_cff import *
0046 from RecoLocalMuon.GEMRecHit.me0LocalReco_cff import *
0047 
0048 _run2_GEM_2017_muonlocalrecoTask = muonlocalrecoTask.copy()
0049 _run2_GEM_2017_muonlocalrecoTask.add(gemLocalRecoTask)
0050 
0051 _run3_muonlocalrecoTask = muonlocalrecoTask.copy()
0052 _run3_muonlocalrecoTask.add(gemLocalRecoTask)
0053 
0054 _phase2_muonlocalrecoTask = _run3_muonlocalrecoTask.copy()
0055 _phase2_muonlocalrecoTask.add(me0LocalRecoTask)
0056 
0057 _phase2_ge0_muonlocalrecoTask = _phase2_muonlocalrecoTask.copyAndExclude([me0LocalRecoTask])
0058 
0059 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0060 run2_GEM_2017.toReplaceWith( muonlocalrecoTask , _run2_GEM_2017_muonlocalrecoTask )
0061 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0062 run3_GEM.toReplaceWith( muonlocalrecoTask , _run3_muonlocalrecoTask )
0063 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0064 phase2_muon.toReplaceWith( muonlocalrecoTask , _phase2_muonlocalrecoTask )
0065 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
0066 phase2_GE0.toReplaceWith( muonlocalrecoTask , _phase2_ge0_muonlocalrecoTask )