ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
python
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
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
from
AthenaConfiguration.ComponentFactory
import
CompFactory
8
from
CaloClusterCorrection.CaloClusterMLCalibToolLiteCfg
import
CaloClusterMLCalibToolLiteCfg
9
10
def
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
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
CaloClusterMLCalibToolLiteCfg
Definition
CaloClusterMLCalibToolLiteCfg.py:1
python.CaloClusterMLCalibAlgLiteConfig.CaloClusterMLCalibAlgLiteCfg
CaloClusterMLCalibAlgLiteCfg(flags, name="CaloClusterMLCalibAlgLite", **kwargs)
Definition
CaloClusterMLCalibAlgLiteConfig.py:10
Generated on
for ATLAS Offline Software by
1.17.0