ATLAS Offline Software
G4AtlasTestsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 from AthenaCommon.Logging import logging
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 
7 def SiHitsTestToolCfg(collectionName, name="SiHitsTestTool", **kwargs):
8  mlog = logging.getLogger(name)
9  mlog.debug('Start configuration')
10  result = ComponentAccumulator()
11 
12  kwargs.setdefault("CollectionName", collectionName)
13  SiHitsTestTool = CompFactory.SiHitsTestTool
14  result.setPrivateTools(SiHitsTestTool(name, **kwargs))
15  return result
16 
17 
18 def TrtHitsTestToolCfg(collectionName, name="TRTHitsTestTool", **kwargs):
19  mlog = logging.getLogger(name)
20  mlog.debug('Start configuration')
21  result = ComponentAccumulator()
22 
23  kwargs.setdefault("CollectionName", collectionName)
24  TrtHitsTestTool = CompFactory.TrtHitsTestTool
25  result.setPrivateTools(TrtHitsTestTool(name, **kwargs))
26  return result
27 
28 
29 def LArHitsTestToolCfg(detectorName, name="LArHitsTestTool", **kwargs):
30  mlog = logging.getLogger(name+detectorName)
31  mlog.debug('Start configuration')
32  result = ComponentAccumulator()
33 
34  kwargs.setdefault("DetectorName", detectorName)
35  LArHitsTestTool = CompFactory.LArHitsTestTool
36  result.setPrivateTools(LArHitsTestTool(name, **kwargs))
37  return result
38 
39 
40 def TileHitsTestToolCfg(testMBTS, name="TileHitsTestTool", **kwargs):
41  mlog = logging.getLogger(name)
42  mlog.debug('Start configuration')
43  result = ComponentAccumulator()
44 
45  kwargs.setdefault("TestMBTS", testMBTS)
46  TileHitsTestTool = CompFactory.TileHitsTestTool
47  result.setPrivateTools(TileHitsTestTool(name, **kwargs))
48  return result
49 
50 
51 def CaloCalibrationHitsTestToolCfg(calibHitType, name="CaloCalibrationHitsTestTool", **kwargs):
52  mlog = logging.getLogger(name)
53  mlog.debug('Start configuration')
54  result = ComponentAccumulator()
55 
56  kwargs.setdefault("CalibHitType", calibHitType)
57  CaloCalibrationHitsTestTool = CompFactory.CaloCalibrationHitsTestTool
58  result.setPrivateTools(CaloCalibrationHitsTestTool(name, **kwargs))
59  return result
60 
61 
62 def MDTHitsTestToolCfg(detectorName, name="MDTHitsTestTool", **kwargs):
63  mlog = logging.getLogger(name+detectorName)
64  mlog.debug('Start configuration')
65  result = ComponentAccumulator()
66 
67  kwargs.setdefault("DetectorName", detectorName)
68  MDTHitsTestTool = CompFactory.MDTHitsTestTool
69  result.setPrivateTools(MDTHitsTestTool(name, **kwargs))
70  return result
71 
72 
73 def RPCHitsTestToolCfg(detectorName, name="RPCHitsTestTool", **kwargs):
74  mlog = logging.getLogger(name+detectorName)
75  mlog.debug('Start configuration')
76  result = ComponentAccumulator()
77 
78  kwargs.setdefault("DetectorName", detectorName)
79  RPCHitsTestTool = CompFactory.RPCHitsTestTool
80  result.setPrivateTools(RPCHitsTestTool(name, **kwargs))
81  return result
82 
83 
84 def CSCHitsTestToolCfg(detectorName, name="CSCHitsTestTool", **kwargs):
85  mlog = logging.getLogger(name+detectorName)
86  mlog.debug('Start configuration')
87  result = ComponentAccumulator()
88 
89  kwargs.setdefault("DetectorName", detectorName)
90  CSCHitsTestTool = CompFactory.CSCHitsTestTool
91  result.setPrivateTools(CSCHitsTestTool(name, **kwargs))
92  return result
93 
94 
95 def TGCHitsTestToolCfg(detectorName, name="TGCHitsTestTool", **kwargs):
96  mlog = logging.getLogger(name+detectorName)
97  mlog.debug('Start configuration')
98  result = ComponentAccumulator()
99 
100  kwargs.setdefault("DetectorName", detectorName)
101  TGCHitsTestTool = CompFactory.TGCHitsTestTool
102  result.setPrivateTools(TGCHitsTestTool(name, **kwargs))
103  return result
104 
105 
106 def LucidHitsTestToolCfg(name="LucidHitsTestTool", **kwargs):
107  mlog = logging.getLogger(name)
108  mlog.debug('Start configuration')
109  result = ComponentAccumulator()
110 
111  LucidHitsTestTool = CompFactory.LucidHitsTestTool
112  result.setPrivateTools(LucidHitsTestTool(name, **kwargs))
113  return result
114 
115 
116 def ALFASimHitsTestToolCfg(name="ALFASimHitsTestTool", **kwargs):
117  mlog = logging.getLogger(name)
118  mlog.debug('Start configuration')
119  result = ComponentAccumulator()
120 
121  ALFASimHitsTestTool = CompFactory.ALFA_SimHitsTestTool
122  result.setPrivateTools(ALFASimHitsTestTool(name, **kwargs))
123  return result
124 
125 
126 def ZDCHitsTestToolCfg(name="ZDCHitsTestTool", **kwargs):
127  mlog = logging.getLogger(name)
128  mlog.debug('Start configuration')
129  result = ComponentAccumulator()
130 
131  ZDCHitsTestTool = CompFactory.ZDCHitsTestTool
132  result.setPrivateTools(ZDCHitsTestTool(name, **kwargs))
133  return result
134 
135 
136 def LayerTestToolCfg(collectionName, name="LayerTestTool", **kwargs):
137  mlog = logging.getLogger(name)
138  mlog.debug('Start configuration')
139  result = ComponentAccumulator()
140 
141  kwargs.setdefault("CollectionName", collectionName)
142  LayerTestTool = CompFactory.LayerTestTool
143  result.setPrivateTools(LayerTestTool(name, **kwargs))
144  return result
145 
146 
147 def TruthTestToolCfg(mcEventKey, name="TruthTestTool", **kwargs):
148  mlog = logging.getLogger(name)
149  mlog.debug('Start configuration')
150  result = ComponentAccumulator()
151 
152  kwargs.setdefault("McEventKey", mcEventKey)
153  TruthTestTool = CompFactory.TruthTestTool
154  result.setPrivateTools(TruthTestTool(name=name, **kwargs))
155  return result
G4AtlasTestsConfig.TruthTestToolCfg
def TruthTestToolCfg(mcEventKey, name="TruthTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:147
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MDTHitsTestTool
Definition: MDTHitsTestTool.h:15
G4AtlasTestsConfig.LayerTestToolCfg
def LayerTestToolCfg(collectionName, name="LayerTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:136
TileHitsTestTool
Definition: TileHitsTestTool.h:15
LArHitsTestTool
Definition: LArHitsTestTool.h:12
CSCHitsTestTool
Definition: CSCHitsTestTool.h:12
G4AtlasTestsConfig.TrtHitsTestToolCfg
def TrtHitsTestToolCfg(collectionName, name="TRTHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:18
RPCHitsTestTool
Definition: RPCHitsTestTool.h:14
CaloCalibrationHitsTestTool
Definition: CaloCalibrationHitsTestTool.h:18
TGCHitsTestTool
Definition: TGCHitsTestTool.h:15
G4AtlasTestsConfig.TileHitsTestToolCfg
def TileHitsTestToolCfg(testMBTS, name="TileHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:40
G4AtlasTestsConfig.TGCHitsTestToolCfg
def TGCHitsTestToolCfg(detectorName, name="TGCHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:95
G4AtlasTestsConfig.MDTHitsTestToolCfg
def MDTHitsTestToolCfg(detectorName, name="MDTHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:62
G4AtlasTestsConfig.SiHitsTestToolCfg
def SiHitsTestToolCfg(collectionName, name="SiHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:7
LayerTestTool
Definition: LayerTestTool.h:10
G4AtlasTestsConfig.CSCHitsTestToolCfg
def CSCHitsTestToolCfg(detectorName, name="CSCHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:84
TrtHitsTestTool
Definition: TrtHitsTestTool.h:11
TruthTestTool
Definition: TruthTestTool.h:13
LucidHitsTestTool
Definition: LucidHitsTestTool.h:10
SiHitsTestTool
Definition: SiHitsTestTool.h:11
G4AtlasTestsConfig.ALFASimHitsTestToolCfg
def ALFASimHitsTestToolCfg(name="ALFASimHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:116
G4AtlasTestsConfig.LArHitsTestToolCfg
def LArHitsTestToolCfg(detectorName, name="LArHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:29
G4AtlasTestsConfig.RPCHitsTestToolCfg
def RPCHitsTestToolCfg(detectorName, name="RPCHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:73
G4AtlasTestsConfig.CaloCalibrationHitsTestToolCfg
def CaloCalibrationHitsTestToolCfg(calibHitType, name="CaloCalibrationHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:51
G4AtlasTestsConfig.LucidHitsTestToolCfg
def LucidHitsTestToolCfg(name="LucidHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:106
G4AtlasTestsConfig.ZDCHitsTestToolCfg
def ZDCHitsTestToolCfg(name="ZDCHitsTestTool", **kwargs)
Definition: G4AtlasTestsConfig.py:126
ZDCHitsTestTool
Definition: ZDCHitsTestTool.h:12