CMS 3D CMS Logo

siPixelQualityForDigitizerESProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from CalibTracker.SiPixelESProducers.siPixelQualityESProducer_cfi import siPixelQualityESProducer as _siPixelQualityESProducer
4 
5 siPixelQualityForDigitizerESProducer = _siPixelQualityESProducer.clone(
6  appendToDataLabel = 'forDigitizer',
7  siPixelQualityFromDbLabel = 'forDigitizer'
8 )
9 
10 # remove siPixelQualityForDigitizerESProducer when the modifier run2_SiPixel_2018 is not enabled
12  if hasattr(process, 'siPixelQualityForDigitizerESProducer'):
13  del process.siPixelQualityForDigitizerESProducer
14 
15 from Configuration.Eras.Modifier_run2_SiPixel_2018_cff import run2_SiPixel_2018
16 removeSiPixelQualityForDigitizerESProducer_ = (~run2_SiPixel_2018).makeProcessModifier( _removeSiPixelQualityForDigitizerESProducer )