CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customiseHybrid Namespace Reference

Functions

def addHybridEmulationBeforeRepack
 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
 Change the (normal, ZS) repacker to use zero-suppressed hybrid data. More...
 
def runOnHybridZS
 Adjust the local reco sequence for running on hybrid zero-suppressed data. More...
 

Function Documentation

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.

29 
31  process.load("RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi")
32  zs = process.siStripZeroSuppression
33  zs.produceRawDigis = False
34  zs.produceHybridFormat = True
35  zs.Algorithms.APVInspectMode = "HybridEmulation"
36  zs.Algorithms.APVRestoreMode = ""
37  zs.Algorithms.CommonModeNoiseSubtractionMode = 'Median'
38  zs.Algorithms.MeanCM = 0
39  zs.Algorithms.DeltaCMThreshold = 20
40  zs.Algorithms.Use10bitsTruncation = True
41  zs.RawDigiProducersList = cms.VInputTag(cms.InputTag("siStripDigis", "VirginRaw"))
42 
43  process.DigiToHybridRawRepack.insert(0, zs) ## insert before repacking
44 
45  return process
def addHybridEmulationBeforeRepack
Add the ZS algorithm (in hybrid emulation mode) before repacking, to produce emulated hybrid samples ...
def customiseHybrid.repackZSHybrid (   process)

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

Definition at line 20 of file customiseHybrid.py.

20 
21 def repackZSHybrid(process):
22  process.SiStripDigiToZSRaw.InputDigis = cms.InputTag("siStripZeroSuppression", "ZeroSuppressed")
23 
24  process.DigiToRawRepack.insert(0, process.siStripZeroSuppression)
25 
26  return process
def repackZSHybrid
Change the (normal, ZS) repacker to use zero-suppressed hybrid data.
def customiseHybrid.runOnHybridZS (   process)

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

Definition at line 4 of file customiseHybrid.py.

References MassReplace.massReplaceParameter().

4 
5 def runOnHybridZS(process):
6  process.load("RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi")
7  process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi")
8  process.siStripZeroSuppression.Algorithms.APVInspectMode = "Hybrid"
9  zsInputs = process.siStripZeroSuppression.RawDigiProducersList
10  clusInputs = process.siStripClusters.DigiProducersList
11  unpackedZS = cms.InputTag("siStripDigis", "ZeroSuppressed")
12  zsInputs.append(unpackedZS)
13  clusInputs.remove(unpackedZS)
14  clusInputs.append(cms.InputTag("siStripZeroSuppression","ZeroSuppressed"))
15  # for on-demand clusterizer
16  from FWCore.ParameterSet.MassReplace import massReplaceParameter
17  massReplaceParameter(process, "HybridZeroSuppressed", cms.bool(False), cms.bool(True))
18  return process
def massReplaceParameter
Definition: MassReplace.py:132
def runOnHybridZS
Adjust the local reco sequence for running on hybrid zero-suppressed data.