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_threshold = cms.uint32(17), ## threshold for setting fine grain bit
22  ZS_threshold = cms.uint32(1), ## threshold for setting fine grain bit
23  numberOfSamples = cms.int32(4),
24  numberOfPresamples = cms.int32(2),
25  numberOfSamplesHF = cms.int32(4),
26  numberOfPresamplesHF = cms.int32(2),
27  MinSignalThreshold = cms.uint32(0), # For HF PMT veto
28  PMTNoiseThreshold = cms.uint32(0), # For HF PMT veto
29  LSConfig=LSParameter,
30 
31  upgradeHF = cms.bool(False),
32  upgradeHB = cms.bool(False),
33  upgradeHE = cms.bool(False),
34 
35  # parameters = cms.untracked.PSet(
36  # FGVersionHBHE=cms.uint32(0),
37  # TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
38  # ADCThreshold=cms.uint32(0),
39  # FGThreshold=cms.uint32(12)
40  # ),
41 
42  #vdouble weights = { -1, -1, 1, 1} //low lumi algo
43  # Input digi label (_must_ be without zero-suppression!)
44  inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
45  cms.InputTag('simHcalUnsuppressedDigis')),
46  inputUpgradeLabel = cms.VInputTag(
47  cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
48  cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
49  InputTagFEDRaw = cms.InputTag("rawDataCollector"),
50  RunZS = cms.bool(False),
51  FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
52  PeakFinderAlgorithm = cms.int32(2),
53 
54  tpScales = tpScales,
55 )
56 
57 run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
58 run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis,
59  upgradeHF=cms.bool(True),
60  numberOfSamplesHF = cms.int32(2),
61  numberOfPresamplesHF = cms.int32(1)
62 )
63 run2_HF_2017.toModify(tpScales.HF, NCTShift=cms.int32(2))
64 run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
65 run3_HB.toModify(tpScales.HBHE, LSBQIE11Overlap=cms.double(1/16.))