ATLAS Offline Software
Loading...
Searching...
No Matches
PFlowCalibHitDecoratorCfg.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
7 result=ComponentAccumulator()
8
9 if flags.Calo.TopoCluster.addCalibrationHitDecoration is False:
10 from CaloCalibHitRec.CaloCalibHitDecoratorCfg import CaloCalibHitDecoratorCfg
11 result.merge(CaloCalibHitDecoratorCfg(flags))
12
13 #We use the cell links from topoclusters, so we also need to specify that the algorithm depends on the calorimeter cell container
14 PFlowCalibPFODecoratorAlgorithm = CompFactory.PFlowCalibPFODecoratorAlgorithm(ExtraInputs = {('CaloCellContainer','StoreGateSvc+AllCalo')})
15 PFlowCalibPFODecoratorAlgorithm.TruthAttributerTool = CompFactory.CaloCalibClusterTruthAttributerTool("PFlowCalibPFOTruthAttributerTool")
16 result.addEventAlgo(PFlowCalibPFODecoratorAlgorithm)
17
18 return result