CMS 3D CMS Logo

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

Functions

def _overridesFor50ns
 
def _swapOfflineBSwithOnline
 common utilities More...
 
def customise_HI_PostEra_Run2_2018
 
def customiseCommonHI
 Heavy Ions. More...
 
def customiseCosmicData
 
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 customisePostEra_Run2_2016
 
def customisePostEra_Run2_2017
 
def customisePostEra_Run2_2017_express_trackingOnly
 
def customisePostEra_Run2_2017_harvesting_trackingOnly
 
def customisePostEra_Run2_2017_pp_on_XeXe
 
def customisePostEra_Run2_2017_ppRef
 
def customisePostEra_Run2_2018
 
def customisePostEra_Run2_2018_express_trackingOnly
 
def customisePostEra_Run2_2018_harvesting_trackingOnly
 
def customisePostEra_Run2_2018_pp_on_AA
 
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly
 
def customisePostEra_Run2_25ns
 post-era customizations these are here instead of generating Data-specific eras More...
 
def customisePostEra_Run3
 
def customisePostEra_Run3_express_trackingOnly
 
def customisePPData
 
def customisePPMC
 
def customisePrompt
 
def customisePromptHI
 
def customiseRun2CommonHI
 keep it in case modification is needed More...
 
def customiseVALSKIM
 

Function Documentation

def RecoTLR._overridesFor50ns (   process)
private

Definition at line 17 of file RecoTLR.py.

Referenced by customiseDataRun2Common_50nsRunsAfter253000(), and customiseRun2CommonHI().

17 
18 def _overridesFor50ns(process):
19  process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
20  process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)
21 
22  return process
def _overridesFor50ns
Definition: RecoTLR.py:17
def RecoTLR._swapOfflineBSwithOnline (   process)
private

common utilities

Definition at line 7 of file RecoTLR.py.

Referenced by customiseExpress(), and customiseExpressHI().

7 
8 def _swapOfflineBSwithOnline(process):
9  import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
10  process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
11  timeThreshold = 999999 # for express allow >48h old payloads for replays. DO NOT CHANGE
12  )
13 
14  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
15  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
16  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:7
def RecoTLR.customise_HI_PostEra_Run2_2018 (   process)

Definition at line 72 of file RecoTLR.py.

References customisePostEra_Run2_2018().

72 
75  return process
def customise_HI_PostEra_Run2_2018
Definition: RecoTLR.py:72
def customisePostEra_Run2_2018
Definition: RecoTLR.py:57
def RecoTLR.customiseCommonHI (   process)

Heavy Ions.

keep it in case modification is needed

Definition at line 145 of file RecoTLR.py.

Referenced by customiseExpressHI(), and customisePromptHI().

146 def customiseCommonHI(process):
147  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:145
def RecoTLR.customiseCosmicData (   process)

Definition at line 113 of file RecoTLR.py.

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

Definition at line 118 of file RecoTLR.py.

119 def customiseCosmicMC(process):
120  return process
def customiseCosmicMC
Definition: RecoTLR.py:118
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 169 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().

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

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

Definition at line 201 of file RecoTLR.py.

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

202 def customiseDataRun2Common_25ns(process):
203  process = customiseDataRun2Common_withStage1(process)
204 
205  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
206  if hasattr(process,'dqmoffline_step'):
207  process=customise_DQM_25ns(process)
208  return process
209 
# 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:201
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:191
def RecoTLR.customiseDataRun2Common_50nsRunsAfter253000 (   process)

Definition at line 210 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

212  process = customiseDataRun2Common_withStage1(process)
213 
214  process = _overridesFor50ns(process)
215 
216  return process
def _overridesFor50ns
Definition: RecoTLR.py:17
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:210
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:191
def RecoTLR.customiseDataRun2Common_withStage1 (   process)

Definition at line 191 of file RecoTLR.py.

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

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

193  process = customiseDataRun2Common(process)
194 
195  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
196  process=customiseL1RecoForStage1(process)
197 
198  return process
def customiseDataRun2Common
ALL FUNCTIONS BELOW ARE GOING TO BE REMOVED IN 81X.
Definition: RecoTLR.py:169
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:191
def customiseL1RecoForStage1
def RecoTLR.customiseExpress (   process)

Definition at line 130 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customisePPData().

131 def customiseExpress(process):
132  process= customisePPData(process)
133  process = _swapOfflineBSwithOnline(process)
134  return process
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:7
def customisePPData
Definition: RecoTLR.py:99
def customiseExpress
Definition: RecoTLR.py:130
def RecoTLR.customiseExpressHI (   process)

Definition at line 149 of file RecoTLR.py.

References _swapOfflineBSwithOnline(), and customiseCommonHI().

150 def customiseExpressHI(process):
151  process = customiseCommonHI(process)
152  process = _swapOfflineBSwithOnline(process)
153 
154  return process
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:145
def _swapOfflineBSwithOnline
common utilities
Definition: RecoTLR.py:7
def customiseExpressHI
Definition: RecoTLR.py:149
def RecoTLR.customisePostEra_Run2_2016 (   process)

Definition at line 31 of file RecoTLR.py.

31 
32 def customisePostEra_Run2_2016(process):
33  return process
def customisePostEra_Run2_2016
Definition: RecoTLR.py:31
def RecoTLR.customisePostEra_Run2_2017 (   process)

Definition at line 34 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().

34 
35 def customisePostEra_Run2_2017(process):
36  return process
def customisePostEra_Run2_2017
Definition: RecoTLR.py:34
def RecoTLR.customisePostEra_Run2_2017_express_trackingOnly (   process)

Definition at line 37 of file RecoTLR.py.

References customisePostEra_Run2_2017().

Referenced by customisePostEra_Run2_2018_express_trackingOnly().

37 
40  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
41  _customise_HPbeamspot(process)
42  return process
def customisePostEra_Run2_2017
Definition: RecoTLR.py:34
def customisePostEra_Run2_2017_express_trackingOnly
Definition: RecoTLR.py:37
def RecoTLR.customisePostEra_Run2_2017_harvesting_trackingOnly (   process)

Definition at line 43 of file RecoTLR.py.

Referenced by customisePostEra_Run2_2018_harvesting_trackingOnly().

43 
45  from Calibration.TkAlCaRecoProducers.PCLHPbeamspot_custom import customise_HPbeamspot as _customise_HPbeamspot
46  _customise_HPbeamspot(process)
47  return process
def customisePostEra_Run2_2017_harvesting_trackingOnly
Definition: RecoTLR.py:43
def RecoTLR.customisePostEra_Run2_2017_pp_on_XeXe (   process)

Definition at line 48 of file RecoTLR.py.

References customisePostEra_Run2_2017().

48 
51  return process
def customisePostEra_Run2_2017_pp_on_XeXe
Definition: RecoTLR.py:48
def customisePostEra_Run2_2017
Definition: RecoTLR.py:34
def RecoTLR.customisePostEra_Run2_2017_ppRef (   process)

Definition at line 52 of file RecoTLR.py.

References customisePostEra_Run2_2017().

52 
55  return process
56 
# 2018 equivalents
def customisePostEra_Run2_2017_ppRef
Definition: RecoTLR.py:52
def customisePostEra_Run2_2017
Definition: RecoTLR.py:34
def RecoTLR.customisePostEra_Run2_2018 (   process)

Definition at line 57 of file RecoTLR.py.

References customisePostEra_Run2_2017().

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

57 
58 def customisePostEra_Run2_2018(process):
59  #start with a repeat of 2017
61  return process
def customisePostEra_Run2_2017
Definition: RecoTLR.py:34
def customisePostEra_Run2_2018
Definition: RecoTLR.py:57
def RecoTLR.customisePostEra_Run2_2018_express_trackingOnly (   process)

Definition at line 62 of file RecoTLR.py.

References customisePostEra_Run2_2017_express_trackingOnly().

Referenced by customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly(), and customisePostEra_Run3_express_trackingOnly().

62 
64  #start with a repeat of 2017
66  return process
def customisePostEra_Run2_2017_express_trackingOnly
Definition: RecoTLR.py:37
def customisePostEra_Run2_2018_express_trackingOnly
Definition: RecoTLR.py:62
def RecoTLR.customisePostEra_Run2_2018_harvesting_trackingOnly (   process)

Definition at line 67 of file RecoTLR.py.

References customisePostEra_Run2_2017_harvesting_trackingOnly().

67 
69  #start with a repeat of 2017
71  return process
def customisePostEra_Run2_2018_harvesting_trackingOnly
Definition: RecoTLR.py:67
def customisePostEra_Run2_2017_harvesting_trackingOnly
Definition: RecoTLR.py:43
def RecoTLR.customisePostEra_Run2_2018_pp_on_AA (   process)

Definition at line 76 of file RecoTLR.py.

References customisePostEra_Run2_2018().

76 
79  return process
def customisePostEra_Run2_2018_pp_on_AA
Definition: RecoTLR.py:76
def customisePostEra_Run2_2018
Definition: RecoTLR.py:57
def RecoTLR.customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly (   process)

Definition at line 80 of file RecoTLR.py.

References customisePostEra_Run2_2018_express_trackingOnly().

80 
83  from DQM.TrackingMonitorSource.PPonAATrackingOnly_custom import customise_PPonAATrackingOnlyDQM as _customise_PPonAATrackingOnlyDQM
84  _customise_PPonAATrackingOnlyDQM(process)
85  return process
86 
87 # Run3 equivalents
def customisePostEra_Run2_2018_pp_on_AA_express_trackingOnly
Definition: RecoTLR.py:80
def customisePostEra_Run2_2018_express_trackingOnly
Definition: RecoTLR.py:62
def RecoTLR.customisePostEra_Run2_25ns (   process)

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

Definition at line 28 of file RecoTLR.py.

28 
29 def customisePostEra_Run2_25ns(process):
30  return process
def customisePostEra_Run2_25ns
post-era customizations these are here instead of generating Data-specific eras
Definition: RecoTLR.py:28
def RecoTLR.customisePostEra_Run3 (   process)

Definition at line 88 of file RecoTLR.py.

References customisePostEra_Run2_2018().

88 
89 def customisePostEra_Run3(process):
90  #start with a repeat of 2018
92  return process
def customisePostEra_Run2_2018
Definition: RecoTLR.py:57
def customisePostEra_Run3
Definition: RecoTLR.py:88
def RecoTLR.customisePostEra_Run3_express_trackingOnly (   process)

Definition at line 93 of file RecoTLR.py.

References customisePostEra_Run2_2018_express_trackingOnly().

93 
95  #start with a repeat of 2018
97  return process
def customisePostEra_Run3_express_trackingOnly
Definition: RecoTLR.py:93
def customisePostEra_Run2_2018_express_trackingOnly
Definition: RecoTLR.py:62
def RecoTLR.customisePPData (   process)

Definition at line 99 of file RecoTLR.py.

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

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

Definition at line 107 of file RecoTLR.py.

108 def customisePPMC(process):
109  #deprecated process=customiseCommon(process)
110  #left as a place holder to alter production sequences in case of emergencies
111  return process
def customisePPMC
Definition: RecoTLR.py:107
def RecoTLR.customisePrompt (   process)

Definition at line 136 of file RecoTLR.py.

References customisePPData().

137 def customisePrompt(process):
138  process= customisePPData(process)
139 
140  return process
def customisePPData
Definition: RecoTLR.py:99
def customisePrompt
Definition: RecoTLR.py:136
def RecoTLR.customisePromptHI (   process)

Definition at line 156 of file RecoTLR.py.

References customiseCommonHI().

157 def customisePromptHI(process):
158  process = customiseCommonHI(process)
159 
160  return process
def customisePromptHI
Definition: RecoTLR.py:156
def customiseCommonHI
Heavy Ions.
Definition: RecoTLR.py:145
def RecoTLR.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 219 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

220 def customiseRun2CommonHI(process):
221  process = customiseDataRun2Common_withStage1(process)
222 
223  process = _overridesFor50ns(process)
224  # HI Specific additional customizations:
225  # from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
226  # process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
227 
228  return process
def _overridesFor50ns
Definition: RecoTLR.py:17
def customiseRun2CommonHI
keep it in case modification is needed
Definition: RecoTLR.py:219
def customiseDataRun2Common_withStage1
Definition: RecoTLR.py:191
def RecoTLR.customiseVALSKIM (   process)

Definition at line 122 of file RecoTLR.py.

References customisePPData(), and print().

123 def customiseVALSKIM(process):
124  print("WARNING")
125  print("this method is outdated, please use RecoTLR.customisePPData")
126  process= customisePPData(process)
127  return process
128 
def customiseVALSKIM
Definition: RecoTLR.py:122
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def customisePPData
Definition: RecoTLR.py:99