6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
13 if "GeometryManagerTool" not in kwargs:
14 from InDetAlignConfig.IDAlignToolsConfig
import GeometryManagerToolCfg
15 kwargs.setdefault(
"GeometryManagerTool", cfg.addPublicTool(cfg.popToolsAndMerge(
18 if "AlignTool" not in kwargs:
19 from InDetAlignConfig.IDAlignToolsConfig
import GlobalChi2AlignToolCfg
22 if "AlignDBTool" not in kwargs:
23 from InDetAlignConfig.IDAlignToolsConfig
import AlignDBToolCfg
24 kwargs.setdefault(
"AlignDBTool", cfg.popToolsAndMerge(
AlignDBToolCfg(flags)))
26 if "AlignTrackCreator" not in kwargs:
27 from InDetAlignConfig.IDAlignToolsConfig
import AlignTrackCreatorCfg
28 kwargs.setdefault(
"AlignTrackCreator", cfg.popToolsAndMerge(
31 kwargs.setdefault(
"AlignTrackPreProcessor",
None)
32 kwargs.setdefault(
"WriteNtuple",
False)
33 kwargs.setdefault(
"SolveOnly",
True)
35 cfg.addEventAlgo(CompFactory.Trk.AlignAlg(name, **kwargs))
45 if flags.InDet.Align.writeConstantsToPool:
49 if flags.InDet.Align.writeSilicon:
50 if flags.InDet.Align.writeDynamicDB:
51 objectList.extend([
"CondAttrListCollection#/Indet/AlignL1/ID",
52 "CondAttrListCollection#/Indet/AlignL2/PIX",
53 "CondAttrListCollection#/Indet/AlignL2/SCT",
54 "AlignableTransformContainer#/Indet/AlignL3"])
55 tagList.extend([
"IndetL1Test",
"IndetL2PIXTest",
"IndetL2SCTTest",
56 flags.InDetAlign.tagSi])
58 objectList.extend([
"AlignableTransformContainer#/Indet/Align"])
59 tagList.extend([flags.InDet.Align.tagSi])
61 if flags.InDet.Align.writeTRT:
62 if flags.InDet.Align.writeDynamicDB:
63 objectList.extend([
"CondAttrListCollection#/TRT/AlignL1/TRT",
64 "AlignableTransformContainer#/TRT/AlignL2"])
65 tagList.extend([
"IndetL1TRTTest", flags.InDet.Align.tagTRT])
67 objectList.extend([
"AlignableTransformContainer#/TRT/Align"])
68 tagList.extend([flags.InDet.Align.tagTRT])
70 if flags.InDet.Align.writeTRTL3:
71 objectList.extend([
"TRTCond::StrawDxContainer#/TRT/Calib/DX"])
73 if flags.InDet.Align.writeIBLDistDB:
74 objectList.extend([
"CondAttrListCollection#/Indet/IBLDist"])
75 tagList.extend([flags.InDet.Align.tagBow])
77 from RegistrationServices.OutputConditionsAlgConfig
import OutputConditionsAlgCfg
80 outputFile = flags.InDet.Align.outputConditionFile,
81 ObjectList = objectList, IOVTagList = tagList))
83 cfg.addEventAlgo(CompFactory.Trk.AlignTrackCollSplitter())