ATLAS Offline Software
Functions
python.CaloClusterMLCalibAlgLiteConfig Namespace Reference

Functions

def CaloClusterMLCalibAlgLiteCfg (flags, name="CaloClusterMLCalibAlgLite", **kwargs)
 

Function Documentation

◆ CaloClusterMLCalibAlgLiteCfg()

def python.CaloClusterMLCalibAlgLiteConfig.CaloClusterMLCalibAlgLiteCfg (   flags,
  name = "CaloClusterMLCalibAlgLite",
**  kwargs 
)

Definition at line 12 of file CaloClusterMLCalibAlgLiteConfig.py.

12 def CaloClusterMLCalibAlgLiteCfg(flags, name="CaloClusterMLCalibAlgLite", **kwargs):
14 
15  legacy = "CaloCalTopoClusters" # the name you want on disk at the end
16  tempIn = "CaloCalTopoClusters_in" # a private, in-memory name for reading
17 
18  # --- Read old key under a temp name
19  ca.merge(InputRenameCfg("xAOD::CaloClusterContainer", legacy, tempIn))
20  ca.merge(InputRenameCfg("xAOD::CaloClusterAuxContainer", legacy+"Aux.", tempIn+"Aux."))
21 
22  alg = CompFactory.CaloClusterMLCalibAlgLite(name, **kwargs)
23  alg.CaloClusterMLCalibToolLite = ca.popToolsAndMerge(CaloClusterMLCalibToolLiteCfg(flags))
24 
25  # Read the temp key, write the legacy key
26  alg.InputClusterContainer = tempIn
27  alg.OutputClusterContainer = legacy
28 
29  # Decor goes on the OUTPUT (legacy) collection
30  alg.ClusterMLCalibratedEnergyUncKeyName = f"{legacy}.clusterE_ML_unc"
31 
32  ca.addEventAlgo(alg)
33  return ca
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloClusterMLCalibAlgLiteConfig.CaloClusterMLCalibAlgLiteCfg
def CaloClusterMLCalibAlgLiteCfg(flags, name="CaloClusterMLCalibAlgLite", **kwargs)
Definition: CaloClusterMLCalibAlgLiteConfig.py:12
CaloClusterMLCalibToolLiteCfg
Definition: CaloClusterMLCalibToolLiteCfg.py:1
AddressRemappingConfig.InputRenameCfg
def InputRenameCfg(type, from_name, to_name)
Definition: AddressRemappingConfig.py:28