CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FSSwitches.py
Go to the documentation of this file.
2 
3 import FastSimulation.Muons.TSGFromL2_cfi as TSG
4 
5 def SwitchToOIState(process):
6  process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
7 
8 def SwitchToOIHit(process):
9  process.hltL3TrajectorySeedOIH = TSG.l3seeds("OIHit")
10 
11 def SwitchToIOHit(process):
12  process.hltL3TrajectorySeedIOH = TSG.l3seeds("IOHit")
13 
14 def SwitchToOIHitCascade(process):
15  process.hltL3TrajectorySeedOIHCascade = TSG.l3seeds("OIHitCascade")
16 
17 def SwitchToCascade(process):
18  # Make three individual seeders
19  process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
20  process.hltL3TrajectorySeedOIHC = TSG.l3seeds("OIHitCascade")
21  process.hltL3TrajectorySeedIOHC = TSG.l3seeds("IOHitCascade")
22 
23  # Make one TrackCand for each seeder
25  process.hltL3TrackCandidateFromL2OIS = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
26  process.hltL3TrackCandidateFromL2OIS.SeedProducer = "hltL3TrajectorySeedOIS"
27  process.hltL3TrackCandidateFromL2OIHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
28  process.hltL3TrackCandidateFromL2OIHC.SeedProducer = "hltL3TrajectorySeedOIHC"
29  process.hltL3TrackCandidateFromL2IOHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
30  process.hltL3TrackCandidateFromL2IOHC.SeedProducer = "hltL3TrajectorySeedIOHC"
31 
32  # Make one Track for each TrackCand
33  process.hltL3TkTracksFromL2OIS = process.hltL3TkTracksFromL2.clone()
34  process.hltL3TkTracksFromL2OIS.src = "hltL3TrackCandidateFromL2OIS"
35  process.hltL3TkTracksFromL2OIHC = process.hltL3TkTracksFromL2.clone()
36  process.hltL3TkTracksFromL2OIHC.src = "hltL3TrackCandidateFromL2OIHC"
37  process.hltL3TkTracksFromL2IOHC = process.hltL3TkTracksFromL2.clone()
38  process.hltL3TkTracksFromL2IOHC.src = "hltL3TrackCandidateFromL2IOHC"
39 
40  # Make one L3Muons for each Track
41  process.hltL3MuonsOIS = process.hltL3Muons.clone()
42  process.hltL3MuonsOIS.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIS"
43  process.hltL3MuonsOIHC = process.hltL3Muons.clone()
44  process.hltL3MuonsOIHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIHC"
45  process.hltL3MuonsIOHC = process.hltL3Muons.clone()
46  process.hltL3MuonsIOHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2IOHC"
47 
48  process.hltL3MuonsOICombined = cms.EDProducer(
49  "L3TrackCombiner",
50  labels = cms.VInputTag(
51  cms.InputTag("hltL3MuonsOIS"),
52  cms.InputTag("hltL3MuonsOIHC"),
53  )
54  )
55 
56  process.l3MuonsAllCombined = cms.EDProducer(
57  "L3TrackCombiner",
58  labels = cms.VInputTag(
59  cms.InputTag("hltL3MuonsOIS"),
60  cms.InputTag("hltL3MuonsOIHC"),
61  cms.InputTag("hltL3MuonsIOHC")
62  )
63  )
64 
65  process.l3TkFromL2Combination = cms.EDProducer(
66  "L3TrackCombiner",
67  labels = cms.VInputTag(
68  cms.InputTag("hltL3TkTracksFromL2OIS"),
69  cms.InputTag("hltL3TkTracksFromL2OIHC"),
70  cms.InputTag("hltL3TkTracksFromL2IOHC")
71  )
72  )
73 
74  process.l3TkCandFromL2Combination = cms.EDProducer(
75  "L3TrackCandCombiner",
76  labels = cms.VInputTag(
77  cms.InputTag("hltL3TrackCandidateFromL2OIS"),
78  cms.InputTag("hltL3TrackCandidateFromL2OIHC"),
79  cms.InputTag("hltL3TrackCandidateFromL2IOHC"),
80  )
81  )
82 
83  process.l3SeedCombination = cms.EDProducer(
84  "L3MuonTrajectorySeedCombiner",
85  labels = cms.VInputTag(
86  cms.InputTag("hltL3TrajectorySeedOIS"),
87  cms.InputTag("hltL3TrajectorySeedOIHC"),
88  cms.InputTag("hltL3TrajectorySeedIOHC")
89  )
90  )
91 
92  process.HLTL3muonTkCandidateSequenceOIS = cms.Sequence(
93  process.HLTDoLocalPixelSequence +
94  process.HLTDoLocalStripSequence +
95  process.hltL3TrajectorySeedOIS +
96  process.hltL3TrackCandidateFromL2OIS
97  )
98 
99  process.HLTL3muonrecoNocandSequenceOIS = cms.Sequence(
100  process.HLTL3muonTkCandidateSequenceOIS +
101  process.hltL3TkTracksFromL2OIS +
102  process.hltL3MuonsOIS
103  )
104 
105  process.HLTL3muonTkCandidateSequenceOIHC = cms.Sequence(
106  process.HLTL3muonrecoNocandSequenceOIS +
107  process.hltL3TrajectorySeedOIHC +
108  process.hltL3TrackCandidateFromL2OIHC
109  )
110 
111  process.HLTL3muonrecoNocandSequenceOIHC = cms.Sequence(
112  process.HLTL3muonTkCandidateSequenceOIHC +
113  process.hltL3TkTracksFromL2OIHC +
114  process.hltL3MuonsOIHC
115  )
116 
117  process.HLTL3muonTkCandSequenceIOHC = cms.Sequence(
118  process.HLTL3muonrecoNocandSequenceOIHC +
119  process.hltL3MuonsOICombined +
120  process.hltL3TrajectorySeedIOHC +
121  process.hltL3TrackCandidateFromL2IOHC
122  )
123 
124  process.HLTL3muonrecoNocandSequenceIOHC = cms.Sequence(
125  process.HLTL3muonTkCandSequenceIOHC +
126  process.hltL3TkTracksFromL2IOHC +
127  process.hltL3MuonsIOHC
128  )
129 
130  process.hltL3TrajectorySeed = process.l3SeedCombination
131  process.hltL3TrackCandidateFromL2 = process.l3TkCandFromL2Combination
132  process.hltL3TkTracksFromL2 = process.l3TkFromL2Combination
133  process.hltL3Muons = process.l3MuonsAllCombined
134 
135  process.HLTL3muonTkCandidateSequence = cms.Sequence(
136  process.HLTL3muonrecoNocandSequenceIOHC +
137  process.hltL3TrajectorySeed +
138  process.hltL3TrackCandidateFromL2
139  )
140 
141 ## process.HLTL3muonrecoNocandSequence = cms.Sequence(
142 ## process.HLTL3muonTkCandidateSequence +
143 ## process.hltL3TkTracksFromL2 +
144 ## process.hltL3Muons
145 ## )
def SwitchToCascade
Definition: FSSwitches.py:17
Make one TrackCand for each seeder.
def SwitchToOIState
Definition: FSSwitches.py:5
def SwitchToOIHit
Definition: FSSwitches.py:8
def SwitchToIOHit
Definition: FSSwitches.py:11
def SwitchToOIHitCascade
Definition: FSSwitches.py:14