1 import FWCore.ParameterSet.Config
as cms
5 from Configuration.Eras.Modifier_phase2_hgcalV16_cff
import phase2_hgcalV16
9 def calcWeights(weightsPerLayer): res = [sum(wei)/2.
for wei
in zip(weightsPerLayer[:], weightsPerLayer[1:] + [weightsPerLayer[-1]])]; res[0] = dummy_weight;
return res;
12 weightsPerLayer_V16 = cms.vdouble(dummy_weight,
64 weights = cms.vdouble(0.0,
116 weightsNose = cms.vdouble(0.0,
130 weights = cms.vdouble(
calcWeights(weightsPerLayer_V16)),
132 weightsNose = cms.vdouble(0.0,
144 HGCalRecHit = cms.EDProducer(
145 "HGCalRecHitProducer",
146 HGCEErechitCollection = cms.string(
'HGCEERecHits'),
147 HGCEEuncalibRecHitCollection = cms.InputTag(
'HGCalUncalibRecHit:HGCEEUncalibRecHits'),
148 HGCHEFrechitCollection = cms.string(
'HGCHEFRecHits'),
149 HGCHEFuncalibRecHitCollection = cms.InputTag(
'HGCalUncalibRecHit:HGCHEFUncalibRecHits'),
150 HGCHEBrechitCollection = cms.string(
'HGCHEBRecHits'),
151 HGCHEBuncalibRecHitCollection = cms.InputTag(
'HGCalUncalibRecHit:HGCHEBUncalibRecHits'),
152 HGCHFNoserechitCollection = cms.string(
'HGCHFNoseRecHits'),
153 HGCHFNoseuncalibRecHitCollection = cms.InputTag(
'HGCalUncalibRecHit:HGCHFNoseUncalibRecHits'),
157 HGCEE_keV2DIGI = hgceeDigitizer.digiCfg.keV2fC,
158 HGCEE_isSiFE = HGCalUncalibRecHit.HGCEEConfig.isSiFE,
159 HGCEE_fCPerMIP = HGCalUncalibRecHit.HGCEEConfig.fCPerMIP,
160 HGCHEF_keV2DIGI = hgchefrontDigitizer.digiCfg.keV2fC,
161 HGCHEF_isSiFE = HGCalUncalibRecHit.HGCHEFConfig.isSiFE,
162 HGCHEF_fCPerMIP = HGCalUncalibRecHit.HGCHEFConfig.fCPerMIP,
163 HGCHEB_keV2DIGI = hgchebackDigitizer.digiCfg.keV2MIP,
164 HGCHEB_isSiFE = HGCalUncalibRecHit.HGCHEBConfig.isSiFE,
165 HGCHFNose_keV2DIGI = hfnoseDigitizer.digiCfg.keV2fC,
166 HGCHFNose_isSiFE = HGCalUncalibRecHit.HGCHFNoseConfig.isSiFE,
167 HGCHFNose_fCPerMIP = HGCalUncalibRecHit.HGCHFNoseConfig.fCPerMIP,
169 rangeMask = cms.uint32(4294442496),
170 rangeMatch = cms.uint32(1161838592),
174 layerWeights = dEdX.weights,
175 layerNoseWeights = dEdX.weightsNose,
180 thicknessCorrection = cms.vdouble(1.132,1.092,1.084,1.0,1.0,1.0),
181 deltasi_index_regemfac = cms.int32(3),
183 sciThicknessCorrection = cms.double(1.0),
184 thicknessNoseCorrection = cms.vdouble(1.132,1.092,1.084),
186 HGCEE_noise_fC = hgceeDigitizer.digiCfg.noise_fC,
187 HGCEE_cce = hgceeDigitizer.digiCfg.chargeCollectionEfficiencies,
188 HGCHEF_noise_fC = hgchefrontDigitizer.digiCfg.noise_fC,
189 HGCHEF_cce = hgchefrontDigitizer.digiCfg.chargeCollectionEfficiencies,
190 HGCHEB_noise_MIP = hgchebackDigitizer.digiCfg.noise,
191 HGCHFNose_noise_fC = hfnoseDigitizer.digiCfg.noise_fC,
192 HGCHFNose_cce = hfnoseDigitizer.digiCfg.chargeCollectionEfficiencies,
195 minValSiPar = cms.double(10.),
196 maxValSiPar = cms.double(1.e4),
197 noiseSiPar = cms.double(5.5),
198 constSiPar = cms.double(0.02),
201 algo = cms.string(
"HGCalRecHitWorkerSimple")
206 phase2_hgcalV10.toModify( HGCalRecHit , thicknessCorrection = [0.77, 0.77, 0.77, 0.84, 0.84, 0.84] , sciThicknessCorrection = 0.90 )
208 phase2_hfnose.toModify( HGCalRecHit , thicknessNoseCorrection = [0.58,0.58,0.58])
210 phase2_hgcalV16.toModify(HGCalRecHit,
211 thicknessCorrection = [0.75, 0.76, 0.75, 0.85, 0.85, 0.84] ,
212 sciThicknessCorrection = 0.69,
213 layerWeights = dEdX_v16.weights)
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float zip(ConstView const &tracks, int32_t i)
def calcWeights(weightsPerLayer)