ATLAS Offline Software
Functions
python.TRT_DriftFunctionToolConfig Namespace Reference

Functions

def TRT_DriftFunctionToolCfg (flags, name="InDetTRT_DriftFunctionTool", **kwargs)
 
def TRT_NoTime_DriftFunctionToolCfg (flags, name="InDetTRT_NoTime_DriftFunctionTool", **kwargs)
 
def TRT_Phase_DriftFunctionToolCfg (flags, name="InDetTRT_Phase_DriftFunctionTool", **kwargs)
 

Function Documentation

◆ TRT_DriftFunctionToolCfg()

def python.TRT_DriftFunctionToolConfig.TRT_DriftFunctionToolCfg (   flags,
  name = "InDetTRT_DriftFunctionTool",
**  kwargs 
)

Definition at line 6 of file TRT_DriftFunctionToolConfig.py.

6 def TRT_DriftFunctionToolCfg(flags, name = "InDetTRT_DriftFunctionTool", **kwargs):
8 
9  # Calibration DB Service
10  if "TRTCalDbTool" not in kwargs:
11  from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_CalDbToolCfg
12  kwargs.setdefault("TRTCalDbTool", acc.popToolsAndMerge(TRT_CalDbToolCfg(flags)))
13 
14  # --- set Data/MC flag
15  kwargs.setdefault("IsMC", flags.Input.isMC)
16 
17  # --- set HT corrections
18  kwargs.setdefault("HTCorrectionBarrelXe", 1.5205)
19  kwargs.setdefault("HTCorrectionEndcapXe", 1.2712)
20  kwargs.setdefault("HTCorrectionBarrelAr", 1.5205)
21  kwargs.setdefault("HTCorrectionEndcapAr", 1.2712)
22  # --- set ToT corrections
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)
33 
34  if flags.InDet.doTRTArToTCorr:
35  kwargs.setdefault("ToTCorrectionsBarrelAr", ToTCorrectionsBarrel)
36  kwargs.setdefault("ToTCorrectionsEndcapAr", ToTCorrectionsEndcap)
37  else:
38  NullToTCorrections = [ 0., 0., 0., 0., 0.,
39  0., 0., 0., 0., 0.,
40  0., 0., 0., 0., 0.,
41  0., 0., 0., 0., 0. ]
42  kwargs.setdefault("ToTCorrectionsBarrelAr", NullToTCorrections)
43  kwargs.setdefault("ToTCorrectionsEndcapAr", NullToTCorrections)
44 
45  # Second calibration DB Service in case pile-up and physics hits have different calibrations for data overlay
46  if flags.Overlay.DataOverlay:
47  if "TRTCalDbTool2" not in kwargs:
48  from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_MCCalDbToolCfg
49  kwargs.setdefault("TRTCalDbTool2", acc.popToolsAndMerge(TRT_MCCalDbToolCfg(flags)))
50 
51  kwargs.setdefault("IsOverlay", True)
52 
53  acc.setPrivateTools(CompFactory.TRT_DriftFunctionTool(name, **kwargs))
54  return acc
55 

◆ TRT_NoTime_DriftFunctionToolCfg()

def python.TRT_DriftFunctionToolConfig.TRT_NoTime_DriftFunctionToolCfg (   flags,
  name = "InDetTRT_NoTime_DriftFunctionTool",
**  kwargs 
)

Definition at line 56 of file TRT_DriftFunctionToolConfig.py.

56 def TRT_NoTime_DriftFunctionToolCfg(flags, name = "InDetTRT_NoTime_DriftFunctionTool", **kwargs):
57  kwargs.setdefault("DummyMode", True)
58  kwargs.setdefault("UniversalError", 1.15)
59  return TRT_DriftFunctionToolCfg(flags, name, **kwargs)
60 

◆ TRT_Phase_DriftFunctionToolCfg()

def python.TRT_DriftFunctionToolConfig.TRT_Phase_DriftFunctionToolCfg (   flags,
  name = "InDetTRT_Phase_DriftFunctionTool",
**  kwargs 
)

Definition at line 61 of file TRT_DriftFunctionToolConfig.py.

61 def TRT_Phase_DriftFunctionToolCfg(flags, name = "InDetTRT_Phase_DriftFunctionTool", **kwargs):
62  kwargs.setdefault("AllowDigiVersionOverride", True)
63  kwargs.setdefault("ForcedDigiVersion", 9)
64  return TRT_DriftFunctionToolCfg(flags, name, **kwargs)
python.TRT_DriftFunctionToolConfig.TRT_Phase_DriftFunctionToolCfg
def TRT_Phase_DriftFunctionToolCfg(flags, name="InDetTRT_Phase_DriftFunctionTool", **kwargs)
Definition: TRT_DriftFunctionToolConfig.py:61
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_DriftFunctionToolConfig.TRT_NoTime_DriftFunctionToolCfg
def TRT_NoTime_DriftFunctionToolCfg(flags, name="InDetTRT_NoTime_DriftFunctionTool", **kwargs)
Definition: TRT_DriftFunctionToolConfig.py:56
python.TRT_ConditionsServicesConfig.TRT_MCCalDbToolCfg
def TRT_MCCalDbToolCfg(flags, name="TRT_CalDbTool2", **kwargs)
Definition: TRT_ConditionsServicesConfig.py:48
python.TRT_DriftFunctionToolConfig.TRT_DriftFunctionToolCfg
def TRT_DriftFunctionToolCfg(flags, name="InDetTRT_DriftFunctionTool", **kwargs)
Definition: TRT_DriftFunctionToolConfig.py:6
python.TRT_ConditionsServicesConfig.TRT_CalDbToolCfg
def TRT_CalDbToolCfg(flags, name="TRT_CalDbTool", **kwags)
Definition: TRT_ConditionsServicesConfig.py:9