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  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
9  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
10  return process
11 
12 def _overridesFor50ns(process):
13  process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
14  process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)
15 
16  return process
17 
18 
22 def _hcalCustoms25ns(process):
23  import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
24  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HFDigiTime",8)
25  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HBHEFlatNoise",8)
26  return process
27 
29  _hcalCustoms25ns(process)
30  return process
31 
33  _hcalCustoms25ns(process)
34  return process
35 
37  import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
38  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HBHEFlatNoise",8)
39  HcalRemoveAddSevLevel.RemoveFlag(process.hcalRecAlgos,"HFDigiTime")
40  return process
41 
44  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
45  _customise_HPbeamspot(process)
46  return process
47 
49  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
50  _customise_HPbeamspot(process)
51  return process
52 
55  return process
56 
59  return process
60 
61 # 2018 equivalents
63  #start with a repeat of 2017
65  return process
66 
68  #start with a repeat of 2017
70  return process
71 
73  #start with a repeat of 2017
75  return process
76 
79  return process
80 
83  return process
84 
87  from DQM.TrackingMonitorSource.PPonAATrackingOnly_custom import customise_PPonAATrackingOnlyDQM as _customise_PPonAATrackingOnlyDQM
88  _customise_PPonAATrackingOnlyDQM(process)
89  return process
90 
91 # 2021 equivalents
92 def customisePostEra_Run3(process):
93  #start with a repeat of 2018
95  return process
96 
98  #start with a repeat of 2018
100  return process
101 
102 
103 def customisePPData(process):
104  #deprecated process= customiseCommon(process)
105 
107  return process
108 
109 
110 
111 def customisePPMC(process):
112  #deprecated process=customiseCommon(process)
113  #left as a place holder to alter production sequences in case of emergencies
114  return process
115 
116 
117 def customiseCosmicData(process):
118  return process
119 
120 
121 
122 def customiseCosmicMC(process):
123  return process
124 
125 
126 def customiseVALSKIM(process):
127  print("WARNING")
128  print("this method is outdated, please use RecoTLR.customisePPData")
129  process= customisePPData(process)
130  return process
131 
132 
133 
134 def customiseExpress(process):
135  process= customisePPData(process)
136  process = _swapOfflineBSwithOnline(process)
137  return process
138 
139 
140 def customisePrompt(process):
141  process= customisePPData(process)
142 
143  return process
144 
145 
149 def customiseCommonHI(process):
150  return process
151 
152 
153 def customiseExpressHI(process):
154  process = customiseCommonHI(process)
155  process = _swapOfflineBSwithOnline(process)
156 
157  return process
158 
159 
160 def customisePromptHI(process):
161  process = customiseCommonHI(process)
162 
163  return process
164 
165 
174  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
175  process = unganged_me1a_geometry(process)
176  process = customise_csc_LocalReco(process)
177 
178  if hasattr(process,'valCscTriggerPrimitiveDigis'):
179  #this is not doing anything at the moment
180  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
181  if hasattr(process,'valCsctfTrackDigis'):
182  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
183 
184  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
185  if hasattr(process,'RawToDigi'):
186  process=customise_RawToDigi(process)
187  if hasattr(process,'reconstruction'):
188  process=customise_Reco(process)
189  if hasattr(process,'dqmoffline_step'):
190  process=customise_DQM(process)
191 
192  return process
193 
194 # add stage1
196  process = customiseDataRun2Common(process)
197 
198  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
199  process=customiseL1RecoForStage1(process)
200 
201  return process
202 
203 
206  process = customiseDataRun2Common_withStage1(process)
207 
208  _hcalCustoms25ns(process)
209 
210  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
211  if hasattr(process,'dqmoffline_step'):
212  process=customise_DQM_25ns(process)
213  return process
214 
215 # common+50ns. Needed only for runs >= 253000 if taken with 50ns
217  process = customiseDataRun2Common_withStage1(process)
218 
219  process = _overridesFor50ns(process)
220 
221  return process
222 
223 
226  process = customiseDataRun2Common_withStage1(process)
227 
228  process = _overridesFor50ns(process)
229  # HI Specific additional customizations:
230  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
231  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
232 
233  return process
RecoTLR.customisePostEra_Run2_2016
def customisePostEra_Run2_2016(process)
Definition: RecoTLR.py:32
RecoTLR.customiseCommonHI
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:149
RecoTLR.customisePostEra_Run2_2018_pp_on_AA
def customisePostEra_Run2_2018_pp_on_AA(process)
Definition: RecoTLR.py:81
postLS1Customs.customise_Reco
def customise_Reco(process)
Definition: postLS1Customs.py:786
postLS1Customs.customise_RawToDigi
def customise_RawToDigi(process)
Definition: postLS1Customs.py:772
muonCustoms.unganged_me1a_geometry
def unganged_me1a_geometry(process)
Definition: muonCustoms.py:5
RecoTLR._swapOfflineBSwithOnline
def _swapOfflineBSwithOnline(process)
common utilities
Definition: RecoTLR.py:7
RecoTLR.customiseVALSKIM
def customiseVALSKIM(process)
Definition: RecoTLR.py:126
RecoTLR.customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly(process)
Definition: RecoTLR.py:85
muonCustoms.customise_csc_LocalReco
def customise_csc_LocalReco(process)
Definition: muonCustoms.py:208
RecoTLR.customisePostEra_Run2_2017_pp_on_XeXe
def customisePostEra_Run2_2017_pp_on_XeXe(process)
Definition: RecoTLR.py:53
RecoTLR.customisePPMC
def customisePPMC(process)
Definition: RecoTLR.py:111
RecoTLR.customiseCosmicData
def customiseCosmicData(process)
Definition: RecoTLR.py:117
RecoTLR.customisePostEra_Run2_2017_ppRef
def customisePostEra_Run2_2017_ppRef(process)
Definition: RecoTLR.py:57
postLS1Customs.customise_DQM
def customise_DQM(process)
Definition: postLS1Customs.py:168
RecoTLR.customisePostEra_Run2_2018_express_trackingOnly
def customisePostEra_Run2_2018_express_trackingOnly(process)
Definition: RecoTLR.py:67
RecoTLR._hcalCustoms25ns
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:22
BeamSpotOnline_cfi
RecoTLR.customiseRun2CommonHI
def customiseRun2CommonHI(process)
keep it in case modification is needed
Definition: RecoTLR.py:225
RecoTLR.customisePostEra_Run3_express_trackingOnly
def customisePostEra_Run3_express_trackingOnly(process)
Definition: RecoTLR.py:97
RecoTLR.customisePostEra_Run2_2018_harvesting_trackingOnly
def customisePostEra_Run2_2018_harvesting_trackingOnly(process)
Definition: RecoTLR.py:72
postLS1Customs.customise_DQM_25ns
def customise_DQM_25ns(process)
Definition: postLS1Customs.py:178
RecoTLR.customiseExpressHI
def customiseExpressHI(process)
Definition: RecoTLR.py:153
RecoTLR.customiseDataRun2Common
def customiseDataRun2Common(process)
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:173
RecoTLR.customisePostEra_Run2_2017_express_trackingOnly
def customisePostEra_Run2_2017_express_trackingOnly(process)
Definition: RecoTLR.py:42
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
RecoTLR.customiseDataRun2Common_25ns
def customiseDataRun2Common_25ns(process)
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:205
RecoTLR.customisePromptHI
def customisePromptHI(process)
Definition: RecoTLR.py:160
RecoTLR.customisePostEra_Run2_25ns
def customisePostEra_Run2_25ns(process)
Definition: RecoTLR.py:28
RecoTLR.customisePostEra_Run2_2017
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:36
RecoTLR.customiseExpress
def customiseExpress(process)
Definition: RecoTLR.py:134
RecoTLR.customiseCosmicMC
def customiseCosmicMC(process)
Definition: RecoTLR.py:122
RecoTLR.customisePostEra_Run2_2018
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:62
RecoTLR.customiseDataRun2Common_withStage1
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:195
RecoTLR.customisePrompt
def customisePrompt(process)
Definition: RecoTLR.py:140
RecoTLR.customise_HI_PostEra_Run2_2018
def customise_HI_PostEra_Run2_2018(process)
Definition: RecoTLR.py:77
RecoTLR.customisePostEra_Run3
def customisePostEra_Run3(process)
Definition: RecoTLR.py:92
customsPostLS1.customiseL1RecoForStage1
def customiseL1RecoForStage1(process)
Definition: customsPostLS1.py:82
RecoTLR.customiseDataRun2Common_50nsRunsAfter253000
def customiseDataRun2Common_50nsRunsAfter253000(process)
Definition: RecoTLR.py:216
RecoTLR.customisePostEra_Run2_2017_harvesting_trackingOnly
def customisePostEra_Run2_2017_harvesting_trackingOnly(process)
Definition: RecoTLR.py:48
RecoTLR._overridesFor50ns
def _overridesFor50ns(process)
Definition: RecoTLR.py:12
RecoTLR.customisePPData
def customisePPData(process)
Definition: RecoTLR.py:103