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  numberOfSamples = cms.int32(4),
52  numberOfPresamples = cms.int32(2),
53  numberOfSamplesHF = cms.int32(4),
54  numberOfPresamplesHF = cms.int32(2),
55  numberOfFilterPresamplesHBQIE11 = cms.int32(0),
56  numberOfFilterPresamplesHEQIE11 = cms.int32(0),
57  useTDCInMinBiasBits = cms.bool(False), # TDC information not used in MB fine grain bits
58  MinSignalThreshold = cms.uint32(0), # For HF PMT veto
59  PMTNoiseThreshold = cms.uint32(0), # For HF PMT veto
60  LSConfig=LSParameter,
61 
62  upgradeHF = cms.bool(False),
63  upgradeHB = cms.bool(False),
64  upgradeHE = cms.bool(False),
65 
66  applySaturationFix = cms.bool(False), # Apply the TP energy saturation fix for Peak Finder Algorithm only for Run3
67 
68  # parameters = cms.untracked.PSet(
69  # FGVersionHBHE=cms.uint32(0),
70  # TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
71  # ADCThreshold=cms.uint32(0),
72  # FGThreshold=cms.uint32(12)
73  # ),
74 
75  #vdouble weights = { -1, -1, 1, 1} //low lumi algo
76  # Input digi label (_must_ be without zero-suppression!)
77  inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
78  cms.InputTag('simHcalUnsuppressedDigis')),
79  inputUpgradeLabel = cms.VInputTag(
80  cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
81  cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
82  InputTagFEDRaw = cms.InputTag("rawDataCollector"),
83  overrideDBweightsAndFilterHB = cms.bool(False),
84  overrideDBweightsAndFilterHE = cms.bool(False),
85  RunZS = cms.bool(False),
86  FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
87  PeakFinderAlgorithm = cms.int32(2),
88 
89  tpScales = tpScales,
90 )
91 
92 from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
93 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=True)
94 
95 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
96 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
97  upgradeHF=True,
98  numberOfSamplesHF = 2,
99  numberOfPresamplesHF = 1
100 )
101 
102 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
103 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=True)
104 
105 from Configuration.Eras.Modifier_run3_common_cff import run3_common
106 run3_common.toModify(simHcalTriggerPrimitiveDigis, applySaturationFix=True)