1 import FWCore.ParameterSet.Config
as cms
5 process.load(
"RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi")
6 process.load(
"RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi")
7 process.siStripZeroSuppression.Algorithms.APVInspectMode =
"Hybrid" 8 zsInputs = process.siStripZeroSuppression.RawDigiProducersList
9 clusInputs = process.siStripClusters.DigiProducersList
10 unpackedZS = cms.InputTag(
"siStripDigis",
"ZeroSuppressed")
11 zsInputs.append(unpackedZS)
12 clusInputs.remove(unpackedZS)
13 clusInputs.append(cms.InputTag(
"siStripZeroSuppression",
"ZeroSuppressed"))
15 from FWCore.ParameterSet.MassReplace
import massReplaceParameter
21 process.SiStripDigiToZSRaw.InputDigis = cms.InputTag(
"siStripZeroSuppression",
"ZeroSuppressed")
23 process.DigiToRawRepack.insert(0, process.siStripZeroSuppression)
30 process.load(
"RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi")
31 zs = process.siStripZeroSuppression
32 zs.produceRawDigis =
False 33 zs.produceHybridFormat =
True 34 zs.Algorithms.APVInspectMode =
"HybridEmulation" 35 zs.Algorithms.APVRestoreMode =
"" 36 zs.Algorithms.CommonModeNoiseSubtractionMode =
'Median' 37 zs.Algorithms.MeanCM = 0
38 zs.Algorithms.DeltaCMThreshold = 20
39 zs.Algorithms.Use10bitsTruncation =
True 40 zs.RawDigiProducersList = cms.VInputTag(cms.InputTag(
"siStripDigis",
"VirginRaw"))
42 process.DigiToHybridRawRepack.insert(0, zs)
def repackZSHybrid(process)
Change the (normal, ZS) repacker to use zero-suppressed hybrid data.
def addHybridEmulationBeforeRepack(process)
Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples ...
def runOnHybridZS(process)
Adjust the local reco sequence for running on hybrid zero-suppressed data.
def massReplaceParameter(process, name="label", old="rawDataCollector", new="rawDataRepacker", verbose=False)