4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.Enums
import Format
11 if flags.Input.Format
is Format.BS:
13 from LArByteStream.LArRawDataReadingConfig
import LArRawDataReadingCfg
16 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
19 if flags.Output.doWriteESD:
20 from TileRecAlgs.TileDigitsFilterConfig
import TileDigitsFilterOutputCfg
23 from TileRecAlgs.TileDigitsFilterConfig
import TileDigitsFilterCfg
26 from LArROD.LArRawChannelBuilderAlgConfig
import LArRawChannelBuilderAlgCfg
29 from TileRecUtils.TileRawChannelMakerConfig
import TileRawChannelMakerCfg
32 if not flags.Input.isMC
and not flags.Common.isOnline:
33 from LArCellRec.LArTimeVetoAlgConfig
import LArTimeVetoAlgCfg
36 if not flags.Input.isMC
and not flags.Overlay.DataOverlay:
37 from LArROD.LArFebErrorSummaryMakerConfig
import LArFebErrorSummaryMakerCfg
42 from CaloRec.CaloCellMakerConfig
import CaloCellMakerCfg
46 from CaloRec.CaloTopoClusterConfig
import CaloTopoClusterCfg
50 from CaloRec.CaloFwdTopoTowerConfig
import CaloFwdTopoTowerCfg
54 from LArCellRec.LArNoisyROSummaryConfig
import LArNoisyROSummaryCfg
58 from TileMuId.TileMuIdConfig
import TileLookForMuAlgCfg
61 if not flags.Input.isMC
and not flags.Overlay.DataOverlay:
63 from LArROD.LArDigitThinnerConfig
import LArDigitThinnerCfg
69 if flags.Detector.GeometryMBTS:
70 from TileRecAlgs.MBTSTimeDiffEventInfoAlgConfig
import MBTSTimeDiffEventInfoAlgCfg
75 from CaloRec.CaloThinCellsBySamplingAlgConfig
import CaloThinCellsBySamplingAlgCfg
79 if flags.Calo.TopoCluster.xtalkInfoDumper
and not flags.Overlay.DataOverlay:
80 from LArClusterCellDumper.CaloThinCellsInAODAlgConfig
import CaloThinCellsInAODAlgCfg
89 result.addEventAlgo(CompFactory.DumpLArRawChannels(LArRawChannelContainerName=
"LArRawChannels_FromDigits"))
90 result.addEventAlgo(CompFactory.CaloCellDumper())
92 ClusterDumper = CompFactory.ClusterDumper
93 result.addEventAlgo(
ClusterDumper(
"TopoDumper", ContainerName=
"CaloCalTopoClusters", FileName=
"TopoCluster.txt"))
94 result.addEventAlgo(
ClusterDumper(
"FwdTopoDumper", ContainerName=
"CaloCalFwdTopoTowers", FileName=
"FwdTopoCluster.txt"))
102 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
105 from AthenaConfiguration.TestDefaults
import defaultGeometryTags,defaultConditionsTags,defaultTestFiles
106 flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
107 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
108 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
111 from AthenaCommon.Logging
import log
113 flags.Exec.OutputLevel=INFO
115 flags.Exec.MaxEvents=10
119 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
124 CaloCellDumper = CompFactory.CaloCellDumper
127 ClusterDumper = CompFactory.ClusterDumper
128 acc.addEventAlgo(
ClusterDumper(
"TopoDumper",ContainerName=
"CaloCalTopoClusters",FileName=
"TopoCluster.txt"),sequenceName=
"AthAlgSeq")
130 f =
open(
"CaloRec.pkl",
"wb")
136 if __name__==
"__main__":
137 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
138 from AthenaCommon.Logging
import log
140 from AthenaConfiguration.TestDefaults
import defaultGeometryTags,defaultConditionsTags,defaultTestFiles
143 flags.Input.Files = (defaultTestFiles.RAW_RUN3)
144 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
145 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN3