CMS 3D CMS Logo

RecoTLR.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import FWCore.ParameterSet.Config as cms
3 
4 
8  import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
9  process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
10  timeThreshold = 999999 # for express allow >48h old payloads for replays. DO NOT CHANGE
11  )
12 
13  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
14  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
15  return process
16 
17 def _overridesFor50ns(process):
18  process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
19  process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)
20 
21  return process
22 
23 
27 
29  return process
30 
32  return process
33 
35  return process
36 
39  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
40  _customise_HPbeamspot(process)
41  return process
42 
44  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
45  _customise_HPbeamspot(process)
46  return process
47 
50  return process
51 
54  return process
55 
56 # 2018 equivalents
58  #start with a repeat of 2017
60  return process
61 
63  #start with a repeat of 2017
65  return process
66 
68  #start with a repeat of 2017
70  return process
71 
74  return process
75 
78  return process
79 
82  from DQM.TrackingMonitorSource.PPonAATrackingOnly_custom import customise_PPonAATrackingOnlyDQM as _customise_PPonAATrackingOnlyDQM
83  _customise_PPonAATrackingOnlyDQM(process)
84  return process
85 
86 # Run3 equivalents
87 
88 def customisePostEra_Run3(process):
89  #start with a repeat of 2018
91  return process
92 
94  #start with a repeat of Run3
95  customisePostEra_Run3(process)
96  return process
97 
99  #start with a repeat of 2023
100  customisePostEra_Run3(process)
101  return process
102 
104  #start with a repeat of 2018
106  return process
107 
109  #start with repeat of 2018
111  return process
112 
114  customisePostEra_Run3(process)
115  return process
116 
119  return process
120 
123  return process
124 
127  return process
128 
131  return process
132 
135  return process
136 
139  return process
140 
143  return process
144 
145 
146 def customisePPData(process):
147  #deprecated process= customiseCommon(process)
148 
150  return process
151 
152 
153 
154 def customisePPMC(process):
155  #deprecated process=customiseCommon(process)
156  #left as a place holder to alter production sequences in case of emergencies
157  return process
158 
159 
160 def customiseCosmicData(process):
161  return process
162 
163 
164 
165 def customiseCosmicMC(process):
166  return process
167 
168 
169 def customiseVALSKIM(process):
170  print("WARNING")
171  print("this method is outdated, please use RecoTLR.customisePPData")
172  process= customisePPData(process)
173  return process
174 
175 
176 
177 def customiseExpress(process):
178  process= customisePPData(process)
179  process = _swapOfflineBSwithOnline(process)
180  return process
181 
182 
183 def customisePrompt(process):
184  process= customisePPData(process)
185 
186  return process
187 
188 
192 def customiseCommonHI(process):
193  return process
194 
195 
196 def customiseExpressHI(process):
197  process = customiseCommonHI(process)
198  process = _swapOfflineBSwithOnline(process)
199 
200  return process
201 
202 
203 def customisePromptHI(process):
204  process = customiseCommonHI(process)
205 
206  return process
207 
208 
217  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
218  process = unganged_me1a_geometry(process)
219  process = customise_csc_LocalReco(process)
220 
221  if hasattr(process,'valCscTriggerPrimitiveDigis'):
222  #this is not doing anything at the moment
223  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
224  if hasattr(process,'valCsctfTrackDigis'):
225  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
226 
227  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
228  if hasattr(process,'RawToDigi'):
229  process=customise_RawToDigi(process)
230  if hasattr(process,'reconstruction'):
231  process=customise_Reco(process)
232  if hasattr(process,'dqmoffline_step'):
233  process=customise_DQM(process)
234 
235  return process
236 
237 # add stage1
239  process = customiseDataRun2Common(process)
240 
241  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
242  process=customiseL1RecoForStage1(process)
243 
244  return process
245 
246 
249  process = customiseDataRun2Common_withStage1(process)
250 
251  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
252  if hasattr(process,'dqmoffline_step'):
253  process=customise_DQM_25ns(process)
254  return process
255 
256 # common+50ns. Needed only for runs >= 253000 if taken with 50ns
258  process = customiseDataRun2Common_withStage1(process)
259 
260  process = _overridesFor50ns(process)
261 
262  return process
263 
264 
267  process = customiseDataRun2Common_withStage1(process)
268 
269  process = _overridesFor50ns(process)
270  # HI Specific additional customizations:
271  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
272  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
273 
274  return process
def customisePostEra_Run3_pp_on_PbPb_2024(process)
Definition: RecoTLR.py:129
def customise_DQM_25ns(process)
def customisePostEra_Run2_2017_ppRef(process)
Definition: RecoTLR.py:52
def _overridesFor50ns(process)
Definition: RecoTLR.py:17
def customise_Reco(process)
def customisePostEra_Run2_2017_pp_on_XeXe(process)
Definition: RecoTLR.py:48
def customise_csc_LocalReco(process)
Definition: muonCustoms.py:208
def customiseCosmicData(process)
Definition: RecoTLR.py:160
def customiseVALSKIM(process)
Definition: RecoTLR.py:169
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly(process)
Definition: RecoTLR.py:80
def customisePostEra_Run3_express_trackingOnly(process)
Definition: RecoTLR.py:103
def customisePPMC(process)
Definition: RecoTLR.py:154
def customiseExpressHI(process)
Definition: RecoTLR.py:196
def customisePostEra_Run2_2018_express_trackingOnly(process)
Definition: RecoTLR.py:62
def customisePostEra_Run3_pp_on_PbPb(process)
Definition: RecoTLR.py:113
def customise_DQM(process)
def customiseRun2CommonHI(process)
keep it in case modification is needed
Definition: RecoTLR.py:266
def customise_RawToDigi(process)
def customiseDataRun2Common(process)
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:216
def customisePostEra_Run3_pp_on_PbPb_express_trackingOnly(process)
Definition: RecoTLR.py:108
def customisePostEra_Run2_2018_harvesting_trackingOnly(process)
Definition: RecoTLR.py:67
def customisePostEra_Run2_2017_express_trackingOnly(process)
Definition: RecoTLR.py:37
def customisePostEra_Run3_pp_on_PbPb_approxSiStripClusters_2024(process)
Definition: RecoTLR.py:133
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:34
def customisePromptHI(process)
Definition: RecoTLR.py:203
def customisePostEra_Run3_pp_on_PbPb_approxSiStripClusters_2023(process)
Definition: RecoTLR.py:125
def customisePrompt(process)
Definition: RecoTLR.py:183
def customisePostEra_Run3_2024_ppRef(process)
Definition: RecoTLR.py:141
def customiseDataRun2Common_25ns(process)
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:248
def customisePostEra_Run3_2024(process)
Definition: RecoTLR.py:98
def customiseExpress(process)
Definition: RecoTLR.py:177
def customisePostEra_Run2_25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:28
def customisePostEra_Run3_pp_on_PbPb_approxSiStripClusters(process)
Definition: RecoTLR.py:121
def customise_HI_PostEra_Run2_2018(process)
Definition: RecoTLR.py:72
def unganged_me1a_geometry(process)
Definition: muonCustoms.py:5
def customiseDataRun2Common_50nsRunsAfter253000(process)
Definition: RecoTLR.py:257
def customisePostEra_Run2_2017_harvesting_trackingOnly(process)
Definition: RecoTLR.py:43
def customisePPData(process)
Definition: RecoTLR.py:146
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:57
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:238
def customiseL1RecoForStage1(process)
def customisePostEra_Run3_2024_UPC(process)
Definition: RecoTLR.py:137
def customisePostEra_Run3_pp_on_PbPb_2023(process)
Definition: RecoTLR.py:117
def customisePostEra_Run2_2018_pp_on_AA(process)
Definition: RecoTLR.py:76
def customiseCosmicMC(process)
Definition: RecoTLR.py:165
def customisePostEra_Run3(process)
Definition: RecoTLR.py:88
def _swapOfflineBSwithOnline(process)
common utilities
Definition: RecoTLR.py:7
def customisePostEra_Run2_2016(process)
Definition: RecoTLR.py:31
def customisePostEra_Run3_2023(process)
Definition: RecoTLR.py:93
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:192