test
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 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_25ns
 
def customisePPData
 
def customisePPMC
 
def customisePrompt
 
def customisePromptHI
 
def customiseRun2CommonHI
 keep it in case modification is needed More...
 
def customiseVALSKIM
 

Function Documentation

def RecoTLR._addLumiProducer (   process)
private

Definition at line 11 of file RecoTLR.py.

Referenced by customisePrompt(), and customisePromptHI().

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(), and customiseExpressHI().

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.

62 
63 def customiseCosmicData(process):
64  return process
65 
def customiseCosmicData
Definition: RecoTLR.py:62
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:30
def customise_DQM
Definition: gemCustoms.py:36
def customise_Reco
Definition: gemCustoms.py:33
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().

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().

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().

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.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().

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.customiseRun2CommonHI (   process)

keep it in case modification is needed

Definition at line 173 of file RecoTLR.py.

References _overridesFor50ns(), and customiseDataRun2Common_withStage1().

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