ATLAS Offline Software
Loading...
Searching...
No Matches
PixelCalibAlgsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2# Configuration of PixelCalibAlgs package
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5def PixelChargeToTConversionCfg(flags, name='InDetPixelChargeToTConversion', **kwargs):
6 from PixelReadoutGeometry.PixelReadoutGeometryConfig import PixelReadoutManagerCfg
7 acc = PixelReadoutManagerCfg(flags)
8
9 from PixelConditionsAlgorithms.PixelConditionsConfig import PixelConfigCondAlgCfg, PixelChargeCalibCondCfg
10 acc.merge(PixelConfigCondAlgCfg(flags))
11 acc.merge(PixelChargeCalibCondCfg(flags))
12 acc.addEventAlgo(CompFactory.PixelChargeToTConversion(name, **kwargs))
13 return acc
14
15def ITkPixelChargeToTConversionCfg(flags, name='ITkPixelChargeToTConversion', **kwargs):
16 from PixelReadoutGeometry.PixelReadoutGeometryConfig import ITkPixelReadoutManagerCfg
17 acc = ITkPixelReadoutManagerCfg(flags)
18
19 from PixelConditionsAlgorithms.ITkPixelConditionsConfig import ITkPixelModuleConfigCondAlgCfg, ITkPixelChargeCalibCondAlgCfg
20 acc.merge(ITkPixelModuleConfigCondAlgCfg(flags))
21 acc.merge(ITkPixelChargeCalibCondAlgCfg(flags))
22
23 kwargs.setdefault("PixelClusterContainer", "ITkPixelClusters")
24 kwargs.setdefault("PixelReadoutManager", acc.getPrimary())
25 kwargs.setdefault("PixelChargeCalibCondData", "ITkPixelChargeCalibCondData")
26 kwargs.setdefault("PixelDetEleCollKey", "ITkPixelDetectorElementCollection")
27 kwargs.setdefault("IBLParameterSvc", "")
28
29 acc.addEventAlgo(CompFactory.PixelChargeToTConversion(name, **kwargs))
30 return acc
PixelChargeToTConversionCfg(flags, name='InDetPixelChargeToTConversion', **kwargs)
ITkPixelChargeToTConversionCfg(flags, name='ITkPixelChargeToTConversion', **kwargs)