Skip to content

Commit

Permalink
Add 10-bit ZS repacking to cmsDriver, and a customise module to inser…
Browse files Browse the repository at this point in the history
…t the hybrid emulation before
  • Loading branch information
pieterdavid authored and mmusich committed Sep 6, 2018
1 parent 0ff203f commit b4b922e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
RawDataTag = cms.InputTag('rawDataCollector')
)

SiStripDigiToZS10Raw = SiStripDigiToZSRaw.clone(
PacketCode = cms.string('ZERO_SUPPRESSED10'),
)

SiStripRawDigiToVirginRaw = SiStripDigiToZSRaw.clone(
FedReadoutMode = cms.string('VIRGIN_RAW')
)
Expand All @@ -39,5 +43,6 @@
##

DigiToRawRepack = cms.Sequence( SiStripDigiToZSRaw * rawDataRepacker )
DigiToZS10RawRepack = cms.Sequence( SiStripDigiToZS10Raw * rawDataRepacker )
DigiToVirginRawRepack = cms.Sequence( SiStripRawDigiToVirginRaw * virginRawDataRepacker )
DigiToSplitRawRepack = cms.Sequence( DigiToRawRepack + DigiToVirginRawRepack )
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

0 comments on commit b4b922e

Please sign in to comment.