22
33from SimCalorimetry .HGCalSimProducers .hgcROCParameters_cfi import hgcROCSettings
44from 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
78eV_per_eh_pair = 3.62
89fC_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 ] # " "
1216thresholdTracksMIP = True
1317
1418HGCAL_ileakParam_toUse = cms .PSet (
190194
191195#function to set noise to aged HGCal
192196endOfLifeCCEs = [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
194200def 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
381396from Configuration .Eras .Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
382397
383398phase2_hgcalV10 .toModify (HGCAL_noise_fC , values = [x * fC_per_ele for x in nonAgedNoises_v9 ])
384399phase2_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
391407def HFNose_setEndOfLifeNoise (process ,byDose = True ,byDoseAlgo = 0 ,byDoseFactor = 1 ):
392408 """includes all effects from radiation and gain choice"""
0 commit comments