CMS 3D CMS Logo

Functions
customiseHybrid Namespace Reference

Functions

def addHybridEmulationBeforeRepack (process)
 Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples with cmsDriver –step RAW2DIGI,REPACK:DigiToHybridRawRepack –customiseRecoLocalTracker/SiStripZeroSuppression/customiseHybrid.addHybridEmulationBeforeRepack ... More...
 
def repackZSHybrid (process)
 Change the (normal, ZS) repacker to use zero-suppressed hybrid data. More...
 
def runOnHybridZS (process)
 Adjust the local reco sequence for running on hybrid zero-suppressed data. More...
 

Function Documentation

◆ addHybridEmulationBeforeRepack()

def customiseHybrid.addHybridEmulationBeforeRepack (   process)

Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples with cmsDriver –step RAW2DIGI,REPACK:DigiToHybridRawRepack –customiseRecoLocalTracker/SiStripZeroSuppression/customiseHybrid.addHybridEmulationBeforeRepack ...

Definition at line 29 of file customiseHybrid.py.

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"))
41 
42  process.DigiToHybridRawRepack.insert(0, zs)
43 
44  return process

◆ repackZSHybrid()

def customiseHybrid.repackZSHybrid (   process)

Change the (normal, ZS) repacker to use zero-suppressed hybrid data.

Definition at line 20 of file customiseHybrid.py.

20 def repackZSHybrid(process):
21  process.SiStripDigiToZSRaw.InputDigis = cms.InputTag("siStripZeroSuppression", "ZeroSuppressed")
22 
23  process.DigiToRawRepack.insert(0, process.siStripZeroSuppression)
24 
25  return process
26 

◆ runOnHybridZS()

def customiseHybrid.runOnHybridZS (   process)

Adjust the local reco sequence for running on hybrid zero-suppressed data.

Definition at line 4 of file customiseHybrid.py.

4 def runOnHybridZS(process):
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"))
14  # for on-demand clusterizer
15  from FWCore.ParameterSet.MassReplace import massReplaceParameter
16  massReplaceParameter(process, "HybridZeroSuppressed", cms.bool(False), cms.bool(True))
17  return process
18 

References MassReplace.massReplaceParameter().

MassReplace.massReplaceParameter
def massReplaceParameter(process, name="label", old="rawDataCollector", new="rawDataRepacker", verbose=False)
Definition: MassReplace.py:132
customiseHybrid.runOnHybridZS
def runOnHybridZS(process)
Adjust the local reco sequence for running on hybrid zero-suppressed data.
Definition: customiseHybrid.py:4
customiseHybrid.addHybridEmulationBeforeRepack
def addHybridEmulationBeforeRepack(process)
Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples ...
Definition: customiseHybrid.py:29
customiseHybrid.repackZSHybrid
def repackZSHybrid(process)
Change the (normal, ZS) repacker to use zero-suppressed hybrid data.
Definition: customiseHybrid.py:20