ATLAS Offline Software
LArG4HECConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from LArG4HEC import HECGeometryType
5 
6 
7 # Not used???
8 def LArHECLocalCalculatorCfg(flags, name="LArHECLocalCalculator", **kwargs):
9  return CompFactory.LArHECLocalCalculator(name, **kwargs)
10 
11 
12 def LocalCalibrationCalculatorCfg(flags, name="LocalCalibrationCalculator", **kwargs):
13  return CompFactory.LArG4.HEC.LocalCalibrationCalculator(name, **kwargs)
14 
15 
16 def LocalHECGeometry(name="LocalHECGeometry", **kwargs):
17  return CompFactory.LArG4.HEC.LocalGeometry(name, **kwargs)
18 
19 
20 def HECWheelCalculatorCfg(flags, name="HECWheelCalculator", **kwargs):
21  result = ComponentAccumulator()
22  kwargs.setdefault("GeometryCalculator", result.getPrimaryAndMerge(HECGeometryCfg(flags)).name)
23  result.addService(CompFactory.LArHECWheelCalculator(name, **kwargs), primary = True)
24  return result
25 
26 
27 def LArHECCalibrationWheelCalculatorCfg(flags, name="LArHECCalibrationWheelCalculator", **kwargs):
28  result = ComponentAccumulator()
29  result.addService( CompFactory.LArG4.HEC.LArHECCalibrationWheelCalculator(name, **kwargs), primary = True )
30  return result
31 
32 
33 def HECCalibrationWheelActiveCalculatorCfg(flags, name="HECCalibrationWheelActiveCalculator", **kwargs):
34  kwargs.setdefault("GeometryType", HECGeometryType.kWheelActive)
35  return LArHECCalibrationWheelCalculatorCfg(flags, name, **kwargs)
36 
37 
38 def HECCalibrationWheelInactiveCalculatorCfg(flags, name="HECCalibrationWheelInactiveCalculator", **kwargs):
39  kwargs.setdefault("GeometryType", HECGeometryType.kWheelInactive)
40  return LArHECCalibrationWheelCalculatorCfg(flags, name, **kwargs)
41 
42 
43 def HECCalibrationWheelDeadCalculatorCfg(flags, name="HECCalibrationWheelDeadCalculator", **kwargs):
44  kwargs.setdefault("GeometryType", HECGeometryType.kWheelDead)
45  return LArHECCalibrationWheelCalculatorCfg(flags, name, **kwargs)
46 
47 
48 def HECGeometryCfg(flags, name="HECGeometry", **kwargs):
49  result = ComponentAccumulator()
50  result.addService(CompFactory.LArG4.HEC.HECGeometry(name, **kwargs), primary = True)
51  return result
LArG4HECConfig.HECCalibrationWheelActiveCalculatorCfg
def HECCalibrationWheelActiveCalculatorCfg(flags, name="HECCalibrationWheelActiveCalculator", **kwargs)
Definition: LArG4HECConfig.py:33
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArG4HECConfig.HECCalibrationWheelDeadCalculatorCfg
def HECCalibrationWheelDeadCalculatorCfg(flags, name="HECCalibrationWheelDeadCalculator", **kwargs)
Definition: LArG4HECConfig.py:43
LArG4HECConfig.LocalCalibrationCalculatorCfg
def LocalCalibrationCalculatorCfg(flags, name="LocalCalibrationCalculator", **kwargs)
Definition: LArG4HECConfig.py:12
LArG4HECConfig.LArHECLocalCalculatorCfg
def LArHECLocalCalculatorCfg(flags, name="LArHECLocalCalculator", **kwargs)
Definition: LArG4HECConfig.py:8
LArG4HECConfig.LocalHECGeometry
def LocalHECGeometry(name="LocalHECGeometry", **kwargs)
Definition: LArG4HECConfig.py:16
LArG4HECConfig.LArHECCalibrationWheelCalculatorCfg
def LArHECCalibrationWheelCalculatorCfg(flags, name="LArHECCalibrationWheelCalculator", **kwargs)
Definition: LArG4HECConfig.py:27
LArG4HECConfig.HECGeometryCfg
def HECGeometryCfg(flags, name="HECGeometry", **kwargs)
Definition: LArG4HECConfig.py:48
LArG4HECConfig.HECCalibrationWheelInactiveCalculatorCfg
def HECCalibrationWheelInactiveCalculatorCfg(flags, name="HECCalibrationWheelInactiveCalculator", **kwargs)
Definition: LArG4HECConfig.py:38
LArG4HECConfig.HECWheelCalculatorCfg
def HECWheelCalculatorCfg(flags, name="HECWheelCalculator", **kwargs)
Definition: LArG4HECConfig.py:20