1 import FWCore.ParameterSet.Config
as cms
13 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'pixel')
and not hasattr(process.mix.digitizers.pixel,
'NoAging'):
14 process.mix.digitizers.pixel.PseudoRadDamage = cms.double(
float(prd*7.65))
15 process.mix.digitizers.pixel.PseudoRadDamageRadius = cms.double(16.5)
24 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
25 process.mix.digitizers.hcal.DelivLuminosity = cms.double(
float(lumi))
26 process.mix.digitizers.hcal.HEDarkening = cms.bool(
True)
27 process.mix.digitizers.hcal.HFDarkening = cms.bool(
True)
30 if hasattr(process,
'g4SimHits'):
31 process.g4SimHits.HCalSD.InstLuminosity = cms.double(
float(instLumi))
32 process.g4SimHits.HCalSD.DelivLuminosity = cms.double(
float(lumi))
35 if hasattr(process,
'es_hardcode'):
36 process.es_hardcode.HERecalibration = cms.bool(
True)
37 process.es_hardcode.HFRecalibration = cms.bool(
True)
38 process.es_hardcode.iLumi = cms.double(
float(lumi))
48 if hasattr(process,
'g4SimHits'):
50 process.g4SimHits.ECalSD.InstLuminosity = cms.double(instLumi)
51 process.g4SimHits.ECalSD.DelivLuminosity = cms.double(
float(lumi))
147 if hasattr(process,
'g4SimHits'):
148 process.g4SimHits.HCalSD.HFDarkening = cms.untracked.bool(
True)
149 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
150 process.mix.digitizers.hcal.HFDarkening = cms.untracked.bool(
False)
154 if hasattr(process,
'g4SimHits'):
155 process.g4SimHits.ECalSD.AgeingWithSlopeLY = cms.untracked.bool(
True)
156 if hasattr(process,
'ecal_digi_parameters'):
157 process.ecal_digi_parameters.UseLCcorrection = cms.untracked.bool(
False)
161 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
162 process.mix.digitizers.hcal.HEDarkening = cms.bool(
False)
163 if hasattr(process,
'es_hardcode'):
164 process.es_hardcode.HERecalibration = cms.bool(
False)
168 if hasattr(process,
'g4SimHits'):
169 process.g4SimHits.HCalSD.HFDarkening = cms.untracked.bool(
False)
170 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
171 process.mix.digitizers.hcal.HFDarkening = cms.bool(
False)
172 if hasattr(process,
'es_hardcode'):
173 process.es_hardcode.HFRecalibration = cms.bool(
False)
178 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
179 setattr(process.mix.digitizers.pixel,
'NoAging',cms.double(1.))
180 process.mix.digitizers.pixel.PseudoRadDamage = cms.double(0.)
185 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
186 process.mix.digitizers.pixel.PseudoRadDamage = cms.double(1.5)
187 process.mix.digitizers.pixel.PseudoRadDamageRadius = cms.double(4.0)
194 if not hasattr(process.GlobalTag,
'toGet'):
195 process.GlobalTag.toGet=cms.VPSet()
196 process.GlobalTag.toGet.extend( cms.VPSet(
197 cms.PSet(record = cms.string(
"EcalPedestalsRcd"),
198 tag = cms.string(
"EcalPedestals_TL300_IL1E34_mc"),
199 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
202 cms.PSet(record = cms.string(
"EcalLaserAPDPNRatiosRcd"),
203 tag = cms.string(
"EcalLaserAPDPNRatios_TL300_IL1E34_v2_mc"),
204 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
207 cms.PSet(record = cms.string(
"EcalTPGLinearizationConstRcd"),
208 tag = cms.string(
"EcalTPGLinearizationConst_TL300_IL1E34_v2_mc"),
209 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
211 cms.PSet(record = cms.string(
'EcalLaserAlphasRcd'),
212 tag = cms.string(
'EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
213 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
216 cms.PSet(record = cms.string(
'EcalLinearCorrectionsRcd'),
217 tag = cms.string(
'EcalLinearCorrections_mc'),
218 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
228 if not hasattr(process.GlobalTag,
'toGet'):
229 process.GlobalTag.toGet=cms.VPSet()
230 process.GlobalTag.toGet.extend( cms.VPSet(
231 cms.PSet(record = cms.string(
"EcalPedestalsRcd"),
232 tag = cms.string(
"EcalPedestals_TL1000_IL5E34_mc"),
233 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
236 cms.PSet(record = cms.string(
"EcalLaserAPDPNRatiosRcd"),
237 tag = cms.string(
"EcalLaserAPDPNRatios_TL1000_IL5E34_v2_mc"),
238 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
241 cms.PSet(record = cms.string(
"EcalTPGLinearizationConstRcd"),
242 tag = cms.string(
"EcalTPGLinearizationConst_TL1000_IL5E34_v2_mc"),
243 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
245 cms.PSet(record = cms.string(
'EcalLaserAlphasRcd'),
246 tag = cms.string(
'EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
247 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
250 cms.PSet(record = cms.string(
'EcalLinearCorrectionsRcd'),
251 tag = cms.string(
'EcalLinearCorrections_mc'),
252 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
262 if not hasattr(process.GlobalTag,
'toGet'):
263 process.GlobalTag.toGet=cms.VPSet()
264 process.GlobalTag.toGet.extend( cms.VPSet(
265 cms.PSet(record = cms.string(
"EcalPedestalsRcd"),
266 tag = cms.string(
"EcalPedestals_TL3000_IL5E34_mc"),
267 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
270 cms.PSet(record = cms.string(
"EcalLaserAPDPNRatiosRcd"),
271 tag = cms.string(
"EcalLaserAPDPNRatios_TL3000_IL5E34_v2_mc"),
272 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
275 cms.PSet(record = cms.string(
"EcalTPGLinearizationConstRcd"),
276 tag = cms.string(
"EcalTPGLinearizationConst_TL3000_IL5E34_v2_mc"),
277 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_CONDITIONS")
279 cms.PSet(record = cms.string(
'EcalLaserAlphasRcd'),
280 tag = cms.string(
'EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
281 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
284 cms.PSet(record = cms.string(
'EcalLinearCorrectionsRcd'),
285 tag = cms.string(
'EcalLinearCorrections_mc'),
286 connect = cms.untracked.string(
'frontier://FrontierProd/CMS_CONDITIONS')
def ecal_complete_aging_300(process)
def customise_aging_newpixel_1000(process)
def turn_off_HE_aging(process)
def customise_aging_100(process)
def customise_aging_600(process)
def turn_off_Pixel_aging(process)
def turn_off_HF_aging(process)
def turn_on_Pixel_aging_1000(process)
def customise_aging_200(process)
def ageHcal(process, lumi)
def customise_aging_ecalonly_300(process)
def customise_aging_ecalonly_3000(process)
def customise_aging_1000(process)
def customise_aging_ecalonly_1000(process)
def ecal_complete_aging_1000(process)
def customise_aging_700(process)
def customise_aging_300(process)
def customise_aging_400(process)
def ecal_complete_aging(process)
def ecal_complete_aging_3000(process)
def hf_complete_aging(process)
def customise_aging_500(process)
def ageEcal(process, lumi)
def customise_aging_3000(process)
def agePixel(process, lumi)
def customise_aging_newpixel_3000(process)