3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig
import TRTPhaseCondCfg
10 kwargs.setdefault(
"UseNewEP",
True)
11 kwargs.setdefault(
"GlobalOffset", -3.125
if flags.Input.isMC
else 8)
13 if "TRTCalDbTool" not in kwargs:
14 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
15 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
18 acc.setPrivateTools(CompFactory.InDet.InDetCosmicsEventPhaseTool(name, **kwargs))
22 from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig
import TRTPhaseCondCfg
25 kwargs.setdefault(
"UseNewEP" ,
True)
26 kwargs.setdefault(
"WindowCenter" , -8.5)
27 kwargs.setdefault(
"WindowSize" , 7)
28 kwargs.setdefault(
"GlobalOffset", -3.125
if flags.Input.isMC
else 8)
30 if "TRTCalDbTool" not in kwargs:
31 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
32 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
35 acc.setPrivateTools(CompFactory.InDet.InDetFixedWindowTrackTimeTool(name, **kwargs))
39 from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig
import TRTPhaseCondCfg
42 kwargs.setdefault(
"UseNewEP" ,
True)
43 kwargs.setdefault(
"NumberIterations" , 5)
44 kwargs.setdefault(
"WindowSize" , 7)
45 kwargs.setdefault(
"GlobalOffset", -3.125
if flags.Input.isMC
else 8)
47 if "TRTCalDbTool" not in kwargs:
48 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
49 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
52 acc.setPrivateTools(CompFactory.InDet.InDetSlidingWindowTrackTimeTool(name, **kwargs))
58 if "TRTCalDbTool" not in kwargs:
59 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
60 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
63 if "TrackSummaryTool" not in kwargs:
64 from TrkConfig.TrkTrackSummaryToolConfig
import InDetTrackSummaryToolCfg
66 acc.addPublicTool(InDetTrackSummaryTool)
67 kwargs.setdefault(
"TrackSummaryTool" , InDetTrackSummaryTool)
69 if "EventPhaseTool" not in kwargs:
71 acc.addPublicTool(EventPhaseTool)
72 kwargs.setdefault(
"EventPhaseTool", EventPhaseTool)
74 acc.addEventAlgo(CompFactory.InDet.InDetCosmicsEventPhase(name, **kwargs))
78 if __name__ ==
"__main__":
79 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
83 flags.Concurrency.NumThreads=numThreads
84 flags.Concurrency.NumConcurrentEvents=numThreads
86 from AthenaConfiguration.TestDefaults
import defaultTestFiles
87 flags.Input.Files = defaultTestFiles.RDO_RUN2
91 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
94 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
97 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
101 InputTracksNames=[
'TRTTracks_Phase',
'ExtendedTracksPhase']))
103 iovsvc = top_acc.getService(
'IOVDbSvc')
105 top_acc.printConfig()
107 top_acc.store(
open(
"test_InDetCosmicsEventPhaseConfig.pkl",
"wb"))