CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTLR.py
Go to the documentation of this file.
2 
3 from RecoTracker.Configuration.customiseForRunI import customiseForRunI
4 #gone with the fact that there is no difference between production and development sequence
5 #def customiseCommon(process):
6 # return (process)
7 
8 
9 ##############################################################################
10 def customisePPData(process):
11  #deprecated process= customiseCommon(process)
12  ##all customisation for data are now deprecated to Reconstruction_Data_cff
13  #left as a place holder to alter production sequences in case of emergencies
14  return process
15 
16 
17 ##############################################################################
18 def customisePPMC(process):
19  #deprecated process=customiseCommon(process)
20  #left as a place holder to alter production sequences in case of emergencies
21  return process
22 
23 ##############################################################################
24 def customiseCosmicData(process):
25 
26  return process
27 
28 
29 
30 ##############################################################################
31 # this is supposed to be added on top of other (Run1) data customs
33  if hasattr(process,'CSCGeometryESModule'):
34  process.CSCGeometryESModule.useGangedStripsInME1a = cms.bool(False)
35  if hasattr(process,'CSCIndexerESProducer'):
36  process.CSCIndexerESProducer.AlgoName=cms.string("CSCIndexerPostls1")
37  if hasattr(process,'CSCChannelMapperESProducer'):
38  process.CSCChannelMapperESProducer.AlgoName=cms.string("CSCChannelMapperPostls1")
39  if hasattr(process,'csc2DRecHits'):
40  process.csc2DRecHits.readBadChannels = cms.bool(False)
41  process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
42  if hasattr(process,'valCscTriggerPrimitiveDigis'):
43  #this is not doing anything at the moment
44  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.untracked.bool(False)
45  if hasattr(process,'valCsctfTrackDigis'):
46  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
47 
48  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi,customise_DQM
49  if hasattr(process,'RawToDigi'):
50  process=customise_RawToDigi(process)
51  if hasattr(process,'reconstruction'):
52  process=customise_Reco(process)
53  if hasattr(process,'dqmoffline_step'):
54  process=customise_DQM(process)
55 
56  return process
57 
58 ##############################################################################
59 # common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
61  process = customiseDataRun2Common(process)
62 
63  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
64  process=customiseL1RecoForStage1(process)
65 
66  from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_DQM_25ns
67  if hasattr(process,'dqmoffline_step'):
68  process=customise_DQM_25ns(process)
69  return process
70 
71 # common+50ns. Needed only for runs >= 253000 if taken with 50ns
73  process = customiseDataRun2Common(process)
74 
75  from L1Trigger.L1TCommon.customsPostLS1 import customiseL1RecoForStage1
76  process=customiseL1RecoForStage1(process)
77 
78  if hasattr(process,'particleFlowClusterECAL'):
79  process.particleFlowClusterECAL.energyCorrector.autoDetectBunchSpacing = False
80  process.particleFlowClusterECAL.energyCorrector.bunchSpacing = cms.int32(50)
81  if hasattr(process,'ecalMultiFitUncalibRecHit'):
82  process.ecalMultiFitUncalibRecHit.algoPSet.useLumiInfoRunHeader = False
83  process.ecalMultiFitUncalibRecHit.algoPSet.bunchSpacing = cms.int32(50)
84 
85  return process
86 
87 ##############################################################################
89  process = customiseCosmicData(process)
90  process = customiseDataRun2Common_25ns(process)
91  return process
92 
93 
94 ##############################################################################
95 def customiseCosmicMC(process):
96 
97  return process
98 
99 ##############################################################################
100 def customiseVALSKIM(process):
101  print "WARNING"
102  print "this method is outdated, please use RecoTLR.customisePPData"
103  process= customisePPData(process)
104  return process
105 
106 ##############################################################################
107 def customiseExpress(process):
108  process= customisePPData(process)
109 
110  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
111  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
112 
113  return process
114 
115 ##############################################################################
116 def customiseExpressRun2(process):
117  process = customiseExpress(process)
118  process = customiseDataRun2Common_25ns(process)
119  return process
120 
122  process = customiseExpress(process)
124  return process
125 
127  process=customiseForRunI(process)
128  process=customiseExpressRun2(process)
129  return process
130 
131 ##############################################################################
132 def customisePrompt(process):
133  process= customisePPData(process)
134 
135  #add the lumi producer in the prompt reco only configuration
136  if not hasattr(process,'lumiProducer'):
137  #unscheduled..
138  from RecoLuminosity.LumiProducer.lumiProducer_cff import lumiProducer,LumiDBService
139  process.lumiProducer=lumiProducer
140  process.reconstruction_step+=process.lumiProducer
141 
142  return process
143 
144 ##############################################################################
145 def customisePromptRun2(process):
146  process = customisePrompt(process)
147  process = customiseDataRun2Common_25ns(process)
148  return process
149 
151  process = customisePrompt(process)
153  return process
154 
156  process=customiseForRunI(process)
157  process=customisePromptRun2(process)
158  return process
159 
160 
161 ##############################################################################
162 
163 #gone with the fact that there is no difference between production and development sequence
164 #def customiseCommonHI(process):
165 # return process
166 
167 ##############################################################################
168 def customiseExpressHI(process):
169  #deprecated process= customiseCommonHI(process)
170 
171  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
172  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
173 
174  return process
175 
176 ##############################################################################
177 def customisePromptHI(process):
178  #deprecated process= customiseCommonHI(process)
179 
180  from RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi import onlineBeamSpotProducer
181  process.offlineBeamSpot = onlineBeamSpotProducer.clone()
182 
183  #add the lumi producer in the prompt reco only configuration
184  if not hasattr(process,'lumiProducer'):
185  #unscheduled..
186  from RecoLuminosity.LumiProducer.lumiProducer_cff import lumiProducer,LumiDBService
187  process.lumiProducer=lumiProducer
188  process.reconstruction_step+=process.lumiProducer
189 
190 
191  return process
192 
193 ##############################################################################
def customiseDataRun2Common
this is supposed to be added on top of other (Run1) data customs
Definition: RecoTLR.py:32
def customisePromptHI
Definition: RecoTLR.py:177
def customisePPMC
Definition: RecoTLR.py:18
def customiseCosmicMC
Definition: RecoTLR.py:95
def customiseDataRun2Common_50nsRunsAfter253000
Definition: RecoTLR.py:72
def customisePromptRun2_50ns
Definition: RecoTLR.py:150
def customiseVALSKIM
Definition: RecoTLR.py:100
def customiseCosmicDataRun2
Definition: RecoTLR.py:88
def customiseExpressRun2
Definition: RecoTLR.py:116
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def customiseExpressHI
Definition: RecoTLR.py:168
def customiseCosmicData
Definition: RecoTLR.py:24
def customisePromptRun2
Definition: RecoTLR.py:145
def customisePPData
Definition: RecoTLR.py:10
def customisePrompt
Definition: RecoTLR.py:132
def customise_RawToDigi
Definition: HCalCustoms.py:105
def customise_Reco
Definition: HCalCustoms.py:138
def customiseDataRun2Common_25ns
common+ "25ns" Use this for data daking starting from runs in 2015C (>= 253256 )
Definition: RecoTLR.py:60
def customisePromptRun2B0T
Definition: RecoTLR.py:155
def customiseExpressRun2_50ns
Definition: RecoTLR.py:121
def customiseExpress
Definition: RecoTLR.py:107
def customiseExpressRun2B0T
Definition: RecoTLR.py:126
def customiseL1RecoForStage1