CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.hgcalVFEProducer.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.hgcalVFEProducer.ProcessorParameters = parameters
36  return process
def custom_hgcroc_oot
Definition: customVFE.py:5
def custom_hgcroc_compression
Definition: customVFE.py:20