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 
8 LSParameter =cms.untracked.PSet(
9 HcalFeatureHFEMBit= cms.bool(False),
10 Min_Long_Energy= cms.double(10),#makes a cut based on energy deposited in short vrs long
11  Min_Short_Energy= cms.double(10),
12  Long_vrs_Short_Slope= cms.double(100.2),
13  Long_Short_Offset= cms.double(10.1))
14 
15 
16 simHcalTriggerPrimitiveDigis = cms.EDProducer("HcalTrigPrimDigiProducer",
17  peakFilter = cms.bool(True),
18  weights = cms.vdouble(1.0, 1.0), ##hardware algo
19  latency = cms.int32(1),
20  FG_threshold = cms.uint32(12), ## threshold for setting fine grain bit
21  FG_HF_thresholds = cms.vuint32(17, 255), ## thresholds for setting fine grain bit
22  ZS_threshold = cms.uint32(1), ## threshold for setting TP zero suppression
23  numberOfSamples = cms.int32(4),
24  numberOfPresamples = cms.int32(2),
25  numberOfSamplesHF = cms.int32(4),
26  numberOfPresamplesHF = cms.int32(2),
27  useTDCInMinBiasBits = cms.bool(False), # TDC information not used in MB fine grain bits
28  MinSignalThreshold = cms.uint32(0), # For HF PMT veto
29  PMTNoiseThreshold = cms.uint32(0), # For HF PMT veto
30  LSConfig=LSParameter,
31 
32  upgradeHF = cms.bool(False),
33  upgradeHB = cms.bool(False),
34  upgradeHE = cms.bool(False),
35 
36  # parameters = cms.untracked.PSet(
37  # FGVersionHBHE=cms.uint32(0),
38  # TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
39  # ADCThreshold=cms.uint32(0),
40  # FGThreshold=cms.uint32(12)
41  # ),
42 
43  #vdouble weights = { -1, -1, 1, 1} //low lumi algo
44  # Input digi label (_must_ be without zero-suppression!)
45  inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
46  cms.InputTag('simHcalUnsuppressedDigis')),
47  inputUpgradeLabel = cms.VInputTag(
48  cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
49  cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
50  InputTagFEDRaw = cms.InputTag("rawDataCollector"),
51  RunZS = cms.bool(False),
52  FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
53  PeakFinderAlgorithm = cms.int32(2),
54 
55  tpScales = tpScales,
56 )
57 
58 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
59 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
60  upgradeHF=cms.bool(True),
61  numberOfSamplesHF = cms.int32(2),
62  numberOfPresamplesHF = cms.int32(1)
63 )
64 run2_HF_2017.toModify(tpScales.HF, NCTShift=cms.int32(2))
65 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
66 run3_HB.toModify(tpScales.HBHE, LSBQIE11Overlap=cms.double(1/16.))