ATLAS Offline Software
LArG4BarrelConfig.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 
5 
6 def BarrelCryostatCalibrationCalculatorCfg(flags, name="BarrelCryostatCalibrationCalculator", **kwargs):
7  result = ComponentAccumulator()
8  result.addService( CompFactory.LArG4.BarrelCryostat.CalibrationCalculator(name, **kwargs), primary=True )
9  return result
10 
11 
12 def BarrelCryostatCalibrationLArCalculatorCfg(flags, name="BarrelCryostatCalibrationLArCalculator", **kwargs):
13  result = ComponentAccumulator()
14  result.addService( CompFactory.LArG4.BarrelCryostat.CalibrationLArCalculator(name, **kwargs), primary=True )
15  return result
16 
17 
18 def BarrelCryostatCalibrationMixedCalculatorCfg(flags, name="BarrelCryostatCalibrationMixedCalculator", **kwargs):
19  result = ComponentAccumulator()
20  result.addService( CompFactory.LArG4.BarrelCryostat.CalibrationMixedCalculator(name, **kwargs), primary=True )
21  return result
22 
23 
24 def DMCalibrationCalculatorCfg(flags, name="DMCalibrationCalculator", **kwargs):
25  result = ComponentAccumulator()
26  result.addService( CompFactory.LArG4.DM.CalibrationCalculator(name, **kwargs), primary=True )
27  return result
28 
29 
30 def BarrelCalibrationCalculatorCfg(flags, name="BarrelCalibrationCalculator", **kwargs):
31  result = ComponentAccumulator()
32  result.addService( CompFactory.LArG4.Barrel.CalibrationCalculator(name, **kwargs), primary=True )
33  return result
34 
35 
36 def BarrelPresamplerCalibrationCalculatorCfg(flags, name="BarrelPresamplerCalibrationCalculator", **kwargs):
37  result = ComponentAccumulator()
38  result.addService( CompFactory.LArG4.BarrelPresampler.CalibrationCalculator(name, **kwargs), primary=True )
39  return result
40 
41 
42 def EMBCalculatorCfg(flags, name="EMBCalculator", **kwargs):
43  result = ComponentAccumulator()
44  kwargs.setdefault("GeometryCalculator", result.getPrimaryAndMerge(LArBarrelGeometryCfg(flags)).name)
45  result.addService(CompFactory.LArBarrelCalculator(name, **kwargs), primary=True)
46  return result
47 
48 
49 def EMBPresamplerCalculatorCfg(flags, name="EMBPresamplerCalculator", **kwargs):
50  result = ComponentAccumulator()
51  kwargs.setdefault("GeometryCalculator", result.getPrimaryAndMerge(LArBarrelPresamplerGeometryCfg(flags)).name)
52 
53  result.addService(CompFactory.LArBarrelPresamplerCalculator(name, **kwargs), primary=True)
54  return result
55 
56 
57 def LArBarrelGeometryCfg(flags, name="LArBarrelGeometry", **kwargs):
58  result = ComponentAccumulator()
59  result.addService(CompFactory.LArG4.Barrel.Geometry(name, **kwargs), primary=True)
60  return result
61 
62 
63 def LArBarrelPresamplerGeometryCfg(flags, name="LArBarrelPresamplerGeometry", **kwargs):
64  result = ComponentAccumulator()
65  result.addService(CompFactory.LArG4.BarrelPresampler.Geometry(name, **kwargs), primary=True)
66  return result
LArG4BarrelConfig.LArBarrelGeometryCfg
def LArBarrelGeometryCfg(flags, name="LArBarrelGeometry", **kwargs)
Definition: LArG4BarrelConfig.py:57
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArG4BarrelConfig.EMBPresamplerCalculatorCfg
def EMBPresamplerCalculatorCfg(flags, name="EMBPresamplerCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:49
LArG4BarrelConfig.LArBarrelPresamplerGeometryCfg
def LArBarrelPresamplerGeometryCfg(flags, name="LArBarrelPresamplerGeometry", **kwargs)
Definition: LArG4BarrelConfig.py:63
LArG4BarrelConfig.BarrelCryostatCalibrationMixedCalculatorCfg
def BarrelCryostatCalibrationMixedCalculatorCfg(flags, name="BarrelCryostatCalibrationMixedCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:18
LArG4BarrelConfig.EMBCalculatorCfg
def EMBCalculatorCfg(flags, name="EMBCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:42
LArG4BarrelConfig.BarrelPresamplerCalibrationCalculatorCfg
def BarrelPresamplerCalibrationCalculatorCfg(flags, name="BarrelPresamplerCalibrationCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:36
LArG4BarrelConfig.BarrelCryostatCalibrationCalculatorCfg
def BarrelCryostatCalibrationCalculatorCfg(flags, name="BarrelCryostatCalibrationCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:6
LArG4BarrelConfig.DMCalibrationCalculatorCfg
def DMCalibrationCalculatorCfg(flags, name="DMCalibrationCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:24
LArG4BarrelConfig.BarrelCryostatCalibrationLArCalculatorCfg
def BarrelCryostatCalibrationLArCalculatorCfg(flags, name="BarrelCryostatCalibrationLArCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:12
LArG4BarrelConfig.BarrelCalibrationCalculatorCfg
def BarrelCalibrationCalculatorCfg(flags, name="BarrelCalibrationCalculator", **kwargs)
Definition: LArG4BarrelConfig.py:30