|
1 | 1 | import FWCore.ParameterSet.Config as cms |
2 | 2 | import SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi as digiparam |
| 3 | +from Configuration.Eras.Modifier_phase2_hgcalV19_cff import phase2_hgcalV19 |
3 | 4 |
|
4 | 5 | # Digitization parameters |
5 | 6 | adcSaturationBH_MIP = digiparam.hgchebackDigitizer.digiCfg.feCfg.adcSaturation_fC |
6 | 7 | adcNbitsBH = digiparam.hgchebackDigitizer.digiCfg.feCfg.adcNbits |
7 | 8 |
|
8 | 9 | # MAX_LAYERS should be equal to kNHGCalLayersMax_ defined in interface/HGCalCoarseTriggerCellMapping.h |
9 | 10 | # 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 |
11 | 14 | 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 ) |
15 | 23 |
|
16 | 24 | threshold_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'), |
17 | 25 | Method = cms.vstring(['thresholdSelect']*3), |
|
23 | 31 | ctcSize = CTC_2_SIZES, |
24 | 32 | ) |
25 | 33 |
|
| 34 | +phase2_hgcalV19.toModify(threshold_conc_proc, |
| 35 | + ctcSize = CTC_2_SIZES_V19, |
| 36 | + ) |
| 37 | + |
26 | 38 | # Column is Nlinks, Row is NWafers |
27 | 39 | # Requested size = 8(links)x8(wafers) |
28 | 40 | # Values taken from https://indico.cern.ch/event/747610/contributions/3155360/, slide 13 |
|
79 | 91 | superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(), |
80 | 92 | ctcSize = CTC_2_SIZES, |
81 | 93 | ) |
| 94 | +phase2_hgcalV19.toModify(best_conc_proc, |
| 95 | + ctcSize = CTC_2_SIZES_V19, |
| 96 | + ) |
82 | 97 |
|
83 | 98 | supertc_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'), |
84 | 99 | Method = cms.vstring(['superTriggerCellSelect']*3), |
|
95 | 110 | superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(), |
96 | 111 | superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(), |
97 | 112 | ) |
| 113 | +phase2_hgcalV19.toModify(supertc_conc_proc, |
| 114 | + stcSize = STC_4_AND_16_SIZES_V19, |
| 115 | + ctcSize = CTC_2_SIZES_V19, |
| 116 | + ) |
| 117 | + |
98 | 118 |
|
99 | 119 | custom_conc_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'), |
100 | 120 | Method = cms.vstring('bestChoiceSelect','superTriggerCellSelect','superTriggerCellSelect'), |
|
114 | 134 | superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(), |
115 | 135 | superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(), |
116 | 136 | ) |
| 137 | +phase2_hgcalV19.toModify(custom_conc_proc, |
| 138 | + stcSize = STC_4_AND_16_SIZES_V19, |
| 139 | + ctcSize = CTC_2_SIZES_V19, |
| 140 | + ) |
117 | 141 |
|
118 | 142 |
|
119 | 143 | coarsetc_onebitfraction_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'), |
|
134 | 158 | superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(), |
135 | 159 | superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(), |
136 | 160 | ) |
| 161 | +phase2_hgcalV19.toModify(coarsetc_onebitfraction_proc, |
| 162 | + stcSize = STC_4_AND_8_SIZES_V19, |
| 163 | + ctcSize = CTC_2_SIZES_V19, |
| 164 | + ) |
137 | 165 |
|
138 | 166 |
|
139 | 167 | coarsetc_equalshare_proc = cms.PSet(ProcessorName = cms.string('HGCalConcentratorProcessorSelection'), |
|
151 | 179 | superTCCalibration_hesc = vfe_proc.calibrationCfg_hesc.clone(), |
152 | 180 | superTCCalibration_nose = vfe_proc.calibrationCfg_nose.clone(), |
153 | 181 | ) |
| 182 | +phase2_hgcalV19.toModify(coarsetc_equalshare_proc, |
| 183 | + stcSize = STC_4_AND_8_SIZES_V19, |
| 184 | + ctcSize = CTC_2_SIZES_V19, |
| 185 | + ) |
154 | 186 |
|
155 | 187 |
|
156 | 188 | autoencoder_triggerCellRemap = [0,16, 32, |
|
0 commit comments