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 _swapOfflineBSwithOnline
 common utilities More...
 
def customiseCommonHI
 Heavy Ions. More...
 
def customiseCosmicData
 
def customiseCosmicDataRun2
 
def customiseCosmicMC
 
def customiseDataRun2Common
 this is supposed to be added on top of other (Run1) data customs 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 customiseExpressRun2
 
def customiseExpressRun2_50ns
 
def customiseExpressRun2B0T
 
def customisePPData
 
def customisePPMC
 
def customisePrompt
 
def customisePromptHI
 
def customisePromptRun2
 
def customisePromptRun2_50ns
 
def customisePromptRun2B0T
 
def customiseRun2CommonHI
 keep it in case modification is needed More...
 
def customiseRun2ExpressHI
 
def customiseRun2PromptHI
 
def customiseVALSKIM
 

Function Documentation

def RecoTLR._addLumiProducer (   process)
private

Definition at line 13 of file RecoTLR.py.

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

13 
14 def _addLumiProducer(process):
15  if not hasattr(process,'lumiProducer'):
16  #unscheduled..
17  from RecoLuminosity.LumiProducer.lumiProducer_cff import lumiProducer,LumiDBService
18  process.lumiProducer=lumiProducer
19  #if it's scheduled
20  if hasattr(process, 'reconstruction_step'):
21  process.reconstruction_step+=process.lumiProducer
22 
23  return process
24 
25 #gone with the fact that there is no difference between production and development sequence
26 #def customiseCommon(process):
27 # return (process)
28 
def _addLumiProducer
Definition: RecoTLR.py:13
def RecoTLR._swapOfflineBSwithOnline (   process)
private

common utilities

Definition at line 8 of file RecoTLR.py.

Referenced by customiseExpress(), customiseExpressHI(), customisePromptHI(), customiseRun2ExpressHI(), and customiseRun2PromptHI().

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

Heavy Ions.

keep it in case modification is needed

Definition at line 176 of file RecoTLR.py.

Referenced by customiseExpressHI(), and customisePromptHI().

177 def customiseCommonHI(process):
178  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:176
def RecoTLR.customiseCosmicData (   process)

Definition at line 44 of file RecoTLR.py.

Referenced by customiseCosmicDataRun2().

44 
45 def customiseCosmicData(process):
46 
47  return process
48 
49 
def customiseCosmicData
Definition: RecoTLR.py:44
def RecoTLR.customiseCosmicDataRun2 (   process)

Definition at line 106 of file RecoTLR.py.

References customiseCosmicData(), and customiseDataRun2Common_25ns().

107 def customiseCosmicDataRun2(process):
108  process = customiseCosmicData(process)
109  process = customiseDataRun2Common_25ns(process)
110  return process
111 
def customiseCosmicDataRun2
Definition: RecoTLR.py:106
def customiseCosmicData
Definition: RecoTLR.py:44
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:84
def RecoTLR.customiseCosmicMC (   process)

Definition at line 113 of file RecoTLR.py.

114 def customiseCosmicMC(process):
115 
116  return process
def customiseCosmicMC
Definition: RecoTLR.py:113
def RecoTLR.customiseDataRun2Common (   process)

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

Definition at line 52 of file RecoTLR.py.

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

Referenced by customiseDataRun2Common_withStage1().

52 
53 def customiseDataRun2Common(process):
54  from SLHCUpgradeSimulations.Configuration.muonCustoms import unganged_me1a_geometry,customise_csc_LocalReco
55  process = unganged_me1a_geometry(process)
56  process = customise_csc_LocalReco(process)
57 
58  if hasattr(process,'valCscTriggerPrimitiveDigis'):
59  #this is not doing anything at the moment
60  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.bool(False)
61  if hasattr(process,'valCsctfTrackDigis'):
62  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
63 
64  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
65  if hasattr(process,'RawToDigi'):
66  process=customise_RawToDigi(process)
67  if hasattr(process,'reconstruction'):
68  process=customise_Reco(process)
69  if hasattr(process,'dqmoffline_step'):
70  process=customise_DQM(process)
71 
72  return process
73 
# add stage1
def customiseDataRun2Common
this is supposed to be added on top of other (Run1) data customs
Definition: RecoTLR.py:52
def unganged_me1a_geometry
Definition: muonCustoms.py:4
def customise_csc_LocalReco
Definition: muonCustoms.py:207
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def customise_RawToDigi
Definition: HCalCustoms.py:105
def customise_Reco
Definition: HCalCustoms.py:138
def RecoTLR.customiseDataRun2Common_25ns (   process)

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

Definition at line 84 of file RecoTLR.py.

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

Referenced by customiseCosmicDataRun2(), customiseExpressRun2(), and customisePromptRun2().

84 
85 def customiseDataRun2Common_25ns(process):
86  process = customiseDataRun2Common_withStage1(process)
87 
88  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
89  if hasattr(process,'dqmoffline_step'):
90  process=customise_DQM_25ns(process)
91  return process
92 
# common+50ns. Needed only for runs >= 253000 if taken with 50ns
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:84
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:74
def RecoTLR.customiseDataRun2Common_50nsRunsAfter253000 (   process)

Definition at line 93 of file RecoTLR.py.

References customiseDataRun2Common_withStage1().

Referenced by customiseExpressRun2_50ns(), and customisePromptRun2_50ns().

93 
95  process = customiseDataRun2Common_withStage1(process)
96 
97  if hasattr(process,'particleFlowClusterECAL'):
98  process.particleFlowClusterECAL.energyCorrector.autoDetectBunchSpacing = False
99  process.particleFlowClusterECAL.energyCorrector.bunchSpacing = cms.int32(50)
100  if hasattr(process,'ecalMultiFitUncalibRecHit'):
101  process.ecalMultiFitUncalibRecHit.algoPSet.useLumiInfoRunHeader = False
102  process.ecalMultiFitUncalibRecHit.algoPSet.bunchSpacing = cms.int32(50)
103 
104  return process
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:93
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:74
def RecoTLR.customiseDataRun2Common_withStage1 (   process)

Definition at line 74 of file RecoTLR.py.

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

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

74 
76  process = customiseDataRun2Common(process)
77 
78  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
79  process=customiseL1RecoForStage1(process)
80 
81  return process
def customiseDataRun2Common
this is supposed to be added on top of other (Run1) data customs
Definition: RecoTLR.py:52
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:74
def customiseL1RecoForStage1
def RecoTLR.customiseExpress (   process)

Definition at line 126 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customisePPData().

Referenced by customiseExpressRun2(), and customiseExpressRun2_50ns().

127 def customiseExpress(process):
128  process= customisePPData(process)
129  process = _swapOfflineBSwithOnline(process)
130 
131  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def customisePPData
Definition: RecoTLR.py:30
def customiseExpress
Definition: RecoTLR.py:126
def RecoTLR.customiseExpressHI (   process)

Definition at line 180 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseCommonHI().

Referenced by Impl.HeavyIons.HeavyIons.expressProcessing().

181 def customiseExpressHI(process):
182  process = customiseCommonHI(process)
183  process = _swapOfflineBSwithOnline(process)
184 
185  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:176
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def customiseExpressHI
Definition: RecoTLR.py:180
def RecoTLR.customiseExpressRun2 (   process)

Definition at line 133 of file RecoTLR.py.

References customiseDataRun2Common_25ns(), and customiseExpress().

Referenced by customiseExpressRun2B0T().

134 def customiseExpressRun2(process):
135  process = customiseExpress(process)
136  process = customiseDataRun2Common_25ns(process)
137  return process
def customiseExpressRun2
Definition: RecoTLR.py:133
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:84
def customiseExpress
Definition: RecoTLR.py:126
def RecoTLR.customiseExpressRun2_50ns (   process)

Definition at line 138 of file RecoTLR.py.

References customiseDataRun2Common_50nsRunsAfter253000(), and customiseExpress().

139 def customiseExpressRun2_50ns(process):
140  process = customiseExpress(process)
142  return process
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:93
def customiseExpressRun2_50ns
Definition: RecoTLR.py:138
def customiseExpress
Definition: RecoTLR.py:126
def RecoTLR.customiseExpressRun2B0T (   process)

Definition at line 143 of file RecoTLR.py.

References customiseExpressRun2().

144 def customiseExpressRun2B0T(process):
145  process=customiseForRunI(process)
146  process=customiseExpressRun2(process)
147  return process
def customiseExpressRun2
Definition: RecoTLR.py:133
def customiseExpressRun2B0T
Definition: RecoTLR.py:143
def RecoTLR.customisePPData (   process)

Definition at line 30 of file RecoTLR.py.

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

30 
31 def customisePPData(process):
32  #deprecated process= customiseCommon(process)
33  ##all customisation for data are now deprecated to Reconstruction_Data_cff
34  #left as a place holder to alter production sequences in case of emergencies
35  return process
36 
def customisePPData
Definition: RecoTLR.py:30
def RecoTLR.customisePPMC (   process)

Definition at line 38 of file RecoTLR.py.

38 
39 def customisePPMC(process):
40  #deprecated process=customiseCommon(process)
41  #left as a place holder to alter production sequences in case of emergencies
42  return process
def customisePPMC
Definition: RecoTLR.py:38
def RecoTLR.customisePrompt (   process)

Definition at line 149 of file RecoTLR.py.

References _addLumiProducer(), and customisePPData().

Referenced by customisePromptRun2(), and customisePromptRun2_50ns().

150 def customisePrompt(process):
151  process= customisePPData(process)
152  process = _addLumiProducer(process)
153 
154  return process
def _addLumiProducer
Definition: RecoTLR.py:13
def customisePPData
Definition: RecoTLR.py:30
def customisePrompt
Definition: RecoTLR.py:149
def RecoTLR.customisePromptHI (   process)

Definition at line 187 of file RecoTLR.py.

References _addLumiProducer(), _swapOfflineBSwithOnline(), and customiseCommonHI().

Referenced by Impl.HeavyIons.HeavyIons.promptReco().

188 def customisePromptHI(process):
189  process = customiseCommonHI(process)
190  process = _swapOfflineBSwithOnline(process)
191 
192  process = _addLumiProducer(process)
193 
194  return process
def customisePromptHI
Definition: RecoTLR.py:187
def _addLumiProducer
Definition: RecoTLR.py:13
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:176
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def RecoTLR.customisePromptRun2 (   process)

Definition at line 156 of file RecoTLR.py.

References customiseDataRun2Common_25ns(), and customisePrompt().

Referenced by customisePromptRun2B0T().

157 def customisePromptRun2(process):
158  process = customisePrompt(process)
159  process = customiseDataRun2Common_25ns(process)
160  return process
def customisePromptRun2
Definition: RecoTLR.py:156
def customisePrompt
Definition: RecoTLR.py:149
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:84
def RecoTLR.customisePromptRun2_50ns (   process)

Definition at line 161 of file RecoTLR.py.

References customiseDataRun2Common_50nsRunsAfter253000(), and customisePrompt().

162 def customisePromptRun2_50ns(process):
163  process = customisePrompt(process)
165  return process
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:93
def customisePromptRun2_50ns
Definition: RecoTLR.py:161
def customisePrompt
Definition: RecoTLR.py:149
def RecoTLR.customisePromptRun2B0T (   process)

Definition at line 166 of file RecoTLR.py.

References customisePromptRun2().

167 def customisePromptRun2B0T(process):
168  process=customiseForRunI(process)
169  process=customisePromptRun2(process)
170  return process
171 
def customisePromptRun2
Definition: RecoTLR.py:156
def customisePromptRun2B0T
Definition: RecoTLR.py:166
def RecoTLR.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 197 of file RecoTLR.py.

References customiseDataRun2Common_withStage1().

Referenced by customiseRun2ExpressHI(), and customiseRun2PromptHI().

198 def customiseRun2CommonHI(process):
199  process = customiseDataRun2Common_withStage1(process)
200 
201  # HI Specific additional customizations:
202  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
203  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
204 
205  return process
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:197
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:74
def RecoTLR.customiseRun2ExpressHI (   process)

Definition at line 207 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseRun2CommonHI().

208 def customiseRun2ExpressHI(process):
209  process = customiseRun2CommonHI(process)
210  process = _swapOfflineBSwithOnline(process)
211 
212  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def customiseRun2ExpressHI
Definition: RecoTLR.py:207
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:197
def RecoTLR.customiseRun2PromptHI (   process)

Definition at line 214 of file RecoTLR.py.

References _addLumiProducer(), _swapOfflineBSwithOnline(), and customiseRun2CommonHI().

215 def customiseRun2PromptHI(process):
216  process = customiseRun2CommonHI(process)
217  process = _swapOfflineBSwithOnline(process)
218 
219  process = _addLumiProducer(process)
220 
221  return process
def _addLumiProducer
Definition: RecoTLR.py:13
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:8
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:197
def customiseRun2PromptHI
Definition: RecoTLR.py:214
def RecoTLR.customiseVALSKIM (   process)

Definition at line 118 of file RecoTLR.py.

References customisePPData().

119 def customiseVALSKIM(process):
120  print "WARNING"
121  print "this method is outdated, please use RecoTLR.customisePPData"
122  process= customisePPData(process)
123  return process
124 
def customiseVALSKIM
Definition: RecoTLR.py:118
def customisePPData
Definition: RecoTLR.py:30