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 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

def RecoTLR._addLumiProducer (   process)
private

Definition at line 12 of file RecoTLR.py.

Referenced by customisePrompt(), and customisePromptHI().

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 
def _addLumiProducer(process)
Definition: RecoTLR.py:12
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.

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

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 
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:33
def RecoTLR._overridesFor50ns (   process)
private

Definition at line 23 of file RecoTLR.py.

Referenced by customiseDataRun2Common_50nsRunsAfter253000(), and customiseRun2CommonHI().

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

common utilities

Definition at line 7 of file RecoTLR.py.

Referenced by customiseExpress(), and customiseExpressHI().

8  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
9  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
10  return process
11 
def _swapOfflineBSwithOnline(process)
common utilities
Definition: RecoTLR.py:7
def RecoTLR.customise_HI_PostEra_Run2_2018 (   process)

Definition at line 88 of file RecoTLR.py.

References customisePostEra_Run2_2018().

90  return process
91 
def customise_HI_PostEra_Run2_2018(process)
Definition: RecoTLR.py:88
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:73
def RecoTLR.customiseCommonHI (   process)

Heavy Ions.

keep it in case modification is needed

Definition at line 150 of file RecoTLR.py.

Referenced by customiseExpressHI(), and customisePromptHI().

150 def customiseCommonHI(process):
151  return process
152 
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:150
def RecoTLR.customiseCosmicData (   process)

Definition at line 117 of file RecoTLR.py.

117 def customiseCosmicData(process):
118  return process
119 
120 
def customiseCosmicData(process)
Definition: RecoTLR.py:117
def RecoTLR.customiseCosmicMC (   process)

Definition at line 122 of file RecoTLR.py.

122 def customiseCosmicMC(process):
123  return process
124 
def customiseCosmicMC(process)
Definition: RecoTLR.py:122
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 176 of file RecoTLR.py.

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

Referenced by customiseDataRun2Common_withStage1().

177  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
178  process = unganged_me1a_geometry(process)
179  process = customise_csc_LocalReco(process)
180 
181  if hasattr(process,'valCscTriggerPrimitiveDigis'):
182  #this is not doing anything at the moment
183  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
184  if hasattr(process,'valCsctfTrackDigis'):
185  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
186 
187  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
188  if hasattr(process,'RawToDigi'):
189  process=customise_RawToDigi(process)
190  if hasattr(process,'reconstruction'):
191  process=customise_Reco(process)
192  if hasattr(process,'dqmoffline_step'):
193  process=customise_DQM(process)
194 
195  return process
196 
197 # add stage1
def customise_Reco(process)
def customise_csc_LocalReco(process)
Definition: muonCustoms.py:208
def customise_DQM(process)
def customise_RawToDigi(process)
def customiseDataRun2Common(process)
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:176
def unganged_me1a_geometry(process)
Definition: muonCustoms.py:5
def RecoTLR.customiseDataRun2Common_25ns (   process)

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

Definition at line 208 of file RecoTLR.py.

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

209  process = customiseDataRun2Common_withStage1(process)
210 
211  _hcalCustoms25ns(process)
212 
213  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
214  if hasattr(process,'dqmoffline_step'):
215  process=customise_DQM_25ns(process)
216  return process
217 
218 # common+50ns. Needed only for runs >= 253000 if taken with 50ns
def customise_DQM_25ns(process)
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:33
def customiseDataRun2Common_25ns(process)
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:208
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:198
def RecoTLR.customiseDataRun2Common_50nsRunsAfter253000 (   process)

Definition at line 219 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

220  process = customiseDataRun2Common_withStage1(process)
221 
222  process = _overridesFor50ns(process)
223 
224  return process
225 
def _overridesFor50ns(process)
Definition: RecoTLR.py:23
def customiseDataRun2Common_50nsRunsAfter253000(process)
Definition: RecoTLR.py:219
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:198
def RecoTLR.customiseDataRun2Common_withStage1 (   process)

Definition at line 198 of file RecoTLR.py.

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

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

199  process = customiseDataRun2Common(process)
200 
201  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
202  process=customiseL1RecoForStage1(process)
203 
204  return process
205 
def customiseDataRun2Common(process)
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:176
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:198
def customiseL1RecoForStage1(process)
def RecoTLR.customiseExpress (   process)

Definition at line 134 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customisePPData().

134 def customiseExpress(process):
135  process= customisePPData(process)
136  process = _swapOfflineBSwithOnline(process)
137  return process
138 
def customiseExpress(process)
Definition: RecoTLR.py:134
def customisePPData(process)
Definition: RecoTLR.py:103
def _swapOfflineBSwithOnline(process)
common utilities
Definition: RecoTLR.py:7
def RecoTLR.customiseExpressHI (   process)

Definition at line 154 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseCommonHI().

154 def customiseExpressHI(process):
155  process = customiseCommonHI(process)
156  process = _swapOfflineBSwithOnline(process)
157 
158  return process
159 
def customiseExpressHI(process)
Definition: RecoTLR.py:154
def _swapOfflineBSwithOnline(process)
common utilities
Definition: RecoTLR.py:7
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:150
def RecoTLR.customisePostEra_Run2_2016 (   process)

Definition at line 43 of file RecoTLR.py.

References _hcalCustoms25ns().

44  _hcalCustoms25ns(process)
45  return process
46 
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:33
def customisePostEra_Run2_2016(process)
Definition: RecoTLR.py:43
def RecoTLR.customisePostEra_Run2_2017 (   process)

Definition at line 47 of file RecoTLR.py.

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

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

Definition at line 53 of file RecoTLR.py.

References customisePostEra_Run2_2017().

Referenced by customisePostEra_Run2_2018_express_trackingOnly().

55  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
56  _customise_HPbeamspot(process)
57  return process
58 
def customisePostEra_Run2_2017_express_trackingOnly(process)
Definition: RecoTLR.py:53
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:47
def RecoTLR.customisePostEra_Run2_2017_harvesting_trackingOnly (   process)

Definition at line 59 of file RecoTLR.py.

Referenced by customisePostEra_Run2_2018_harvesting_trackingOnly().

60  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
61  _customise_HPbeamspot(process)
62  return process
63 
def customisePostEra_Run2_2017_harvesting_trackingOnly(process)
Definition: RecoTLR.py:59
def RecoTLR.customisePostEra_Run2_2017_pp_on_XeXe (   process)

Definition at line 64 of file RecoTLR.py.

References customisePostEra_Run2_2017().

66  return process
67 
def customisePostEra_Run2_2017_pp_on_XeXe(process)
Definition: RecoTLR.py:64
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:47
def RecoTLR.customisePostEra_Run2_2017_ppRef (   process)

Definition at line 68 of file RecoTLR.py.

References customisePostEra_Run2_2017().

70  return process
71 
72 # 2018 equivalents
def customisePostEra_Run2_2017_ppRef(process)
Definition: RecoTLR.py:68
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:47
def RecoTLR.customisePostEra_Run2_2018 (   process)

Definition at line 73 of file RecoTLR.py.

References customisePostEra_Run2_2017().

Referenced by customise_HI_PostEra_Run2_2018(), and customisePostEra_Run2_2018_pp_on_AA().

74  #start with a repeat of 2017
76  return process
77 
def customisePostEra_Run2_2017(process)
Definition: RecoTLR.py:47
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:73
def RecoTLR.customisePostEra_Run2_2018_express_trackingOnly (   process)

Definition at line 78 of file RecoTLR.py.

References customisePostEra_Run2_2017_express_trackingOnly().

Referenced by customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly().

79  #start with a repeat of 2017
81  return process
82 
def customisePostEra_Run2_2018_express_trackingOnly(process)
Definition: RecoTLR.py:78
def customisePostEra_Run2_2017_express_trackingOnly(process)
Definition: RecoTLR.py:53
def RecoTLR.customisePostEra_Run2_2018_harvesting_trackingOnly (   process)

Definition at line 83 of file RecoTLR.py.

References customisePostEra_Run2_2017_harvesting_trackingOnly().

84  #start with a repeat of 2017
86  return process
87 
def customisePostEra_Run2_2018_harvesting_trackingOnly(process)
Definition: RecoTLR.py:83
def customisePostEra_Run2_2017_harvesting_trackingOnly(process)
Definition: RecoTLR.py:59
def RecoTLR.customisePostEra_Run2_2018_pp_on_AA (   process)

Definition at line 92 of file RecoTLR.py.

References customisePostEra_Run2_2018().

94  return process
95 
def customisePostEra_Run2_2018(process)
Definition: RecoTLR.py:73
def customisePostEra_Run2_2018_pp_on_AA(process)
Definition: RecoTLR.py:92
def RecoTLR.customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly (   process)

Definition at line 96 of file RecoTLR.py.

References customisePostEra_Run2_2018_express_trackingOnly().

98  from DQM.TrackingMonitorSource.PPonAATrackingOnly_custom import customise_PPonAATrackingOnlyDQM as _customise_PPonAATrackingOnlyDQM
99  _customise_PPonAATrackingOnlyDQM(process)
100  return process
101 
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly(process)
Definition: RecoTLR.py:96
def customisePostEra_Run2_2018_express_trackingOnly(process)
Definition: RecoTLR.py:78
def RecoTLR.customisePostEra_Run2_25ns (   process)

Definition at line 39 of file RecoTLR.py.

References _hcalCustoms25ns().

40  _hcalCustoms25ns(process)
41  return process
42 
def _hcalCustoms25ns(process)
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:33
def customisePostEra_Run2_25ns(process)
Definition: RecoTLR.py:39
def RecoTLR.customisePPData (   process)

Definition at line 103 of file RecoTLR.py.

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

103 def customisePPData(process):
104  #deprecated process= customiseCommon(process)
105  ##all customisation for data are now deprecated to Reconstruction_Data_cff
106  #left as a place holder to alter production sequences in case of emergencies
107  return process
108 
109 
def customisePPData(process)
Definition: RecoTLR.py:103
def RecoTLR.customisePPMC (   process)

Definition at line 111 of file RecoTLR.py.

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 
def customisePPMC(process)
Definition: RecoTLR.py:111
def RecoTLR.customisePrompt (   process)

Definition at line 140 of file RecoTLR.py.

References _addLumiProducer(), and customisePPData().

140 def customisePrompt(process):
141  process= customisePPData(process)
142  process = _addLumiProducer(process)
143 
144  return process
145 
def _addLumiProducer(process)
Definition: RecoTLR.py:12
def customisePrompt(process)
Definition: RecoTLR.py:140
def customisePPData(process)
Definition: RecoTLR.py:103
def RecoTLR.customisePromptHI (   process)

Definition at line 161 of file RecoTLR.py.

References _addLumiProducer(), and customiseCommonHI().

161 def customisePromptHI(process):
162  process = customiseCommonHI(process)
163 
164  process = _addLumiProducer(process)
165 
166  return process
167 
def _addLumiProducer(process)
Definition: RecoTLR.py:12
def customisePromptHI(process)
Definition: RecoTLR.py:161
def customiseCommonHI(process)
Heavy Ions.
Definition: RecoTLR.py:150
def RecoTLR.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 228 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

229  process = customiseDataRun2Common_withStage1(process)
230 
231  process = _overridesFor50ns(process)
232  # HI Specific additional customizations:
233  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
234  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
235 
236  return process
237 
def _overridesFor50ns(process)
Definition: RecoTLR.py:23
def customiseRun2CommonHI(process)
keep it in case modification is needed
Definition: RecoTLR.py:228
def customiseDataRun2Common_withStage1(process)
Definition: RecoTLR.py:198
def RecoTLR.customiseVALSKIM (   process)

Definition at line 126 of file RecoTLR.py.

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

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 
def customiseVALSKIM(process)
Definition: RecoTLR.py:126
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def customisePPData(process)
Definition: RecoTLR.py:103