CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
customiseCMN.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
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 
12 
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 
22 
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 
31 
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 
42 
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 
57 
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 
81 
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
customiseCMN.customiseTier0
def customiseTier0(process)
Definition: customiseCMN.py:58
customiseCMN.customisePercentile
def customisePercentile(process)
Definition: customiseCMN.py:23
customiseCMN.customiseFlatAPVRestore
def customiseFlatAPVRestore(process)
Definition: customiseCMN.py:32
customiseCMN.customisePartialSuppress
def customisePartialSuppress(process)
Definition: customiseCMN.py:43
customiseCMN.customiseMedian
def customiseMedian(process)
Definition: customiseCMN.py:4
customiseCMN.customiseMergeCollections
def customiseMergeCollections(process)
Definition: customiseCMN.py:82
customiseCMN.customiseIteratedMedian
def customiseIteratedMedian(process)
Definition: customiseCMN.py:13