Skip to content

Commit c6eb4e4

Browse files
committed
fix more paramters through V19
1 parent 93199b3 commit c6eb4e4

File tree

7 files changed

+51
-22
lines changed

7 files changed

+51
-22
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import FWCore.ParameterSet.Config as cms
2+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
23

34
HGCAL_chargeCollectionEfficiencies = cms.PSet(
45
values = cms.vdouble(1.0, 1.0, 1.0)
5-
)
6+
)
7+
8+
phase2_hgcalV19.toModify(HGCAL_chargeCollectionEfficiencies, values = cms.vdouble(1.0, 1.0,1.0,1.0))
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import FWCore.ParameterSet.Config as cms
2+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
23

34
HGCAL_noise_fC = cms.PSet(
45
doseMap = cms.string(''),
56
scaleByDose = cms.bool(False),
67
scaleByDoseAlgo = cms.uint32(0),
78
scaleByDoseFactor = cms.double(1),
89
values = cms.vdouble(0.32041011999999996, 0.384492144, 0.32041011999999996)
9-
)
10+
)
11+
12+
phase2_hgcalV19.toModify(HGCAL_noise_fC , values = cms.vdouble(0.32041011999999996, 0.384492144, 0.32041011999999996, 0.384492144))

HLTrigger/Configuration/python/HLT_75e33/psets/hgcal_reco_constants_cfi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
2000.0, 2400.0, 2000.0, 2400.0, 2000.0, 2400.0,
5656
2000.0, 2400.
5757
),
58-
numberOfThicknesses = cms.uint32(4)
58+
numberOfThicknesses = cms.uint32(4),
59+
maxNumberOfThickIndices = cms.uint32(8)
5960
)
6061

L1Trigger/L1THGCal/interface/veryfrontend/HGCalVFESummationImpl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "DataFormats/DetId/interface/DetId.h"
66
#include "L1Trigger/L1THGCal/interface/HGCalTriggerTools.h"
77

8+
#include <cstdint>
89
#include <vector>
910
#include <utility>
1011
#include <unordered_map>
@@ -19,6 +20,7 @@ class HGCalVFESummationImpl {
1920
private:
2021
double lsb_silicon_fC_;
2122
double lsb_scintillator_MIP_;
23+
uint32_t nThickness_;
2224
std::vector<double> thresholds_silicon_;
2325
double threshold_scintillator_;
2426

L1Trigger/L1THGCal/python/l1tHGCalVFEProducer_cfi.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,17 @@
139139
chargeCollectionEfficiency = cms.PSet(refToPSet_ = cms.string("HGCAL_chargeCollectionEfficiencies")),
140140
)
141141

142-
143-
144142
l1tHGCalVFEProducer = cms.EDProducer(
145-
"HGCalVFEProducer",
146-
eeDigis = cms.InputTag('simHGCalUnsuppressedDigis:EE'),
147-
fhDigis = cms.InputTag('simHGCalUnsuppressedDigis:HEfront'),
148-
bhDigis = cms.InputTag('simHGCalUnsuppressedDigis:HEback'),
149-
ProcessorParameters = vfe_proc.clone()
150-
)
143+
"HGCalVFEProducer",
144+
eeDigis = cms.InputTag('simHGCalUnsuppressedDigis:EE'),
145+
fhDigis = cms.InputTag('simHGCalUnsuppressedDigis:HEfront'),
146+
bhDigis = cms.InputTag('simHGCalUnsuppressedDigis:HEback'),
147+
ProcessorParameters = vfe_proc.clone(
148+
summationCfg = vfe_proc.summationCfg.clone(
149+
numberOfThicknesses = HGCAL_reco_constants.numberOfThicknesses
150+
)
151+
)
152+
)
151153

152154
l1tHFnoseVFEProducer = cms.EDProducer(
153155
"HFNoseVFEProducer",

L1Trigger/L1THGCal/src/veryfrontend/HGCalVFESummationImpl.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#include "L1Trigger/L1THGCal/interface/veryfrontend/HGCalVFESummationImpl.h"
2+
#include <cstdint>
23

34
HGCalVFESummationImpl::HGCalVFESummationImpl(const edm::ParameterSet& conf)
45
: lsb_silicon_fC_(conf.getParameter<double>("siliconCellLSB_fC")),
5-
lsb_scintillator_MIP_(conf.getParameter<double>("scintillatorCellLSB_MIP")) {
6-
constexpr unsigned nThickness = 3;
6+
lsb_scintillator_MIP_(conf.getParameter<double>("scintillatorCellLSB_MIP")),
7+
nThickness_(conf.getParameter<uint32_t>("numberOfThicknesses"))
8+
{
79
thresholds_silicon_ =
810
conf.getParameter<edm::ParameterSet>("noiseSilicon").getParameter<std::vector<double>>("values");
9-
if (thresholds_silicon_.size() != nThickness) {
11+
if (thresholds_silicon_.size() != nThickness_) {
1012
throw cms::Exception("Configuration") << thresholds_silicon_.size() << " silicon thresholds are given instead of "
11-
<< nThickness << " (the number of sensor thicknesses)";
13+
<< nThickness_ << " (the number of sensor thicknesses)";
1214
}
1315
threshold_scintillator_ = conf.getParameter<edm::ParameterSet>("noiseScintillator").getParameter<double>("noise_MIP");
1416
const auto threshold = conf.getParameter<double>("noiseThreshold");

SimCalorimetry/HGCalSimProducers/python/hgcalDigitizer_cfi.py

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
from SimCalorimetry.HGCalSimProducers.hgcROCParameters_cfi import hgcROCSettings
44
from SimCalorimetry.HGCalSimAlgos.hgcSensorOpParams_cfi import hgcSiSensorIleak,hgcSiSensorCCE
5+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
56

67
# Base configurations for HGCal digitizers
78
eV_per_eh_pair = 3.62
89
fC_per_ele = 1.6020506e-4
9-
nonAgedCCEs = [1.0, 1.0, 1.0]
10-
nonAgedNoises = [2100.0,2100.0,1600.0] #100,200,300 um (in electrons)
11-
nonAgedNoises_v9 = [2000.0,2400.0,2000.0] # 120,200,300 um (in electrons)
10+
nonAgedCCEs = [1.0, 1.0, 1.0] # HD120, LD200, LD300, HD120 um (in electrons) - the last entry will be ignored for v<v19
11+
nonAgedCCEs_v19 = [1.0, 1.0, 1.0, 1.0] # HD120, LD200, LD300, HD120 um (in electrons) - the last entry will be ignored for v<v19
12+
nonAgedNoises = [2100.0,2100.0,1600.0] # " " notice the noise is further scaled by the size of the cell
13+
nonAgedNoises_v19 = [2100.0,2100.0,1600.0,2100.0] # " " notice the noise is further scaled by the size of the cell
14+
nonAgedNoises_v9 = [2000.0,2400.0,2000.0] # " "
15+
nonAgedNoises_v9_v19 = [2000.0,2400.0,2000.0,2400.0] # " "
1216
thresholdTracksMIP = True
1317

1418
HGCAL_ileakParam_toUse = cms.PSet(
@@ -190,7 +194,9 @@
190194

191195
#function to set noise to aged HGCal
192196
endOfLifeCCEs = [0.5, 0.5, 0.7] # this is to be deprecated
193-
endOfLifeNoises = [2400.0,2250.0,1750.0] #this is to be deprecated
197+
endOfLifeNoises = [2400.0, 2250.0, 1750.0] #this is to be deprecated
198+
endOfLifeCCEs_v19 = [0.5, 0.5, 0.7, 0.5] # this is to be deprecated
199+
endOfLifeNoises_v19 = [2400.0, 2250.0, 1750.0, 2250.0] #this is to be deprecated
194200
def HGCal_setEndOfLifeNoise(process,byDose=True,byDoseAlgo=0,byDoseAlgoSci=2,byDoseFactor=1):
195201
"""
196202
includes all effects from radiation and gain choice
@@ -321,6 +327,10 @@ def HGCal_setRealisticNoiseSi(process,byDose=True,byDoseAlgo=0,byDoseMap=doseMap
321327
process.HGCAL_noises = cms.PSet(
322328
values = cms.vdouble([x for x in endOfLifeNoises])
323329
)
330+
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = cms.vdouble( [x*fC_per_ele for x in endOfLifeNoises_v19] )) #100,200,300 um, to be deprecated
331+
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = cms.vdouble( [x*fC_per_ele for x in endOfLifeNoises_v19] )) #100,200,300 um, to be deprecated
332+
phase2_hgcalV19.toModify(HGCAL_chargeCollectionEfficiencies, values = cms.vdouble(endOfLifeNoises_v19))
333+
phase2_hgcalV19.toModify(HGCAL_noise, values = cms.vdouble([x for x in endOfLifeNoises_v19]))
324334

325335
return process
326336

@@ -333,6 +343,8 @@ def HFNose_setRealisticNoiseSi(process,byDose=True,byDoseAlgo=0,byDoseMap=doseMa
333343
doseMap = byDoseMap,
334344
values = cms.vdouble( [x*fC_per_ele for x in endOfLifeNoises] ), #100,200,300 um
335345
)
346+
347+
phase2_hgcalV19.toModify(HFNose_noise_fC, values = cms.vdouble( [x*fC_per_ele for x in endOfLifeNoises_v19] )) #100,200,300 um, to be deprecated
336348
return process
337349

338350

@@ -376,17 +388,21 @@ def HGCal_disableNoise(process):
376388
process.HGCAL_noises = cms.PSet(
377389
values = cms.vdouble(0,0,0)
378390
)
391+
392+
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = cms.vdouble(0.,0.,0.,0.))
393+
phase2_hgcalV19.toModify(HGCAL_noises, values = cms.vdouble(0.,0.,0.,0.))
379394
return process
380395

381396
from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
382397

383398
phase2_hgcalV10.toModify(HGCAL_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9])
384399
phase2_hgcalV10.toModify(HGCAL_noises, values = [x for x in nonAgedNoises_v9])
385400

386-
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
387401

388-
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9])
389-
phase2_hgcalV19.toModify(HGCAL_noises, values = [x for x in nonAgedNoises_v9])
402+
phase2_hgcalV19.toModify(HGCAL_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9_v19])
403+
phase2_hgcalV19.toModify(HFNose_noise_fC, values = [x*fC_per_ele for x in nonAgedNoises_v9_v19])
404+
phase2_hgcalV19.toModify(HGCAL_noises, values = [x for x in nonAgedNoises_v9_v19])
405+
phase2_hgcalV19.toModify(HGCAL_chargeCollectionEfficiencies, values = nonAgedCCEs_v19)
390406

391407
def HFNose_setEndOfLifeNoise(process,byDose=True,byDoseAlgo=0,byDoseFactor=1):
392408
"""includes all effects from radiation and gain choice"""

0 commit comments

Comments
 (0)