CMS 3D CMS Logo

siPixelQualityForRawToDigiESProducer_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 siPixelQualityForRawToDigiESProducer = _siPixelQualityESProducer.clone(
6  appendToDataLabel = 'forRawToDigi',
7  siPixelQualityFromDbLabel = 'forRawToDigi'
8 )
9 
10 # remove siPixelQualityForRawToDigiESProducer when the modifier siPixelQualityRawToDigi is not enabled
12  if hasattr(process, 'siPixelQualityForRawToDigiESProducer'):
13  del process.siPixelQualityForRawToDigiESProducer
14 
15 from Configuration.ProcessModifiers.siPixelQualityRawToDigi_cff import siPixelQualityRawToDigi
16 removeSiPixelQualityForRawToDigiESProducer_ = (~siPixelQualityRawToDigi).makeProcessModifier( _removeSiPixelQualityForRawToDigiESProducer )