CMS 3D CMS Logo

customiseStuckTBMSimulation.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # activate the stuck-TBM simulation and loads from DB the corresponding conditions
5 #
7 
8  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'pixel'):
9  print("activating Pixel Stuck TBM Simulation")
10  process.mix.digitizers.pixel.KillBadFEDChannels = cms.bool(True)
11 
12  if not hasattr(process.GlobalTag,'toGet'):
13  process.GlobalTag.toGet=cms.VPSet()
14 
15  process.GlobalTag.toGet.extend(cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
16  tag = cms.string('SiPixelQualityProbabilities_2018_noPU_v0_mc'),
17  connect = cms.string('frontier://FrontierPrep/CMS_CONDITIONS')),
18  cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
19  tag = cms.string('SiPixelFEDChannelContainer_StuckTBM_2018_v0_fixed_mc'),
20  connect = cms.string('frontier://FrontierPrep/CMS_CONDITIONS')
21  )
22  )
23  )
24  return process
25 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66