File indexing completed on 2024-04-06 12:20:40
0001 from L1Trigger.L1THGCal.l1tHGCalVFEProducer_cfi import vfe_proc
0002
0003 def custom_hgcroc_oot(process,
0004 oot_coefficients=vfe_proc.linearizationCfg_si.oot_coefficients
0005 ):
0006 parameters = vfe_proc.clone(
0007 linearizationCfg_si = vfe_proc.linearizationCfg_si.clone(oot_coefficients=oot_coefficients),
0008 linearizationCfg_sc = vfe_proc.linearizationCfg_sc.clone(oot_coefficients=oot_coefficients),
0009 )
0010 process.l1tHGCalVFEProducer.ProcessorParameters = parameters
0011 return process
0012
0013
0014 def custom_hgcroc_compression(process,
0015 exponentBits=vfe_proc.compressionCfg_ldm.exponentBits,
0016 mantissaBits=vfe_proc.compressionCfg_ldm.mantissaBits,
0017 rounding=vfe_proc.compressionCfg_ldm.rounding,
0018 truncationBits_ldm=vfe_proc.compressionCfg_ldm.truncationBits,
0019 truncationBits_hdm=vfe_proc.compressionCfg_hdm.truncationBits,
0020 ):
0021 parameters = vfe_proc.clone(
0022 compressionCfg_ldm = vfe_proc.compressionCfg_ldm.clone(
0023 exponentBits=exponentBits,
0024 mantissaBits=mantissaBits,
0025 truncationBits=truncationBits_ldm,
0026 rounding=rounding,
0027 ),
0028 compressionCfg_hdm = vfe_proc.compressionCfg_hdm.clone(
0029 exponentBits=exponentBits,
0030 mantissaBits=mantissaBits,
0031 truncationBits=truncationBits_hdm,
0032 rounding=rounding,
0033 ),
0034 )
0035 process.l1tHGCalVFEProducer.ProcessorParameters = parameters
0036 return process