7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaConfiguration.ComponentAccumulator
import 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}',]
32 if __name__ ==
"__main__":
33 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 from AthenaConfiguration.TestDefaults
import defaultTestFiles,defaultGeometryTags
36 only = [
'CaloThinCellsBySamplingAlg_TileGap3_StreamAOD']
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)