CMS 3D CMS Logo

Functions
RecoTLR Namespace Reference

Functions

def _addLumiProducer (process)
 
def _hcalCustoms25ns (process)
 post-era customizations these are here instead of generating Data-specific eras More...
 
def _overridesFor50ns (process)
 
def _swapOfflineBSwithOnline (process)
 common utilities More...
 
def customise_HI_PostEra_Run2_2018 (process)
 
def customiseCommonHI (process)
 Heavy Ions. More...
 
def customiseCosmicData (process)
 
def customiseCosmicMC (process)
 
def customiseDataRun2Common (process)
 ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X. More...
 
def customiseDataRun2Common_25ns (process)
 common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 ) More...
 
def customiseDataRun2Common_50nsRunsAfter253000 (process)
 
def customiseDataRun2Common_withStage1 (process)
 
def customiseExpress (process)
 
def customiseExpressHI (process)
 
def customisePostEra_Run2_2016 (process)
 
def customisePostEra_Run2_2017 (process)
 
def customisePostEra_Run2_2017_express_trackingOnly (process)
 
def customisePostEra_Run2_2017_harvesting_trackingOnly (process)
 
def customisePostEra_Run2_2017_pp_on_XeXe (process)
 
def customisePostEra_Run2_2017_ppRef (process)
 
def customisePostEra_Run2_2018 (process)
 
def customisePostEra_Run2_2018_express_trackingOnly (process)
 
def customisePostEra_Run2_2018_harvesting_trackingOnly (process)
 
def customisePostEra_Run2_2018_pp_on_AA (process)
 
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly (process)
 
def customisePostEra_Run2_25ns (process)
 
def customisePostEra_Run3 (process)
 
def customisePostEra_Run3_express_trackingOnly (process)
 
def customisePPData (process)
 
def customisePPMC (process)
 
def customisePrompt (process)
 
def customisePromptHI (process)
 
def customiseRun2CommonHI (process)
 keep it in case modification is needed More...
 
def customiseVALSKIM (process)
 

Function Documentation

◆ _addLumiProducer()

def RecoTLR._addLumiProducer (   process)
private

Definition at line 12 of file RecoTLR.py.

12 def _addLumiProducer(process):
13  if not hasattr(process,'lumiProducer'):
14  #unscheduled..
15  from RecoLuminosity.LumiProducer.lumiProducer_cff import lumiProducer,LumiDBService
16  process.lumiProducer=lumiProducer
17  #if it's scheduled
18  if hasattr(process, 'reconstruction_step'):
19  process.reconstruction_step+=process.lumiProducer
20 
21  return process
22 

Referenced by customisePrompt(), and customisePromptHI().

◆ _hcalCustoms25ns()

def RecoTLR._hcalCustoms25ns (   process)
private

post-era customizations these are here instead of generating Data-specific eras

Definition at line 33 of file RecoTLR.py.

33 def _hcalCustoms25ns(process):
34  import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
35  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HFDigiTime",8)
36  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HBHEFlatNoise",8)
37  return process
38 

Referenced by customiseDataRun2Common_25ns(), customisePostEra_Run2_2016(), and customisePostEra_Run2_25ns().

◆ _overridesFor50ns()

def RecoTLR._overridesFor50ns (   process)
private

Definition at line 23 of file RecoTLR.py.

23 def _overridesFor50ns(process):
24  process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
25  process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)
26 
27  return process
28 

Referenced by customiseDataRun2Common_50nsRunsAfter253000(), and customiseRun2CommonHI().

◆ _swapOfflineBSwithOnline()

def RecoTLR._swapOfflineBSwithOnline (   process)
private

common utilities

Definition at line 7 of file RecoTLR.py.

7 def _swapOfflineBSwithOnline(process):
8  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
9  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
10  return process
11 

Referenced by customiseExpress(), and customiseExpressHI().

◆ customise_HI_PostEra_Run2_2018()

def RecoTLR.customise_HI_PostEra_Run2_2018 (   process)

Definition at line 88 of file RecoTLR.py.

90  return process
91 

References customisePostEra_Run2_2018().

◆ customiseCommonHI()

def RecoTLR.customiseCommonHI (   process)

Heavy Ions.

keep it in case modification is needed

Definition at line 161 of file RecoTLR.py.

161 def customiseCommonHI(process):
162  return process
163 

Referenced by customiseExpressHI(), and customisePromptHI().

◆ customiseCosmicData()

def RecoTLR.customiseCosmicData (   process)

Definition at line 128 of file RecoTLR.py.

128 def customiseCosmicData(process):
129  return process
130 
131 

◆ customiseCosmicMC()

def RecoTLR.customiseCosmicMC (   process)

Definition at line 133 of file RecoTLR.py.

133 def customiseCosmicMC(process):
134  return process
135 

◆ customiseDataRun2Common()

def RecoTLR.customiseDataRun2Common (   process)

ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.

this is supposed to be added on top of other (Run1) data customs

Definition at line 187 of file RecoTLR.py.

187 def customiseDataRun2Common(process):
188  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
189  process = unganged_me1a_geometry(process)
190  process = customise_csc_LocalReco(process)
191 
192  if hasattr(process,'valCscTriggerPrimitiveDigis'):
193  #this is not doing anything at the moment
194  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
195  if hasattr(process,'valCsctfTrackDigis'):
196  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
197 
198  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
199  if hasattr(process,'RawToDigi'):
200  process=customise_RawToDigi(process)
201  if hasattr(process,'reconstruction'):
202  process=customise_Reco(process)
203  if hasattr(process,'dqmoffline_step'):
204  process=customise_DQM(process)
205 
206  return process
207 
208 # add stage1

References muonCustoms.customise_csc_LocalReco(), postLS1Customs.customise_DQM(), postLS1Customs.customise_RawToDigi(), postLS1Customs.customise_Reco(), and muonCustoms.unganged_me1a_geometry().

Referenced by customiseDataRun2Common_withStage1().

◆ customiseDataRun2Common_25ns()

def RecoTLR.customiseDataRun2Common_25ns (   process)

common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )

Definition at line 219 of file RecoTLR.py.

219 def customiseDataRun2Common_25ns(process):
220  process = customiseDataRun2Common_withStage1(process)
221 
222  _hcalCustoms25ns(process)
223 
224  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
225  if hasattr(process,'dqmoffline_step'):
226  process=customise_DQM_25ns(process)
227  return process
228 
229 # common+50ns. Needed only for runs >= 253000 if taken with 50ns

References _hcalCustoms25ns(), postLS1Customs.customise_DQM_25ns(), and customiseDataRun2Common_withStage1().

◆ customiseDataRun2Common_50nsRunsAfter253000()

def RecoTLR.customiseDataRun2Common_50nsRunsAfter253000 (   process)

Definition at line 230 of file RecoTLR.py.

231  process = customiseDataRun2Common_withStage1(process)
232 
233  process = _overridesFor50ns(process)
234 
235  return process
236 

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

◆ customiseDataRun2Common_withStage1()

def RecoTLR.customiseDataRun2Common_withStage1 (   process)

Definition at line 209 of file RecoTLR.py.

210  process = customiseDataRun2Common(process)
211 
212  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
213  process=customiseL1RecoForStage1(process)
214 
215  return process
216 

References customiseDataRun2Common(), and customsPostLS1.customiseL1RecoForStage1().

Referenced by customiseDataRun2Common_25ns(), customiseDataRun2Common_50nsRunsAfter253000(), and customiseRun2CommonHI().

◆ customiseExpress()

def RecoTLR.customiseExpress (   process)

Definition at line 145 of file RecoTLR.py.

145 def customiseExpress(process):
146  process= customisePPData(process)
147  process = _swapOfflineBSwithOnline(process)
148  return process
149 

References _swapOfflineBSwithOnline(), and customisePPData().

◆ customiseExpressHI()

def RecoTLR.customiseExpressHI (   process)

Definition at line 165 of file RecoTLR.py.

165 def customiseExpressHI(process):
166  process = customiseCommonHI(process)
167  process = _swapOfflineBSwithOnline(process)
168 
169  return process
170 

References _swapOfflineBSwithOnline(), and customiseCommonHI().

◆ customisePostEra_Run2_2016()

def RecoTLR.customisePostEra_Run2_2016 (   process)

Definition at line 43 of file RecoTLR.py.

43 def customisePostEra_Run2_2016(process):
44  _hcalCustoms25ns(process)
45  return process
46 

References _hcalCustoms25ns().

◆ customisePostEra_Run2_2017()

def RecoTLR.customisePostEra_Run2_2017 (   process)

Definition at line 47 of file RecoTLR.py.

47 def customisePostEra_Run2_2017(process):
48  import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
49  HcalRemoveAddSevLevel.AddFlag(process.hcalRecAlgos,"HBHEFlatNoise",8)
50  HcalRemoveAddSevLevel.RemoveFlag(process.hcalRecAlgos,"HFDigiTime")
51  return process
52 

Referenced by customisePostEra_Run2_2017_express_trackingOnly(), customisePostEra_Run2_2017_pp_on_XeXe(), customisePostEra_Run2_2017_ppRef(), and customisePostEra_Run2_2018().

◆ customisePostEra_Run2_2017_express_trackingOnly()

def RecoTLR.customisePostEra_Run2_2017_express_trackingOnly (   process)

Definition at line 53 of file RecoTLR.py.

55  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
56  _customise_HPbeamspot(process)
57  return process
58 

References customisePostEra_Run2_2017().

Referenced by customisePostEra_Run2_2018_express_trackingOnly().

◆ customisePostEra_Run2_2017_harvesting_trackingOnly()

def RecoTLR.customisePostEra_Run2_2017_harvesting_trackingOnly (   process)

Definition at line 59 of file RecoTLR.py.

60  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
61  _customise_HPbeamspot(process)
62  return process
63 

Referenced by customisePostEra_Run2_2018_harvesting_trackingOnly().

◆ customisePostEra_Run2_2017_pp_on_XeXe()

def RecoTLR.customisePostEra_Run2_2017_pp_on_XeXe (   process)

Definition at line 64 of file RecoTLR.py.

66  return process
67 

References customisePostEra_Run2_2017().

◆ customisePostEra_Run2_2017_ppRef()

def RecoTLR.customisePostEra_Run2_2017_ppRef (   process)

Definition at line 68 of file RecoTLR.py.

70  return process
71 
72 # 2018 equivalents

References customisePostEra_Run2_2017().

◆ customisePostEra_Run2_2018()

def RecoTLR.customisePostEra_Run2_2018 (   process)

Definition at line 73 of file RecoTLR.py.

73 def customisePostEra_Run2_2018(process):
74  #start with a repeat of 2017
76  return process
77 

References customisePostEra_Run2_2017().

Referenced by customise_HI_PostEra_Run2_2018(), customisePostEra_Run2_2018_pp_on_AA(), and customisePostEra_Run3().

◆ customisePostEra_Run2_2018_express_trackingOnly()

def RecoTLR.customisePostEra_Run2_2018_express_trackingOnly (   process)

◆ customisePostEra_Run2_2018_harvesting_trackingOnly()

def RecoTLR.customisePostEra_Run2_2018_harvesting_trackingOnly (   process)

Definition at line 83 of file RecoTLR.py.

84  #start with a repeat of 2017
86  return process
87 

References customisePostEra_Run2_2017_harvesting_trackingOnly().

◆ customisePostEra_Run2_2018_pp_on_AA()

def RecoTLR.customisePostEra_Run2_2018_pp_on_AA (   process)

Definition at line 92 of file RecoTLR.py.

94  return process
95 

References customisePostEra_Run2_2018().

◆ customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly()

def RecoTLR.customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly (   process)

Definition at line 96 of file RecoTLR.py.

98  from DQM.TrackingMonitorSource.PPonAATrackingOnly_custom import customise_PPonAATrackingOnlyDQM as _customise_PPonAATrackingOnlyDQM
99  _customise_PPonAATrackingOnlyDQM(process)
100  return process
101 
102 # 2021 equivalents

References customisePostEra_Run2_2018_express_trackingOnly().

◆ customisePostEra_Run2_25ns()

def RecoTLR.customisePostEra_Run2_25ns (   process)

Definition at line 39 of file RecoTLR.py.

39 def customisePostEra_Run2_25ns(process):
40  _hcalCustoms25ns(process)
41  return process
42 

References _hcalCustoms25ns().

◆ customisePostEra_Run3()

def RecoTLR.customisePostEra_Run3 (   process)

Definition at line 103 of file RecoTLR.py.

103 def customisePostEra_Run3(process):
104  #start with a repeat of 2018
106  return process
107 

References customisePostEra_Run2_2018().

◆ customisePostEra_Run3_express_trackingOnly()

def RecoTLR.customisePostEra_Run3_express_trackingOnly (   process)

Definition at line 108 of file RecoTLR.py.

109  #start with a repeat of 2018
111  return process
112 

References customisePostEra_Run2_2018_express_trackingOnly().

◆ customisePPData()

def RecoTLR.customisePPData (   process)

Definition at line 114 of file RecoTLR.py.

114 def customisePPData(process):
115  #deprecated process= customiseCommon(process)
116 
118  return process
119 
120 

Referenced by customiseExpress(), customisePrompt(), and customiseVALSKIM().

◆ customisePPMC()

def RecoTLR.customisePPMC (   process)

Definition at line 122 of file RecoTLR.py.

122 def customisePPMC(process):
123  #deprecated process=customiseCommon(process)
124  #left as a place holder to alter production sequences in case of emergencies
125  return process
126 

◆ customisePrompt()

def RecoTLR.customisePrompt (   process)

Definition at line 151 of file RecoTLR.py.

151 def customisePrompt(process):
152  process= customisePPData(process)
153  process = _addLumiProducer(process)
154 
155  return process
156 

References _addLumiProducer(), and customisePPData().

◆ customisePromptHI()

def RecoTLR.customisePromptHI (   process)

Definition at line 172 of file RecoTLR.py.

172 def customisePromptHI(process):
173  process = customiseCommonHI(process)
174 
175  process = _addLumiProducer(process)
176 
177  return process
178 

References _addLumiProducer(), and customiseCommonHI().

◆ customiseRun2CommonHI()

def RecoTLR.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 239 of file RecoTLR.py.

239 def customiseRun2CommonHI(process):
240  process = customiseDataRun2Common_withStage1(process)
241 
242  process = _overridesFor50ns(process)
243  # HI Specific additional customizations:
244  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
245  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
246 
247  return process

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

◆ customiseVALSKIM()

def RecoTLR.customiseVALSKIM (   process)

Definition at line 137 of file RecoTLR.py.

137 def customiseVALSKIM(process):
138  print("WARNING")
139  print("this method is outdated, please use RecoTLR.customisePPData")
140  process= customisePPData(process)
141  return process
142 
143 

References customisePPData(), and edm.print().

RecoTLR.customisePostEra_Run2_2016
def customisePostEra_Run2_2016(process)
Definition: RecoTLR.py:43
RecoTLR.customiseCommonHI
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:161
RecoTLR.customisePostEra_Run2_2018_pp_on_AA
def customisePostEra_Run2_2018_pp_on_AA(process)
Definition: RecoTLR.py:92
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:137
RecoTLR.customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly(process)
Definition: RecoTLR.py:96
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:64
RecoTLR.customisePPMC
def customisePPMC(process)
Definition: RecoTLR.py:122
RecoTLR.customiseCosmicData
def customiseCosmicData(process)
Definition: RecoTLR.py:128
RecoTLR.customisePostEra_Run2_2017_ppRef
def customisePostEra_Run2_2017_ppRef(process)
Definition: RecoTLR.py:68
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:78
RecoTLR._hcalCustoms25ns
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:33
RecoTLR._addLumiProducer
def _addLumiProducer(process)
Definition: RecoTLR.py:12
BeamSpotOnline_cfi
lumiProducer_cff
RecoTLR.customiseRun2CommonHI
def customiseRun2CommonHI(process)
keep it in case modification is needed
Definition: RecoTLR.py:239
RecoTLR.customisePostEra_Run3_express_trackingOnly
def customisePostEra_Run3_express_trackingOnly(process)
Definition: RecoTLR.py:108
RecoTLR.customisePostEra_Run2_2018_harvesting_trackingOnly
def customisePostEra_Run2_2018_harvesting_trackingOnly(process)
Definition: RecoTLR.py:83
postLS1Customs.customise_DQM_25ns
def customise_DQM_25ns(process)
Definition: postLS1Customs.py:178
RecoTLR.customiseExpressHI
def customiseExpressHI(process)
Definition: RecoTLR.py:165
RecoTLR.customiseDataRun2Common
def customiseDataRun2Common(process)
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:187
RecoTLR.customisePostEra_Run2_2017_express_trackingOnly
def customisePostEra_Run2_2017_express_trackingOnly(process)
Definition: RecoTLR.py:53
RecoTLR.customiseDataRun2Common_25ns
def customiseDataRun2Common_25ns(process)
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:219
RecoTLR.customisePromptHI
def customisePromptHI(process)
Definition: RecoTLR.py:172
RecoTLR.customisePostEra_Run2_25ns
def customisePostEra_Run2_25ns(process)
Definition: RecoTLR.py:39
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
RecoTLR.customisePostEra_Run2_2017
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:47
RecoTLR.customiseExpress
def customiseExpress(process)
Definition: RecoTLR.py:145
RecoTLR.customiseCosmicMC
def customiseCosmicMC(process)
Definition: RecoTLR.py:133
RecoTLR.customisePostEra_Run2_2018
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:73
RecoTLR.customiseDataRun2Common_withStage1
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:209
RecoTLR.customisePrompt
def customisePrompt(process)
Definition: RecoTLR.py:151
RecoTLR.customise_HI_PostEra_Run2_2018
def customise_HI_PostEra_Run2_2018(process)
Definition: RecoTLR.py:88
RecoTLR.customisePostEra_Run3
def customisePostEra_Run3(process)
Definition: RecoTLR.py:103
customsPostLS1.customiseL1RecoForStage1
def customiseL1RecoForStage1(process)
Definition: customsPostLS1.py:82
RecoTLR.customiseDataRun2Common_50nsRunsAfter253000
def customiseDataRun2Common_50nsRunsAfter253000(process)
Definition: RecoTLR.py:230
RecoTLR.customisePostEra_Run2_2017_harvesting_trackingOnly
def customisePostEra_Run2_2017_harvesting_trackingOnly(process)
Definition: RecoTLR.py:59
RecoTLR._overridesFor50ns
def _overridesFor50ns(process)
Definition: RecoTLR.py:23
RecoTLR.customisePPData
def customisePPData(process)
Definition: RecoTLR.py:114