-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify implementation of SiPixelQualityESProducer and use multiple …
…instances of it
- Loading branch information
Showing
9 changed files
with
77 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
CalibTracker/SiPixelESProducers/python/SiPixelQualityESProducer_cfi.py
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
CalibTracker/SiPixelESProducers/python/siPixelQualityForDigitizerESProducer_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from CalibTracker.SiPixelESProducers.siPixelQualityESProducer_cfi import siPixelQualityESProducer as _siPixelQualityESProducer | ||
|
||
siPixelQualityForDigitizerESProducer = _siPixelQualityESProducer.clone( | ||
appendToDataLabel = 'forDigitizer', | ||
siPixelQualityFromDbLabel = 'forDigitizer' | ||
) | ||
|
||
# remove siPixelQualityForDigitizerESProducer when the modifier run2_SiPixel_2018 is not enabled | ||
def _removeSiPixelQualityForDigitizerESProducer(process): | ||
if hasattr(process, 'siPixelQualityForDigitizerESProducer'): | ||
del process.siPixelQualityForDigitizerESProducer | ||
|
||
from Configuration.Eras.Modifier_run2_SiPixel_2018_cff import run2_SiPixel_2018 | ||
removeSiPixelQualityForDigitizerESProducer_ = (~run2_SiPixel_2018).makeProcessModifier( _removeSiPixelQualityForDigitizerESProducer ) |
16 changes: 16 additions & 0 deletions
16
CalibTracker/SiPixelESProducers/python/siPixelQualityForRawToDigiESProducer_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from CalibTracker.SiPixelESProducers.siPixelQualityESProducer_cfi import siPixelQualityESProducer as _siPixelQualityESProducer | ||
|
||
siPixelQualityForRawToDigiESProducer = _siPixelQualityESProducer.clone( | ||
appendToDataLabel = 'forRawToDigi', | ||
siPixelQualityFromDbLabel = 'forRawToDigi' | ||
) | ||
|
||
# remove siPixelQualityForRawToDigiESProducer when the modifier siPixelQualityRawToDigi is not enabled | ||
def _removeSiPixelQualityForRawToDigiESProducer(process): | ||
if hasattr(process, 'siPixelQualityForRawToDigiESProducer'): | ||
del process.siPixelQualityForRawToDigiESProducer | ||
|
||
from Configuration.ProcessModifiers.siPixelQualityRawToDigi_cff import siPixelQualityRawToDigi | ||
removeSiPixelQualityForRawToDigiESProducer_ = (~siPixelQualityRawToDigi).makeProcessModifier( _removeSiPixelQualityForRawToDigiESProducer ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters