16 if flags.InDet.Align.siPoolFile:
19 if flags.InDet.Align.inputAlignmentConstants:
21 flags.InDet.Align.inputAlignmentConstants))
23 if flags.InDet.Align.ErrorScalingTag:
24 if ".db" in flags.InDet.Align.ErrorScalingTag:
27 f
'<dbConnection>sqlite://X;schema={flags.InDetAlign.ErrorScalingTag};dbname=CONDBR2</dbConnection>/Indet/TrkErrorScaling',
28 tag =
'IndetTrkErrorScaling_nominal'))
31 cfg.merge(
addOverride(flags,
'/Indet/TrkErrorScaling',
32 flags.InDet.Align.ErrorScalingTag))
34 if flags.InDet.Align.BeamSpotTag
and flags.Beam.Type
is not BeamType.Cosmics:
35 cfg.merge(
addOverride(flags,
'/Indet/Beampos', flags.InDet.Align.BeamSpotTag))
37 if flags.InDet.Align.LorentzAngleTag
and flags.Beam.Type
is not BeamType.Cosmics:
38 cfg.merge(
addOverride(flags,
'/PIXEL/LorentzAngleScale',
39 flags.InDet.Align.LorentzAngleTag))
41 if flags.InDet.Align.TRTCalibT0TagCos:
43 flags.InDet.Align.TRTCalibT0TagCos))
45 if flags.InDet.Align.TRTCalibRtTagCos:
47 flags.InDet.Align.TRTCalibT0TagCos))
49 if flags.InDet.Align.MDNTag:
50 cfg.merge(
addOverride(flags,
"/PIXEL/PixelClustering/PixelNNCalibJSON",
51 flags.InDet.Align.MDNTag))
53 if flags.InDet.Align.inputBowingDatabase:
54 if (
".db" in flags.InDet.Align.inputBowingDatabase
and
55 not flags.InDet.Align.readL3Only):
58 f
'<dbConnection>sqlite://X;schema={flags.InDet.Align.inputBowingDatabase};dbname=CONDBR2</dbConnection>/Indet/IBLDist',
60 className =
"CondAttrListCollection"))
64 flags.InDet.Align.inputBowingDatabase))
66 if flags.InDet.Align.useDynamicAlignFolders:
67 globalDB = flags.InDet.Align.inputDynamicGlobalDatabase
69 if ".db" in globalDB
and not flags.InDet.Align.readL3Only:
72 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL1/ID<tag>IndetL1Test</tag>',
73 className=
"CondAttrListCollection"))
77 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL2/PIX<tag>IndetL2PIXTest</tag>',
78 className =
"CondAttrListCollection"))
82 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL2/SCT<tag>IndetL2SCTTest</tag>',
83 className=
"CondAttrListCollection"))
87 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL1/TRT<tag>IndetL1TRTTest</tag>',
88 className =
"CondAttrListCollection"))
92 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL3<tag>IndetAlign_test</tag>',
93 className=
"AlignableTransformContainer"))
97 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL2<tag>TRTAlign_test</tag>',
98 className =
"AlignableTransformContainer"))
100 if globalDB ==
"" or flags.InDet.Align.readL3Only:
101 if flags.InDet.Align.DynamicL1IDTag:
103 flags.InDet.Align.DynamicL1IDTag))
105 if flags.InDet.Align.DynamicL2PIXTag:
107 flags.InDet.Align.DynamicL2PIXTag))
109 if flags.InDet.Align.DynamicL2SCTTag:
111 flags.InDet.Align.DynamicL2SCTTag))
113 if flags.InDet.Align.DynamicL3SiTag:
115 flags.InDet.Align.DynamicL3SiTag))
117 if flags.InDet.Align.DynamicL1TRTTag:
119 flags.InDet.Align.DynamicL1TRTTag))
121 if flags.InDet.Align.DynamicL2TRTTag:
123 flags.InDet.Align.DynamicL2TRTTag))
125 if ".db" in globalDB
and flags.InDet.Align.readL3Only:
128 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL3<tag>IndetAlign_test</tag>',
129 className =
"AlignableTransformContainer"))
133 f
'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL2<tag>TRTAlign_test</tag>',
134 className =
"AlignableTransformContainer"))
136 if flags.InDet.Align.PixelDistortionTag:
137 cfg.merge(
addOverride(flags,
'/Indet/PixelDist', flags.InDet.Align.PixelDistortionTag))
141 "/TRT/Onl/Cond/StatusHT",
"/TRT/Cond/StatusHT",
142 className =
'TRTCond::StrawStatusMultChanContainer'))