CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hcaltpdigi_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
5 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
6 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
7 from Configuration.Eras.Modifier_run3_common_cff import run3_common
8 
9 LSParameter =cms.untracked.PSet(
10 HcalFeatureHFEMBit= cms.bool(False),
11 Min_Long_Energy= cms.double(10),#makes a cut based on energy deposited in short vrs long
12  Min_Short_Energy= cms.double(10),
13  Long_vrs_Short_Slope= cms.double(100.2),
14  Long_Short_Offset= cms.double(10.1))
15 
16 
17 simHcalTriggerPrimitiveDigis = cms.EDProducer("HcalTrigPrimDigiProducer",
18  peakFilter = cms.bool(True),
19  weights = cms.vdouble(1.0, 1.0), ##hardware algo
20  weightsQIE11 = cms.PSet(
21  ieta1 = cms.vdouble(1.0, 1.0),
22  ieta2 = cms.vdouble(1.0, 1.0),
23  ieta3 = cms.vdouble(1.0, 1.0),
24  ieta4 = cms.vdouble(1.0, 1.0),
25  ieta5 = cms.vdouble(1.0, 1.0),
26  ieta6 = cms.vdouble(1.0, 1.0),
27  ieta7 = cms.vdouble(1.0, 1.0),
28  ieta8 = cms.vdouble(1.0, 1.0),
29  ieta9 = cms.vdouble(1.0, 1.0),
30  ieta10 = cms.vdouble(1.0, 1.0),
31  ieta11 = cms.vdouble(1.0, 1.0),
32  ieta12 = cms.vdouble(1.0, 1.0),
33  ieta13 = cms.vdouble(1.0, 1.0),
34  ieta14 = cms.vdouble(1.0, 1.0),
35  ieta15 = cms.vdouble(1.0, 1.0),
36  ieta16 = cms.vdouble(1.0, 1.0),
37  ieta17 = cms.vdouble(1.0, 1.0),
38  ieta18 = cms.vdouble(1.0, 1.0),
39  ieta19 = cms.vdouble(1.0, 1.0),
40  ieta20 = cms.vdouble(1.0, 1.0),
41  ieta21 = cms.vdouble(1.0, 1.0),
42  ieta22 = cms.vdouble(1.0, 1.0),
43  ieta23 = cms.vdouble(1.0, 1.0),
44  ieta24 = cms.vdouble(1.0, 1.0),
45  ieta25 = cms.vdouble(1.0, 1.0),
46  ieta26 = cms.vdouble(1.0, 1.0),
47  ieta27 = cms.vdouble(1.0, 1.0),
48  ieta28 = cms.vdouble(1.0, 1.0)
49  ),
50 
51  latency = cms.int32(1),
52  FG_threshold = cms.uint32(12), ## threshold for setting fine grain bit
53  FG_HF_thresholds = cms.vuint32(17, 255), ## thresholds for setting fine grain bit
54  ZS_threshold = cms.uint32(1), ## threshold for setting TP zero suppression
55  numberOfSamples = cms.int32(4),
56  numberOfPresamples = cms.int32(2),
57  numberOfSamplesHF = cms.int32(4),
58  numberOfPresamplesHF = cms.int32(2),
59  numberOfFilterPresamplesHBQIE11 = cms.int32(0),
60  numberOfFilterPresamplesHEQIE11 = cms.int32(0),
61  useTDCInMinBiasBits = cms.bool(False), # TDC information not used in MB fine grain bits
62  MinSignalThreshold = cms.uint32(0), # For HF PMT veto
63  PMTNoiseThreshold = cms.uint32(0), # For HF PMT veto
64  LSConfig=LSParameter,
65 
66  upgradeHF = cms.bool(False),
67  upgradeHB = cms.bool(False),
68  upgradeHE = cms.bool(False),
69 
70  applySaturationFix = cms.bool(False), # Apply the TP energy saturation fix for Peak Finder Algorithm only for Run3
71 
72  # parameters = cms.untracked.PSet(
73  # FGVersionHBHE=cms.uint32(0),
74  # TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
75  # ADCThreshold=cms.uint32(0),
76  # FGThreshold=cms.uint32(12)
77  # ),
78 
79  #vdouble weights = { -1, -1, 1, 1} //low lumi algo
80  # Input digi label (_must_ be without zero-suppression!)
81  inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
82  cms.InputTag('simHcalUnsuppressedDigis')),
83  inputUpgradeLabel = cms.VInputTag(
84  cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
85  cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
86  InputTagFEDRaw = cms.InputTag("rawDataCollector"),
87  overrideDBweightsAndFilterHB = cms.bool(False),
88  overrideDBweightsAndFilterHE = cms.bool(False),
89  RunZS = cms.bool(False),
90  FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
91  PeakFinderAlgorithm = cms.int32(2),
92 
93  tpScales = tpScales,
94 )
95 
96 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
97 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
98  upgradeHF=cms.bool(True),
99  numberOfSamplesHF = cms.int32(2),
100  numberOfPresamplesHF = cms.int32(1)
101 )
102 run2_HF_2017.toModify(tpScales.HF, NCTShift=cms.int32(2))
103 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
104 run3_common.toModify(simHcalTriggerPrimitiveDigis, applySaturationFix=cms.bool(True))
105 run3_HB.toModify(tpScales.HBHE, LSBQIE11Overlap=cms.double(1/16.))