CMS 3D CMS Logo

hcaltpdigi_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from CalibCalorimetry.CaloTPG.tpScales_cff import tpScales
4 
5 LSParameter =cms.untracked.PSet(
6 HcalFeatureHFEMBit= cms.bool(False),
7 Min_Long_Energy= cms.double(10),#makes a cut based on energy deposited in short vrs long
8  Min_Short_Energy= cms.double(10),
9  Long_vrs_Short_Slope= cms.double(100.2),
10  Long_Short_Offset= cms.double(10.1))
11 
12 
13 simHcalTriggerPrimitiveDigis = cms.EDProducer("HcalTrigPrimDigiProducer",
14  peakFilter = cms.bool(True),
15  weights = cms.vdouble(1.0, 1.0),
16  weightsQIE11 = cms.PSet(
17  ieta1 = cms.vint32(255, 255),
18  ieta2 = cms.vint32(255, 255),
19  ieta3 = cms.vint32(255, 255),
20  ieta4 = cms.vint32(255, 255),
21  ieta5 = cms.vint32(255, 255),
22  ieta6 = cms.vint32(255, 255),
23  ieta7 = cms.vint32(255, 255),
24  ieta8 = cms.vint32(255, 255),
25  ieta9 = cms.vint32(255, 255),
26  ieta10 = cms.vint32(255, 255),
27  ieta11 = cms.vint32(255, 255),
28  ieta12 = cms.vint32(255, 255),
29  ieta13 = cms.vint32(255, 255),
30  ieta14 = cms.vint32(255, 255),
31  ieta15 = cms.vint32(255, 255),
32  ieta16 = cms.vint32(255, 255),
33  ieta17 = cms.vint32(255, 255),
34  ieta18 = cms.vint32(255, 255),
35  ieta19 = cms.vint32(255, 255),
36  ieta20 = cms.vint32(255, 255),
37  ieta21 = cms.vint32(255, 255),
38  ieta22 = cms.vint32(255, 255),
39  ieta23 = cms.vint32(255, 255),
40  ieta24 = cms.vint32(255, 255),
41  ieta25 = cms.vint32(255, 255),
42  ieta26 = cms.vint32(255, 255),
43  ieta27 = cms.vint32(255, 255),
44  ieta28 = cms.vint32(255, 255)
45  ),
46 
47  latency = cms.int32(1),
48  FG_threshold = cms.uint32(12),
49  FG_HF_thresholds = cms.vuint32(17, 255),
50  ZS_threshold = cms.uint32(1),
51 
52  # To be used when overriding the CondDB, default is with vetoing off ("coded" threshold = 0)
53  # To run PFA1' + vetoing with no threshold, use 2048
54  # All other values (1, 2047) are interpreted literally as the PFA1' veto threshold
55  codedVetoThresholds = cms.PSet(
56  ieta1 = cms.int32(0),
57  ieta2 = cms.int32(0),
58  ieta3 = cms.int32(0),
59  ieta4 = cms.int32(0),
60  ieta5 = cms.int32(0),
61  ieta6 = cms.int32(0),
62  ieta7 = cms.int32(0),
63  ieta8 = cms.int32(0),
64  ieta9 = cms.int32(0),
65  ieta10 = cms.int32(0),
66  ieta11 = cms.int32(0),
67  ieta12 = cms.int32(0),
68  ieta13 = cms.int32(0),
69  ieta14 = cms.int32(0),
70  ieta15 = cms.int32(0),
71  ieta16 = cms.int32(0),
72  ieta17 = cms.int32(0),
73  ieta18 = cms.int32(0),
74  ieta19 = cms.int32(0),
75  ieta20 = cms.int32(0),
76  ieta21 = cms.int32(0),
77  ieta22 = cms.int32(0),
78  ieta23 = cms.int32(0),
79  ieta24 = cms.int32(0),
80  ieta25 = cms.int32(0),
81  ieta26 = cms.int32(0),
82  ieta27 = cms.int32(0),
83  ieta28 = cms.int32(0)
84  ),
85 
86  overrideDBvetoThresholdsHB = cms.bool(False),
87  overrideDBvetoThresholdsHE = cms.bool(False),
88  numberOfSamples = cms.int32(4),
89  numberOfPresamples = cms.int32(2),
90  numberOfSamplesHF = cms.int32(4),
91  numberOfPresamplesHF = cms.int32(2),
92  numberOfFilterPresamplesHBQIE11 = cms.int32(0),
93  numberOfFilterPresamplesHEQIE11 = cms.int32(0),
94  useTDCInMinBiasBits = cms.bool(False), # TDC information not used in MB fine grain bits
95  MinSignalThreshold = cms.uint32(0), # For HF PMT veto
96  PMTNoiseThreshold = cms.uint32(0), # For HF PMT veto
97  LSConfig=LSParameter,
98 
99  upgradeHF = cms.bool(False),
100  upgradeHB = cms.bool(False),
101  upgradeHE = cms.bool(False),
102 
103  applySaturationFix = cms.bool(False), # Apply the TP energy saturation fix for Peak Finder Algorithm only for Run3
104 
105  # parameters = cms.untracked.PSet(
106  # FGVersionHBHE=cms.uint32(0),
107  # TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
108  # ADCThreshold=cms.uint32(0),
109  # FGThreshold=cms.uint32(12)
110  # ),
111 
112  #vdouble weights = { -1, -1, 1, 1} //low lumi algo
113  # Input digi label (_must_ be without zero-suppression!)
114  inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
115  cms.InputTag('simHcalUnsuppressedDigis')),
116  inputUpgradeLabel = cms.VInputTag(
117  cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
118  cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
119  InputTagFEDRaw = cms.InputTag("rawDataCollector"),
120  overrideDBweightsAndFilterHB = cms.bool(False),
121  overrideDBweightsAndFilterHE = cms.bool(False),
122  RunZS = cms.bool(False),
123  FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
124  PeakFinderAlgorithm = cms.int32(2),
125 
126  tpScales = tpScales,
127 )
128 
129 from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
130 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=True)
131 
132 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
133 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
134  upgradeHF=True,
135  numberOfSamplesHF = 2,
136  numberOfPresamplesHF = 1
137 )
138 
139 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
140 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=True)
141 
142 from Configuration.Eras.Modifier_run3_common_cff import run3_common
143 run3_common.toModify(simHcalTriggerPrimitiveDigis, applySaturationFix=True)