10 if "TRTCalDbTool" not in kwargs:
11 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
12 kwargs.setdefault(
"TRTCalDbTool", acc.popToolsAndMerge(
TRT_CalDbToolCfg(flags)))
15 kwargs.setdefault(
"IsMC", flags.Input.isMC)
18 kwargs.setdefault(
"HTCorrectionBarrelXe", 1.5205)
19 kwargs.setdefault(
"HTCorrectionEndcapXe", 1.2712)
20 kwargs.setdefault(
"HTCorrectionBarrelAr", 1.5205)
21 kwargs.setdefault(
"HTCorrectionEndcapAr", 1.2712)
23 ToTCorrectionsBarrel = [ 0., 4.358121, 3.032195, 1.631892, 0.7408397,
24 -0.004113, -0.613288, -0.73758, -0.623346, -0.561229,
25 -0.29828, -0.21344, -0.322892, -0.386718, -0.534751,
26 -0.874178, -1.231799, -1.503689, -1.896464, -2.385958]
27 ToTCorrectionsEndcap = [ 0., 5.514777, 3.342712, 2.056626, 1.08293693,
28 0.3907979, -0.082819, -0.457485, -0.599706, -0.427493,
29 -0.328962, -0.403399, -0.663656, -1.029428, -1.46008,
30 -1.919092, -2.151582, -2.285481, -2.036822, -2.15805]
31 kwargs.setdefault(
"ToTCorrectionsBarrelXe", ToTCorrectionsBarrel)
32 kwargs.setdefault(
"ToTCorrectionsEndcapXe", ToTCorrectionsEndcap)
34 if flags.InDet.doTRTArToTCorr:
35 kwargs.setdefault(
"ToTCorrectionsBarrelAr", ToTCorrectionsBarrel)
36 kwargs.setdefault(
"ToTCorrectionsEndcapAr", ToTCorrectionsEndcap)
38 NullToTCorrections = [ 0., 0., 0., 0., 0.,
42 kwargs.setdefault(
"ToTCorrectionsBarrelAr", NullToTCorrections)
43 kwargs.setdefault(
"ToTCorrectionsEndcapAr", NullToTCorrections)
46 if flags.Overlay.DataOverlay:
47 if "TRTCalDbTool2" not in kwargs:
48 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_MCCalDbToolCfg
51 kwargs.setdefault(
"IsOverlay",
True)
53 acc.setPrivateTools(CompFactory.TRT_DriftFunctionTool(name, **kwargs))