Skip to content

Commit f2889df

Browse files
jbsauvanwaredjeb
authored andcommitted
add V19 proc modifier for CTC/STC sizes
1 parent b07d103 commit f2889df

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

L1Trigger/L1THGCal/python/l1tHGCalConcentratorProducer_cfi.py

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
import FWCore.ParameterSet.Config as cms
22
import SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi as digiparam
3+
from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19
34

45
# Digitization parameters
56
adcSaturationBH_MIP = digiparam.hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC
67
adcNbitsBH = digiparam.hgchebackDigitizer.digiCfg.feCfg.adcNbits
78

89
# MAX_LAYERS should be equal to kNHGCalLayersMax_ defined in interface/HGCalCoarseTriggerCellMapping.h
910
# MAX_LAYERS can be larger than the actual number of layers
10-
# CTC / STC sizes vectors should have a length of 5*MAX_LAYERS, 5 = 4 different silicon thicknesses/types (HD120, LD200, LD300, HD200) + scintillator portion
11+
# CTC / STC sizes vectors should have a length of (N_THICKNESSES+1)*MAX_LAYERS
12+
# <V19: 3 different silicon thicknesses/types (HD120, LD200, LD300) + scintillator portion
13+
# >=V19: 4 different silicon thicknesses/types (HD120, LD200, LD300, HD200) + scintillator portion
1114
MAX_LAYERS = 52
12-
CTC_2_SIZES = cms.vuint32( [2]*(MAX_LAYERS+1)*5 )
13-
STC_4_AND_16_SIZES = cms.vuint32( [4]*(MAX_LAYERS+1)+ [16]*(MAX_LAYERS+1)*4 )
14-
STC_4_AND_8_SIZES = cms.vuint32( [4]*(MAX_LAYERS+1)+ [8]*(MAX_LAYERS+1)*4 )
15+
N_THICKNESSES = 3
16+
CTC_2_SIZES = cms.vuint32( [2]*(MAX_LAYERS+1)*(N_THICKNESSES+1) )
17+
STC_4_AND_16_SIZES = cms.vuint32( [4]*(MAX_LAYERS+1)+ [16]*(MAX_LAYERS+1)*N_THICKNESSES )
18+
STC_4_AND_8_SIZES = cms.vuint32( [4]*(MAX_LAYERS+1)+ [8]*(MAX_LAYERS+1)*N_THICKNESSES )
19+
N_THICKNESSES_V19 = 4
20+
CTC_2_SIZES_V19 = cms.vuint32( [2]*(MAX_LAYERS+1)*(N_THICKNESSES_V19+1) )
21+
STC_4_AND_16_SIZES_V19 = cms.vuint32( [4]*(MAX_LAYERS+1)+ [16]*(MAX_LAYERS+1)*N_THICKNESSES_V19 )
22+
STC_4_AND_8_SIZES_V19 = cms.vuint32( [4]*(MAX_LAYERS+1)+ [8]*(MAX_LAYERS+1)*N_THICKNESSES_V19 )
1523

1624
threshold_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'),
1725
Method = cms.vstring(['thresholdSelect']*3),
@@ -23,6 +31,10 @@
2331
ctcSize = CTC_2_SIZES,
2432
)
2533

34+
phase2_hgcalV19.toModify(threshold_conc_proc,
35+
ctcSize = CTC_2_SIZES_V19,
36+
)
37+
2638
# Column is Nlinks, Row is NWafers
2739
# Requested size = 8(links)x8(wafers)
2840
# Values taken from https://indico.cern.ch/event/747610/contributions/3155360/, slide 13
@@ -79,6 +91,9 @@
7991
superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(),
8092
ctcSize = CTC_2_SIZES,
8193
)
94+
phase2_hgcalV19.toModify(best_conc_proc,
95+
ctcSize = CTC_2_SIZES_V19,
96+
)
8297

8398
supertc_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'),
8499
Method = cms.vstring(['superTriggerCellSelect']*3),
@@ -95,6 +110,11 @@
95110
superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(),
96111
superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(),
97112
)
113+
phase2_hgcalV19.toModify(supertc_conc_proc,
114+
stcSize = STC_4_AND_16_SIZES_V19,
115+
ctcSize = CTC_2_SIZES_V19,
116+
)
117+
98118

99119
custom_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'),
100120
Method = cms.vstring('bestChoiceSelect','superTriggerCellSelect','superTriggerCellSelect'),
@@ -114,6 +134,10 @@
114134
superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(),
115135
superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(),
116136
)
137+
phase2_hgcalV19.toModify(custom_conc_proc,
138+
stcSize = STC_4_AND_16_SIZES_V19,
139+
ctcSize = CTC_2_SIZES_V19,
140+
)
117141

118142

119143
coarsetc_onebitfraction_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'),
@@ -134,6 +158,10 @@
134158
superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(),
135159
superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(),
136160
)
161+
phase2_hgcalV19.toModify(coarsetc_onebitfraction_proc,
162+
stcSize = STC_4_AND_8_SIZES_V19,
163+
ctcSize = CTC_2_SIZES_V19,
164+
)
137165

138166

139167
coarsetc_equalshare_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'),
@@ -151,6 +179,10 @@
151179
superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(),
152180
superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(),
153181
)
182+
phase2_hgcalV19.toModify(coarsetc_equalshare_proc,
183+
stcSize = STC_4_AND_8_SIZES_V19,
184+
ctcSize = CTC_2_SIZES_V19,
185+
)
154186

155187

156188
autoencoder_triggerCellRemap = [0,16, 32,

0 commit comments

Comments
 (0)