CMS 3D CMS Logo

Functions
customiseCMN Namespace Reference

Functions

def customiseFlatAPVRestore (process)
 
def customiseIteratedMedian (process)
 
def customiseMedian (process)
 
def customiseMergeCollections (process)
 
def customisePartialSuppress (process)
 
def customisePercentile (process)
 
def customiseTier0 (process)
 

Function Documentation

◆ customiseFlatAPVRestore()

def customiseCMN.customiseFlatAPVRestore (   process)

Definition at line 32 of file customiseCMN.py.

32 def customiseFlatAPVRestore(process):
33 
34  process.siStripZeroSuppression.doAPVRestore = cms.bool(True)
35 
36  process.siStripZeroSuppression.Algorithms.APVInspectMode = cms.string("NullFraction")
37  process.siStripZeroSuppression.Algorithms.APVRestoreMode = cms.string("Flat")
38  process.siStripZeroSuppression.Algorithms.restoreThreshold = cms.double(0.5)
39 
40  return process
41 
def customiseFlatAPVRestore(process)
Definition: customiseCMN.py:32

◆ customiseIteratedMedian()

def customiseCMN.customiseIteratedMedian (   process)

Definition at line 13 of file customiseCMN.py.

Referenced by customiseTier0().

13 def customiseIteratedMedian(process):
14 
15  process.siStripZeroSuppression.Algorithms.CommonModeNoiseSubtractionMode = cms.string("IteratedMedian")
16  process.siStripZeroSuppression.Algorithms.CutToAvoidSignal = cms.double(2.0)
17  process.siStripZeroSuppression.Algorithms.Iterations = cms.int32(3)
18  process.siStripZeroSuppression.storeCM = cms.bool(True)
19 
20  return process
21 
def customiseIteratedMedian(process)
Definition: customiseCMN.py:13

◆ customiseMedian()

def customiseCMN.customiseMedian (   process)

Definition at line 4 of file customiseCMN.py.

4 def customiseMedian(process):
5 
6  process.siStripZeroSuppression.Algorithms.CommonModeNoiseSubtractionMode = cms.string("Median")
7  process.siStripZeroSuppression.storeCM = cms.bool(True)
8 
9  return process
10 
11 
def customiseMedian(process)
Definition: customiseCMN.py:4

◆ customiseMergeCollections()

def customiseCMN.customiseMergeCollections (   process)

Definition at line 82 of file customiseCMN.py.

82 def customiseMergeCollections(process):
83 
84  process.siStripZeroSuppression.RawDigiProducersList = cms.VInputTag(
85  cms.InputTag('siStripVRDigis','VirginRaw'),
86  cms.InputTag('siStripVRDigis','ProcessedRaw'),
87  cms.InputTag('siStripVRDigis','ScopeMode')
88  )
89 
90  return process
91 
def customiseMergeCollections(process)
Definition: customiseCMN.py:82

◆ customisePartialSuppress()

def customiseCMN.customisePartialSuppress (   process)

Definition at line 43 of file customiseCMN.py.

43 def customisePartialSuppress(process):
44 
45  process.siStripZeroSuppression.doAPVRestore = cms.bool(True)
46  process.siStripZeroSuppression.produceRawDigis = cms.bool(True)
47  process.siStripZeroSuppression.storeInZScollBadAPV = cms.bool(False)
48 
49  process.siStripZeroSuppression.Algorithms.APVInspectMode = cms.string("AbnormalBaseline")
50  process.siStripZeroSuppression.Algorithms.APVRestoreMode = cms.string("PartialSuppress")
51  process.siStripZeroSuppression.Algorithms.Fraction = cms.double(0.2)
52  process.siStripZeroSuppression.Algorithms.Deviation = cms.uint32(25)
53 
54 
55  return process
56 
def customisePartialSuppress(process)
Definition: customiseCMN.py:43

◆ customisePercentile()

def customiseCMN.customisePercentile (   process)

Definition at line 23 of file customiseCMN.py.

23 def customisePercentile(process):
24 
25  process.siStripZeroSuppression.Algorithms.CommonModeNoiseSubtractionMode = cms.string("Percentile")
26  process.siStripZeroSuppression.Algorithms.Percentile = cms.double(25.0)
27  process.siStripZeroSuppression.storeCM = cms.bool(True)
28 
29  return process
30 
def customisePercentile(process)
Definition: customiseCMN.py:23

◆ customiseTier0()

def customiseCMN.customiseTier0 (   process)

Definition at line 58 of file customiseCMN.py.

References customiseIteratedMedian().

58 def customiseTier0(process):
59 
60  process.siStripZeroSuppression.Algorithms.PedestalSubtractionFedMode = cms.bool(False)
61 
63 
64  process.siStripZeroSuppression.doAPVRestore = cms.bool(True)
65  process.siStripZeroSuppression.produceRawDigis = cms.bool(True)
66  process.siStripZeroSuppression.produceCalculatedBaseline = cms.bool(True)
67 
68  # these are the current defaults.
69  process.siStripZeroSuppression.Algorithms.APVInspectMode = cms.string("BaselineFollower")
70  process.siStripZeroSuppression.Algorithms.APVRestoreMode = cms.string("BaselineFollower")
71  process.siStripZeroSuppression.Algorithms.DeltaCMThreshold = cms.uint32(20)
72  process.siStripZeroSuppression.Algorithms.distortionThreshold = cms.uint32(40)
73  process.siStripZeroSuppression.Algorithms.nSigmaNoiseDerTh = cms.uint32(4)
74  process.siStripZeroSuppression.Algorithms.consecThreshold = cms.uint32(5)
75  process.siStripZeroSuppression.Algorithms.hitStripThreshold = cms.uint32(40)
76  process.siStripZeroSuppression.Algorithms.nSmooth = cms.uint32(9)
77  process.siStripZeroSuppression.Algorithms.minStripsToFit = cms.uint32(4)
78 
79  return process
80 
def customiseIteratedMedian(process)
Definition: customiseCMN.py:13
def customiseTier0(process)
Definition: customiseCMN.py:58