CMS 3D CMS Logo

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),
20  weightsQIE11 = cms.PSet(
21  ieta1 = cms.vint32(255, 255),
22  ieta2 = cms.vint32(255, 255),
23  ieta3 = cms.vint32(255, 255),
24  ieta4 = cms.vint32(255, 255),
25  ieta5 = cms.vint32(255, 255),
26  ieta6 = cms.vint32(255, 255),
27  ieta7 = cms.vint32(255, 255),
28  ieta8 = cms.vint32(255, 255),
29  ieta9 = cms.vint32(255, 255),
30  ieta10 = cms.vint32(255, 255),
31  ieta11 = cms.vint32(255, 255),
32  ieta12 = cms.vint32(255, 255),
33  ieta13 = cms.vint32(255, 255),
34  ieta14 = cms.vint32(255, 255),
35  ieta15 = cms.vint32(255, 255),
36  ieta16 = cms.vint32(255, 255),
37  ieta17 = cms.vint32(255, 255),
38  ieta18 = cms.vint32(255, 255),
39  ieta19 = cms.vint32(255, 255),
40  ieta20 = cms.vint32(255, 255),
41  ieta21 = cms.vint32(255, 255),
42  ieta22 = cms.vint32(255, 255),
43  ieta23 = cms.vint32(255, 255),
44  ieta24 = cms.vint32(255, 255),
45  ieta25 = cms.vint32(255, 255),
46  ieta26 = cms.vint32(255, 255),
47  ieta27 = cms.vint32(255, 255),
48  ieta28 = cms.vint32(255, 255)
49  ),
50 
51  latency = cms.int32(1),
52  FG_threshold = cms.uint32(12),
53  FG_HF_thresholds = cms.vuint32(17, 255),
54  ZS_threshold = cms.uint32(1),
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.))