CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecoLocalMuon_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------------------------ DT ------------------------------------------------
4 # 1D RecHits
6 # 2D Segments
8 # 4D Segments
10 # 4D segments with t0 correction
12 
13 #------------------------------------ CSC -----------------------------------------------
14 # 2D RecHit
16 # Segments
20 
21 #------------------------------------ RPC -----------------------------------------------
22 # 1D RecHits
24 
25 #----------------------------------------------------------------------------------------
26 # DT sequence for the standard reconstruction chain
27 # The reconstruction of the 2D segments are not required for the 4D segments reconstruction, they are used
28 # only for debuging purpose and for specific studies
29 dtlocalrecoTask = cms.Task(dt1DRecHits,dt4DSegments,dt1DCosmicRecHits,dt4DCosmicSegments)
30 dtlocalreco = cms.Sequence(dtlocalrecoTask)
31 # DT sequence with the 2D segment reconstruction
32 dtlocalreco_with_2DSegmentsTask = cms.Task(dt1DRecHits,dt2DSegments,dt4DSegments,dt1DCosmicRecHits,dt2DCosmicSegments,dt4DCosmicSegments)
33 dtlocalreco_with_2DSegments = cms.Sequence(dtlocalreco_with_2DSegmentsTask)
34 # DT sequence with T0seg correction
35 # CSC sequence
36 csclocalrecoTask = cms.Task(csc2DRecHits,cscSegments)
37 csclocalreco = cms.Sequence(csclocalrecoTask)
38 # DT, CSC and RPC together
39 muonlocalreco_with_2DSegmentsTask = cms.Task(dtlocalreco_with_2DSegmentsTask,csclocalrecoTask,rpcRecHits)
40 muonlocalreco_with_2DSegments = cms.Sequence(muonlocalreco_with_2DSegmentsTask)
41 # DT, CSC and RPC together (correct sequence for the standard path)
42 muonlocalrecoTask = cms.Task(dtlocalrecoTask,csclocalrecoTask,rpcRecHits)
43 muonlocalreco = cms.Sequence(muonlocalrecoTask)
44 
47 
48 _run2_GEM_2017_muonlocalrecoTask = muonlocalrecoTask.copy()
49 _run2_GEM_2017_muonlocalrecoTask.add(gemLocalRecoTask)
50 
51 _run3_muonlocalrecoTask = muonlocalrecoTask.copy()
52 _run3_muonlocalrecoTask.add(gemLocalRecoTask)
53 
54 _phase2_muonlocalrecoTask = _run3_muonlocalrecoTask.copy()
55 _phase2_muonlocalrecoTask.add(me0LocalRecoTask)
56 
57 _phase2_ge0_muonlocalrecoTask = _phase2_muonlocalrecoTask.copyAndExclude([me0LocalRecoTask])
58 
59 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
60 run2_GEM_2017.toReplaceWith( muonlocalrecoTask , _run2_GEM_2017_muonlocalrecoTask )
61 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
62 run3_GEM.toReplaceWith( muonlocalrecoTask , _run3_muonlocalrecoTask )
63 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
64 phase2_muon.toReplaceWith( muonlocalrecoTask , _phase2_muonlocalrecoTask )
65 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
66 phase2_GE0.toReplaceWith( muonlocalrecoTask , _phase2_ge0_muonlocalrecoTask )