CMS 3D CMS Logo

customVFE.py
Go to the documentation of this file.
2 
3 def custom_hgcroc_oot(process,
4  oot_coefficients=vfe_proc.linearizationCfg_si.oot_coefficients
5  ):
6  parameters = vfe_proc.clone(
7  linearizationCfg_si = vfe_proc.linearizationCfg_si.clone(oot_coefficients=oot_coefficients),
8  linearizationCfg_sc = vfe_proc.linearizationCfg_sc.clone(oot_coefficients=oot_coefficients),
9  )
10  process.l1tHGCalVFEProducer.ProcessorParameters = parameters
11  return process
12 
13 
14 def custom_hgcroc_compression(process,
15  exponentBits=vfe_proc.compressionCfg_ldm.exponentBits,
16  mantissaBits=vfe_proc.compressionCfg_ldm.mantissaBits,
17  rounding=vfe_proc.compressionCfg_ldm.rounding,
18  truncationBits_ldm=vfe_proc.compressionCfg_ldm.truncationBits,
19  truncationBits_hdm=vfe_proc.compressionCfg_hdm.truncationBits,
20  ):
21  parameters = vfe_proc.clone(
22  compressionCfg_ldm = vfe_proc.compressionCfg_ldm.clone(
23  exponentBits=exponentBits,
24  mantissaBits=mantissaBits,
25  truncationBits=truncationBits_ldm,
26  rounding=rounding,
27  ),
28  compressionCfg_hdm = vfe_proc.compressionCfg_hdm.clone(
29  exponentBits=exponentBits,
30  mantissaBits=mantissaBits,
31  truncationBits=truncationBits_hdm,
32  rounding=rounding,
33  ),
34  )
35  process.l1tHGCalVFEProducer.ProcessorParameters = parameters
36  return process
def custom_hgcroc_oot(process, oot_coefficients=vfe_proc.linearizationCfg_si.oot_coefficients)
Definition: customVFE.py:5
def custom_hgcroc_compression(process, exponentBits=vfe_proc.compressionCfg_ldm.exponentBits, mantissaBits=vfe_proc.compressionCfg_ldm.mantissaBits, rounding=vfe_proc.compressionCfg_ldm.rounding, truncationBits_ldm=vfe_proc.compressionCfg_ldm.truncationBits, truncationBits_hdm=vfe_proc.compressionCfg_hdm.truncationBits)
Definition: customVFE.py:20