ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterMLCalibAlgLiteConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3# File: CaloRec/python/CaloClusterMLCalibAlgLiteConfig.py
4# Purpose: Configure CaloClusterMLCalibAlgLite.
5
6from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7from AthenaConfiguration.ComponentFactory import CompFactory
8from CaloClusterCorrection.CaloClusterMLCalibToolLiteCfg import CaloClusterMLCalibToolLiteCfg
9
10def CaloClusterMLCalibAlgLiteCfg(flags, name="CaloClusterMLCalibAlgLite", **kwargs):
11 print("CaloClusterMLCalibAlgLiteCfg: Configuring CaloClusterMLCalibAlgLite...")
12 ca = ComponentAccumulator()
13
14 clusterContainerName = "CaloCalTopoClusters" # the name you want on disk at the end
15
16 alg = CompFactory.CaloClusterMLCalibAlgLite(name, **kwargs)
17 alg.CaloClusterMLCalibToolLite = ca.popToolsAndMerge(CaloClusterMLCalibToolLiteCfg(flags))
18
19 # Read the temp key, write the legacy key
20 alg.ClusterContainer = clusterContainerName
21
22 # Decor goes on the OUTPUT (legacy) collection
23 alg.ClusterMLCalibratedEnergyKeyName = f"{clusterContainerName}.clusterE_ML"
24 alg.ClusterMLCalibratedEnergyUncKeyName = f"{clusterContainerName}.clusterE_ML_unc"
25
26 ca.addEventAlgo(alg)
27 return ca
void print(char *figname, TCanvas *c1)
CaloClusterMLCalibAlgLiteCfg(flags, name="CaloClusterMLCalibAlgLite", **kwargs)