7from AthenaConfiguration.ComponentFactory
import CompFactory
8from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 result = ComponentAccumulator()
16 CaloThinCellsBySamplingAlg=CompFactory.CaloThinCellsBySamplingAlg
17 alg = CaloThinCellsBySamplingAlg (
'CaloThinCellsBySamplingAlg_' +
'_'.join (samplings) +
'_' + streamName,
18 StreamName = streamName,
19 SamplingCellsName = samplings,
21 result.addEventAlgo (alg)
23 if "AOD" in streamName:
25 from OutputStreamAthenaPool.OutputStreamConfig
import addToAOD
26 toAOD=[f
'CaloCellContainer#{cells}',]
27 result.merge(addToAOD(flags, toAOD))
32if __name__ ==
"__main__":
33 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 from AthenaConfiguration.TestDefaults
import defaultTestFiles,defaultGeometryTags
36 only = [
'CaloThinCellsBySamplingAlg_TileGap3_StreamAOD']
38 flags1 = initConfigFlags()
39 flags1.Input.Files = defaultTestFiles.RAW_RUN2
40 flags1.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
42 acc1 = CaloThinCellsBySamplingAlgCfg (flags1,
'StreamAOD',
44 acc1.printConfig(summariseProps=
True, onlyComponents=only)
CaloThinCellsBySamplingAlgCfg(flags, streamName, samplings=[], cells='AllCalo')