CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
RecoTLR Namespace Reference

Functions

def _addLumiProducer
 
def _hcalCustoms25ns
 post-era customizations these are here instead of generating Data-specific eras More...
 
def _overridesFor50ns
 
def _swapOfflineBSwithOnline
 common utilities More...
 
def customiseCommonHI
 Heavy Ions. More...
 
def customiseCosmicData
 
def customiseCosmicDataRun2Deprecated
 
def customiseCosmicMC
 
def customiseDataRun2Common
 ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X. More...
 
def customiseDataRun2Common_25ns
 common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 ) More...
 
def customiseDataRun2Common_50nsRunsAfter253000
 
def customiseDataRun2Common_withStage1
 
def customiseExpress
 
def customiseExpressHI
 
def customiseExpressRun2Deprecated
 
def customiseExpressRun2Deprecated_50ns
 
def customiseExpressRun2DeprecatedB0T
 
def customisePostEra_Run2_2016
 
def customisePostEra_Run2_25ns
 
def customisePPData
 
def customisePPMC
 
def customisePrompt
 
def customisePromptHI
 
def customisePromptRun2Deprecated
 
def customisePromptRun2Deprecated_50ns
 
def customisePromptRun2DeprecatedB0T
 
def customiseRun2CommonHI
 keep it in case modification is needed More...
 
def customiseRun2DeprecatedExpressHI
 
def customiseRun2DeprecatedPromptHI
 
def customiseVALSKIM
 

Function Documentation

def RecoTLR._addLumiProducer (   process)
private

Definition at line 11 of file RecoTLR.py.

Referenced by customisePrompt(), customisePromptHI(), and customiseRun2DeprecatedPromptHI().

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

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

Definition at line 32 of file RecoTLR.py.

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

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

Definition at line 22 of file RecoTLR.py.

Referenced by customiseDataRun2Common_50nsRunsAfter253000(), and customiseRun2CommonHI().

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

common utilities

Definition at line 6 of file RecoTLR.py.

Referenced by customiseExpress(), customiseExpressHI(), and customiseRun2DeprecatedExpressHI().

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

Heavy Ions.

keep it in case modification is needed

Definition at line 95 of file RecoTLR.py.

Referenced by customiseExpressHI(), and customisePromptHI().

95 
96 def customiseCommonHI(process):
97  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:95
def RecoTLR.customiseCosmicData (   process)

Definition at line 62 of file RecoTLR.py.

Referenced by customiseCosmicDataRun2Deprecated().

62 
63 def customiseCosmicData(process):
64  return process
65 
def customiseCosmicData
Definition: RecoTLR.py:62
def RecoTLR.customiseCosmicDataRun2Deprecated (   process)

Definition at line 184 of file RecoTLR.py.

References customiseCosmicData(), and customiseDataRun2Common_25ns().

186  process = customiseCosmicData(process)
187  process = customiseDataRun2Common_25ns(process)
188  return process
def customiseCosmicData
Definition: RecoTLR.py:62
def customiseCosmicDataRun2Deprecated
Definition: RecoTLR.py:184
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:153
def RecoTLR.customiseCosmicMC (   process)

Definition at line 67 of file RecoTLR.py.

67 
68 def customiseCosmicMC(process):
69  return process
def customiseCosmicMC
Definition: RecoTLR.py:67
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 121 of file RecoTLR.py.

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

Referenced by customiseDataRun2Common_withStage1().

122 def customiseDataRun2Common(process):
123  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
124  process = unganged_me1a_geometry(process)
125  process = customise_csc_LocalReco(process)
126 
127  if hasattr(process,'valCscTriggerPrimitiveDigis'):
128  #this is not doing anything at the moment
129  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
130  if hasattr(process,'valCsctfTrackDigis'):
131  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
132 
133  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
134  if hasattr(process,'RawToDigi'):
135  process=customise_RawToDigi(process)
136  if hasattr(process,'reconstruction'):
137  process=customise_Reco(process)
138  if hasattr(process,'dqmoffline_step'):
139  process=customise_DQM(process)
140 
141  return process
142 
# add stage1
def customiseDataRun2Common
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:121
def unganged_me1a_geometry
Definition: muonCustoms.py:4
def customise_csc_LocalReco
Definition: muonCustoms.py:207
def customise_RawToDigi
Definition: gemCustoms.py:97
def customise_DQM
Definition: gemCustoms.py:110
def customise_Reco
Definition: gemCustoms.py:100
def RecoTLR.customiseDataRun2Common_25ns (   process)

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

Definition at line 153 of file RecoTLR.py.

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

Referenced by customiseCosmicDataRun2Deprecated(), customiseExpressRun2Deprecated(), and customisePromptRun2Deprecated().

154 def customiseDataRun2Common_25ns(process):
155  process = customiseDataRun2Common_withStage1(process)
156 
157  _hcalCustoms25ns(process)
158 
159  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
160  if hasattr(process,'dqmoffline_step'):
161  process=customise_DQM_25ns(process)
162  return process
163 
# common+50ns. Needed only for runs >= 253000 if taken with 50ns
def _hcalCustoms25ns
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:32
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:153
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:143
def RecoTLR.customiseDataRun2Common_50nsRunsAfter253000 (   process)

Definition at line 164 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

Referenced by customiseExpressRun2Deprecated_50ns(), and customisePromptRun2Deprecated_50ns().

166  process = customiseDataRun2Common_withStage1(process)
167 
168  process = _overridesFor50ns(process)
169 
170  return process
def _overridesFor50ns
Definition: RecoTLR.py:22
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:164
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:143
def RecoTLR.customiseDataRun2Common_withStage1 (   process)

Definition at line 143 of file RecoTLR.py.

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

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

145  process = customiseDataRun2Common(process)
146 
147  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
148  process=customiseL1RecoForStage1(process)
149 
150  return process
def customiseDataRun2Common
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:121
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:143
def customiseL1RecoForStage1
def RecoTLR.customiseExpress (   process)

Definition at line 79 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customisePPData().

Referenced by customiseExpressRun2Deprecated(), and customiseExpressRun2Deprecated_50ns().

79 
80 def customiseExpress(process):
81  process= customisePPData(process)
82  process = _swapOfflineBSwithOnline(process)
83  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:6
def customisePPData
Definition: RecoTLR.py:48
def customiseExpress
Definition: RecoTLR.py:79
def RecoTLR.customiseExpressHI (   process)

Definition at line 99 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseCommonHI().

99 
100 def customiseExpressHI(process):
101  process = customiseCommonHI(process)
102  process = _swapOfflineBSwithOnline(process)
103 
104  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:95
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:6
def customiseExpressHI
Definition: RecoTLR.py:99
def RecoTLR.customiseExpressRun2Deprecated (   process)

Definition at line 190 of file RecoTLR.py.

References customiseDataRun2Common_25ns(), and customiseExpress().

Referenced by customiseExpressRun2DeprecatedB0T().

191 def customiseExpressRun2Deprecated(process):
192  process = customiseExpress(process)
193  process = customiseDataRun2Common_25ns(process)
194  return process
def customiseExpressRun2Deprecated
Definition: RecoTLR.py:190
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:153
def customiseExpress
Definition: RecoTLR.py:79
def RecoTLR.customiseExpressRun2Deprecated_50ns (   process)

Definition at line 195 of file RecoTLR.py.

References customiseDataRun2Common_50nsRunsAfter253000(), and customiseExpress().

197  process = customiseExpress(process)
199  return process
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:164
def customiseExpressRun2Deprecated_50ns
Definition: RecoTLR.py:195
def customiseExpress
Definition: RecoTLR.py:79
def RecoTLR.customiseExpressRun2DeprecatedB0T (   process)

Definition at line 200 of file RecoTLR.py.

References customiseExpressRun2Deprecated().

202  from RecoTracker.Configuration.customiseForRunI import customiseForRunI
203  process=customiseForRunI(process)
204  process=customiseExpressRun2Deprecated(process)
205  return process
def customiseExpressRun2DeprecatedB0T
Definition: RecoTLR.py:200
def customiseExpressRun2Deprecated
Definition: RecoTLR.py:190
def RecoTLR.customisePostEra_Run2_2016 (   process)

Definition at line 42 of file RecoTLR.py.

References _hcalCustoms25ns().

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

Definition at line 38 of file RecoTLR.py.

References _hcalCustoms25ns().

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

Definition at line 48 of file RecoTLR.py.

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

48 
49 def customisePPData(process):
50  #deprecated process= customiseCommon(process)
51  ##all customisation for data are now deprecated to Reconstruction_Data_cff
52  #left as a place holder to alter production sequences in case of emergencies
53  return process
54 
def customisePPData
Definition: RecoTLR.py:48
def RecoTLR.customisePPMC (   process)

Definition at line 56 of file RecoTLR.py.

56 
57 def customisePPMC(process):
58  #deprecated process=customiseCommon(process)
59  #left as a place holder to alter production sequences in case of emergencies
60  return process
def customisePPMC
Definition: RecoTLR.py:56
def RecoTLR.customisePrompt (   process)

Definition at line 85 of file RecoTLR.py.

References _addLumiProducer(), and customisePPData().

Referenced by customisePromptRun2Deprecated(), and customisePromptRun2Deprecated_50ns().

85 
86 def customisePrompt(process):
87  process= customisePPData(process)
88  process = _addLumiProducer(process)
89 
90  return process
def _addLumiProducer
Definition: RecoTLR.py:11
def customisePPData
Definition: RecoTLR.py:48
def customisePrompt
Definition: RecoTLR.py:85
def RecoTLR.customisePromptHI (   process)

Definition at line 106 of file RecoTLR.py.

References _addLumiProducer(), and customiseCommonHI().

107 def customisePromptHI(process):
108  process = customiseCommonHI(process)
109 
110  process = _addLumiProducer(process)
111 
112  return process
def customisePromptHI
Definition: RecoTLR.py:106
def _addLumiProducer
Definition: RecoTLR.py:11
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:95
def RecoTLR.customisePromptRun2Deprecated (   process)

Definition at line 207 of file RecoTLR.py.

References customiseDataRun2Common_25ns(), and customisePrompt().

Referenced by customisePromptRun2DeprecatedB0T().

208 def customisePromptRun2Deprecated(process):
209  process = customisePrompt(process)
210  process = customiseDataRun2Common_25ns(process)
211  return process
def customisePromptRun2Deprecated
Definition: RecoTLR.py:207
def customisePrompt
Definition: RecoTLR.py:85
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:153
def RecoTLR.customisePromptRun2Deprecated_50ns (   process)

Definition at line 212 of file RecoTLR.py.

References customiseDataRun2Common_50nsRunsAfter253000(), and customisePrompt().

214  process = customisePrompt(process)
216  return process
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:164
def customisePrompt
Definition: RecoTLR.py:85
def customisePromptRun2Deprecated_50ns
Definition: RecoTLR.py:212
def RecoTLR.customisePromptRun2DeprecatedB0T (   process)

Definition at line 217 of file RecoTLR.py.

References customisePromptRun2Deprecated().

219  from RecoTracker.Configuration.customiseForRunI import customiseForRunI
220  process=customiseForRunI(process)
221  process=customisePromptRun2Deprecated(process)
222  return process
def customisePromptRun2Deprecated
Definition: RecoTLR.py:207
def customisePromptRun2DeprecatedB0T
Definition: RecoTLR.py:217
def RecoTLR.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 173 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

Referenced by customiseRun2DeprecatedExpressHI(), and customiseRun2DeprecatedPromptHI().

174 def customiseRun2CommonHI(process):
175  process = customiseDataRun2Common_withStage1(process)
176 
177  process = _overridesFor50ns(process)
178  # HI Specific additional customizations:
179  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
180  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
181 
182  return process
def _overridesFor50ns
Definition: RecoTLR.py:22
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:173
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:143
def RecoTLR.customiseRun2DeprecatedExpressHI (   process)

Definition at line 224 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseRun2CommonHI().

226  process = customiseRun2CommonHI(process)
227  process = _swapOfflineBSwithOnline(process)
228 
229  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:6
def customiseRun2DeprecatedExpressHI
Definition: RecoTLR.py:224
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:173
def RecoTLR.customiseRun2DeprecatedPromptHI (   process)

Definition at line 231 of file RecoTLR.py.

References _addLumiProducer(), and customiseRun2CommonHI().

233  process = customiseRun2CommonHI(process)
234 
235  process = _addLumiProducer(process)
236 
237  return process
def _addLumiProducer
Definition: RecoTLR.py:11
def customiseRun2DeprecatedPromptHI
Definition: RecoTLR.py:231
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:173
def RecoTLR.customiseVALSKIM (   process)

Definition at line 71 of file RecoTLR.py.

References customisePPData().

71 
72 def customiseVALSKIM(process):
73  print "WARNING"
74  print "this method is outdated, please use RecoTLR.customisePPData"
75  process= customisePPData(process)
76  return process
77 
def customiseVALSKIM
Definition: RecoTLR.py:71
def customisePPData
Definition: RecoTLR.py:48