7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.Enums
import Format, BeamType
12 if not flags.Detector.EnableTRT:
15 if (flags.Input.Format
is Format.BS
16 or 'TRT_RDOs' in flags.Input.Collections
17 or f
'{flags.Overlay.BkgPrefix}TRT_RDOs' in flags.Input.Collections):
22 if flags.Beam.Type
is BeamType.Cosmics:
23 from InDetConfig.InDetPrepRawDataFormationConfig
import (
24 InDetTRT_NoTime_RIO_MakerCfg)
27 from InDetConfig.InDetPrepRawDataFormationConfig
import (
28 InDetTRT_RIO_MakerCfg)
31 if flags.InDet.doSplitReco:
32 from InDetConfig.InDetPrepRawDataFormationConfig
import (
33 InDetTRT_RIO_MakerPUCfg)
39 if flags.InDet.doTRTGlobalOccupancy:
40 from InDetConfig.TRT_ElectronPidToolsConfig
import (
41 TRTOccupancyIncludeCfg)
47 if flags.InDet.doTruth
and (
48 flags.Beam.Type
is not BeamType.Cosmics
and
49 'PRD_MultiTruthTRT' not in flags.Input.Collections):
50 from InDetConfig.InDetTruthAlgsConfig
import (
51 InDetPRD_MultiTruthMakerTRTCfg)
53 if flags.InDet.doSplitReco:
54 from InDetConfig.InDetTruthAlgsConfig
import (
55 InDetPRD_MultiTruthMakerTRTPUCfg)
60 if __name__ ==
"__main__":
61 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
64 from AthenaConfiguration.TestDefaults
import defaultTestFiles
65 flags.Input.Files = defaultTestFiles.RDO_RUN2
70 flags.Concurrency.NumThreads = numThreads
72 flags.Concurrency.NumConcurrentEvents = numThreads
77 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
80 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
83 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
86 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
87 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
93 iovsvc = top_acc.getService(
'IOVDbSvc')
94 iovsvc.OutputLevel = 5
96 top_acc.store(
open(
"test_TRTPrepocessing.pkl",
"wb"))