CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTLR.py
Go to the documentation of this file.
2 
3 from RecoTracker.Configuration.customiseForRunI import customiseForRunI
4 
5 ##############################################################################
6 # common utilities
7 ##############################################################################
9  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
10  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
11  return process
12 
13 def _addLumiProducer(process):
14  if not hasattr(process,'lumiProducer'):
15  #unscheduled..
16  from RecoLuminosity.LumiProducer.lumiProducer_cff import lumiProducer,LumiDBService
17  process.lumiProducer=lumiProducer
18  #if it's scheduled
19  if hasattr(process, 'reconstruction_step'):
20  process.reconstruction_step+=process.lumiProducer
21 
22  return process
23 
24 def _overridesFor50ns(process):
25  process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
26  process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)
27 
28  return process
29 
30 #gone with the fact that there is no difference between production and development sequence
31 #def customiseCommon(process):
32 # return (process)
33 
34 
35 ##############################################################################
36 def customisePPData(process):
37  #deprecated process= customiseCommon(process)
38  ##all customisation for data are now deprecated to Reconstruction_Data_cff
39  #left as a place holder to alter production sequences in case of emergencies
40  return process
41 
42 
43 ##############################################################################
44 def customisePPMC(process):
45  #deprecated process=customiseCommon(process)
46  #left as a place holder to alter production sequences in case of emergencies
47  return process
48 
49 ##############################################################################
50 def customiseCosmicData(process):
51 
52  return process
53 
54 
55 
56 ##############################################################################
57 # this is supposed to be added on top of other (Run1) data customs
59  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
60  process = unganged_me1a_geometry(process)
61  process = customise_csc_LocalReco(process)
62 
63  if hasattr(process,'valCscTriggerPrimitiveDigis'):
64  #this is not doing anything at the moment
65  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
66  if hasattr(process,'valCsctfTrackDigis'):
67  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
68 
69  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
70  if hasattr(process,'RawToDigi'):
71  process=customise_RawToDigi(process)
72  if hasattr(process,'reconstruction'):
73  process=customise_Reco(process)
74  if hasattr(process,'dqmoffline_step'):
75  process=customise_DQM(process)
76 
77  return process
78 
79 # add stage1
81  process = customiseDataRun2Common(process)
82 
83  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
84  process=customiseL1RecoForStage1(process)
85 
86  return process
87 
88 ##############################################################################
89 # common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
91  process = customiseDataRun2Common_withStage1(process)
92 
93  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
94  if hasattr(process,'dqmoffline_step'):
95  process=customise_DQM_25ns(process)
96  return process
97 
98 # common+50ns. Needed only for runs >= 253000 if taken with 50ns
100  process = customiseDataRun2Common_withStage1(process)
101 
102  process = _overridesFor50ns(process)
103  return process
104 
105 ##############################################################################
107  process = customiseCosmicData(process)
108  process = customiseDataRun2Common_25ns(process)
109  return process
110 
111 
112 ##############################################################################
113 def customiseCosmicMC(process):
114 
115  return process
116 
117 ##############################################################################
118 def customiseVALSKIM(process):
119  print "WARNING"
120  print "this method is outdated, please use RecoTLR.customisePPData"
121  process= customisePPData(process)
122  return process
123 
124 
125 ##############################################################################
126 def customiseExpress(process):
127  process= customisePPData(process)
128  process = _swapOfflineBSwithOnline(process)
129 
130  return process
131 
132 ##############################################################################
133 def customiseExpressRun2(process):
134  process = customiseExpress(process)
135  process = customiseDataRun2Common_25ns(process)
136  return process
137 
139  process = customiseExpress(process)
141  return process
142 
144  process=customiseForRunI(process)
145  process=customiseExpressRun2(process)
146  return process
147 
148 ##############################################################################
149 def customisePrompt(process):
150  process= customisePPData(process)
151  process = _addLumiProducer(process)
152 
153  return process
154 
155 ##############################################################################
156 def customisePromptRun2(process):
157  process = customisePrompt(process)
158  process = customiseDataRun2Common_25ns(process)
159  return process
160 
162  process = customisePrompt(process)
164  return process
165 
167  process=customiseForRunI(process)
168  process=customisePromptRun2(process)
169  return process
170 
171 
172 ##############################################################################
173 # Heavy Ions
174 ##############################################################################
175 # keep it in case modification is needed
176 def customiseCommonHI(process):
177  return process
178 
179 ##############################################################################
180 def customiseExpressHI(process):
181  process = customiseCommonHI(process)
182  process = _swapOfflineBSwithOnline(process)
183 
184  return process
185 
186 ##############################################################################
187 def customisePromptHI(process):
188  process = customiseCommonHI(process)
189  process = _swapOfflineBSwithOnline(process)
190 
191  process = _addLumiProducer(process)
192 
193  return process
194 
195 ##############################################################################
196 # keep it in case modification is needed
198  process = customiseDataRun2Common_withStage1(process)
199 
200  process = _overridesFor50ns(process)
201  # HI Specific additional customizations:
202  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
203  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
204 
205  return process
206 
207 ##############################################################################
209  process = customiseRun2CommonHI(process)
210  process = _swapOfflineBSwithOnline(process)
211 
212  return process
213 
214 ##############################################################################
216  process = customiseRun2CommonHI(process)
217  process = _swapOfflineBSwithOnline(process)
218 
219  process = _addLumiProducer(process)
220 
221  return process
222 
223 ##############################################################################
def customiseDataRun2Common
this is supposed to be added on top of other (Run1) data customs
Definition: RecoTLR.py:58
def customisePromptHI
Definition: RecoTLR.py:187
def customisePPMC
Definition: RecoTLR.py:44
def customiseCosmicMC
Definition: RecoTLR.py:113
def unganged_me1a_geometry
Definition: muonCustoms.py:4
def _addLumiProducer
Definition: RecoTLR.py:13
def customise_csc_LocalReco
Definition: muonCustoms.py:207
def _overridesFor50ns
Definition: RecoTLR.py:24
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:176
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:99
def customisePromptRun2_50ns
Definition: RecoTLR.py:161
def customiseVALSKIM
Definition: RecoTLR.py:118
def customiseCosmicDataRun2
Definition: RecoTLR.py:106
def customiseExpressRun2
Definition: RecoTLR.py:133
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def customiseExpressHI
Definition: RecoTLR.py:180
def customiseCosmicData
Definition: RecoTLR.py:50
def customisePromptRun2
Definition: RecoTLR.py:156
def customisePPData
Definition: RecoTLR.py:36
def customisePrompt
Definition: RecoTLR.py:149
def customise_RawToDigi
Definition: HCalCustoms.py:105
def customiseRun2ExpressHI
Definition: RecoTLR.py:208
def customise_Reco
Definition: HCalCustoms.py:138
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:90
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:197
def customisePromptRun2B0T
Definition: RecoTLR.py:166
def customiseExpressRun2_50ns
Definition: RecoTLR.py:138
def customiseRun2PromptHI
Definition: RecoTLR.py:215
def customiseExpress
Definition: RecoTLR.py:126
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:80
def customiseExpressRun2B0T
Definition: RecoTLR.py:143
def customiseL1RecoForStage1