-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 10-bit ZS repacking to cmsDriver, and a customise module to inser…
…t the hybrid emulation before
- Loading branch information
1 parent
0ff203f
commit b4b922e
Showing
2 changed files
with
24 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
RecoLocalTracker/SiStripZeroSuppression/python/customise_EmulateHybrid.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,19 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
## Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples with | ||
## cmsDriver --step RAW2DIGI,REPACK:DigiToZS10RawRepack --customiseRecoLocalTracker/SiStripZeroSuppression/customise_EmulateHybrid.py ... | ||
def customise(process): | ||
process.load("RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi") | ||
zs = process.siStripZeroSuppression | ||
zs.produceRawDigis = False | ||
zs.produceHybridFormat = True | ||
zs.Algorithms.APVInspectMode = "HybridEmulation" | ||
zs.Algorithms.APVRestoreMode = "" | ||
zs.Algorithms.CommonModeNoiseSubtractionMode = 'Median' | ||
zs.Algorithms.MeanCM = 512 | ||
zs.Algorithms.DeltaCMThreshold = 20 | ||
zs.Algorithms.Use10bitsTruncation = True | ||
zs.RawDigiProducersList = cms.VInputTag(cms.InputTag("siStripDigis","VirginRaw")) | ||
|
||
process.DigiToZS10RawRepack.insert(0, zs) ## insert before repacking | ||
return process |