3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaCommon.Logging
import logging
6 __log = logging.getLogger(
'SubtractedCellGetterCA')
11 cellCopyTool=CompFactory.CaloCellContCopyTool(name=
"HICellCopyTool")
17 cellMakerTools=[cellCopyTool,cellSubtrTool,cellFinalizerTool]
19 cellAlgo = CompFactory.CaloCellMaker(
"HICaloCellCopier",
20 CaloCellMakerToolNames=cellMakerTools,
21 CaloCellsOutputName=flags.HeavyIon.Egamma.SubtractedCells,
22 EnableChronoStat=(flags.Concurrency.NumThreads == 0))
25 acc.addEventAlgo(cellAlgo)
29 includeSamplings=[
"PreSamplerB",
"EMB1",
"EMB2",
"EMB3",
30 "PreSamplerE",
"EME1",
"EME2",
"EME3",
31 "HEC0",
"HEC1",
"HEC2",
"HEC3",
32 "TileBar0",
"TileBar1",
"TileBar2",
33 "TileGap1",
"TileGap2",
"TileGap3",
34 "TileExt0",
"TileExt1",
"TileExt2",
35 "FCal1",
"FCal2",
"FCal3" ]
36 kwargs.setdefault(
"IncludeSamplings",includeSamplings)
37 kwargs.setdefault(
"InputName",
"AllCalo")
40 acc.setPrivateTools(CompFactory.CaloCellFastCopyTool(name, **kwargs))
46 if "Modulator" not in kwargs:
47 __log.warning(
"Modulator is None, will set it to NULL")
48 from HIJetRec.HIJetRecConfigCA
import NullModulatorCfg
50 kwargs.setdefault(
"Modulator", modulator)
51 if "EventShapeKey" not in kwargs:
52 kwargs.setdefault(
"EventShapeKey", flags.HeavyIon.Egamma.EventShape)
53 if "EventShapeMapTool" not in kwargs:
54 from HIGlobal.HIGlobalConfig
import HIEventShapeMapToolCfg
56 kwargs.setdefault(
"EventShapeMapTool",eventShapeMapTool)
58 acc.setPrivateTools(CompFactory.HISubtractedCellMakerTool(name, **kwargs))
63 acc.setPrivateTools(CompFactory.CaloCellContainerFinalizerTool(name, **kwargs))