ATLAS Offline Software
Functions
TRT_GeoModelConfig Namespace Reference

Functions

def TRT_GeoModelCfg (flags)
 
def TRT_AlignmentCfg (flags)
 
def TRT_SimulationGeometryCfg (flags)
 
def TRT_ReadoutGeometryCfg (flags)
 

Function Documentation

◆ TRT_AlignmentCfg()

def TRT_GeoModelConfig.TRT_AlignmentCfg (   flags)

Definition at line 47 of file TRT_GeoModelConfig.py.

47 def TRT_AlignmentCfg(flags):
48  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
49  acc = ComponentAccumulator()
50  if flags.GeoModel.Align.LegacyConditionsAccess: # revert to old style CondHandle in case of simulation
51  from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
52  acc.merge(addFoldersSplitOnline(flags, "TRT", "/TRT/Onl/Calib/DX", "/TRT/Calib/DX"))
53  if flags.GeoModel.Align.Dynamic:
54  acc.merge(addFoldersSplitOnline(flags, "TRT", "/TRT/Onl/AlignL1/TRT", "/TRT/AlignL1/TRT"))
55  acc.merge(addFoldersSplitOnline(flags, "TRT", "/TRT/Onl/AlignL2", "/TRT/AlignL2"))
56  else:
57  acc.merge(addFoldersSplitOnline(flags, "TRT", "/TRT/Onl/Align", "/TRT/Align"))
58  else:
59  from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig import TRTAlignCondAlgCfg
60  acc.merge(TRTAlignCondAlgCfg(flags))
61  return acc
62 
63 
64 @AccumulatorCache

◆ TRT_GeoModelCfg()

def TRT_GeoModelConfig.TRT_GeoModelCfg (   flags)

Definition at line 6 of file TRT_GeoModelConfig.py.

6 def TRT_GeoModelCfg(flags):
7  from AtlasGeoModel.GeometryDBConfig import InDetGeometryDBSvcCfg
8  db = InDetGeometryDBSvcCfg(flags)
9 
10  from AtlasGeoModel.GeoModelConfig import GeoModelCfg
11  acc = GeoModelCfg(flags)
12  geoModelSvc = acc.getPrimary()
13 
14  from AthenaConfiguration.ComponentFactory import CompFactory
15  trtDetectorTool = CompFactory.TRT_DetectorTool()
16  trtDetectorTool.GeometryDBSvc = db.getPrimary()
17  trtDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
18  # Use default TRT active gas in geo model unless in simulation.
19  from AthenaConfiguration.Enums import LHCPeriod
20  from AthenaConfiguration.Enums import Project, ProductionStep
21  if (flags.Common.Project is not Project.AthSimulation
22  and flags.Common.ProductionStep not in [ProductionStep.Simulation, ProductionStep.FastChain]) or flags.GeoModel.Run is LHCPeriod.Run1:
23  trtDetectorTool.DoXenonArgonMixture = False
24  trtDetectorTool.DoKryptonMixture = False
25  if flags.GeoModel.Run is LHCPeriod.Run3:
26  # TRT filled with Run 3 mixture of Xenon and Argon for pp runs [DB=791CE02A-56D5-5A4C-9150-CCADCB68B31F]
27  trtDetectorTool.StrawStatusFile = 'TRTGeometry/Run3MCStrawStatus.txt'
28  elif flags.GeoModel.Run is LHCPeriod.Run2:
29  # TRT filled with Run 2 mixture of Xenon and Argon for pp runs [DB=8D6AE810-BB00-B44C-A21E-15DE270363BE]
30  trtDetectorTool.StrawStatusFile = 'TRTGeometry/Run2MC_pp_StrawStatus.txt'
31  if flags.Input.ConditionsRunNumber in [222506, 222507, 313000] or (flags.Input.ConditionsRunNumber >= 226000 and flags.Input.ConditionsRunNumber < 228000):
32  # Full TRT filled with Argon for HI runs [DB=52200EDF-D5BF-E24A-AAD4-6BFFEA94BFEF]
33  trtDetectorTool.StrawStatusFile = 'TRTGeometry/Run2MC_HI_StrawStatus.txt'
34  elif flags.GeoModel.Run is not LHCPeriod.Run1:
35  # TRT filled with pure Xenon in Run 1.
36  raise ValueError(f'Cannot configure the TRT geometry for LHCPeriod {flags.GeoModel.Run.value}, please check the configuration of "flags.GeoModel.Run".')
37 
38 
42  geoModelSvc.DetectorTools += [ trtDetectorTool ]
43  acc.merge(db)
44  return acc
45 
46 

◆ TRT_ReadoutGeometryCfg()

def TRT_GeoModelConfig.TRT_ReadoutGeometryCfg (   flags)

Definition at line 73 of file TRT_GeoModelConfig.py.

73 def TRT_ReadoutGeometryCfg(flags):
74  # main GeoModel config
75  acc = TRT_GeoModelCfg(flags)
76  acc.merge(TRT_AlignmentCfg(flags))
77  # Note: this has almost the same content but different name on purpose if
78  # we ever split readout geometry in a separate conditions algorithm
79  from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig import TRTAlignCondAlgCfg
80  acc.merge(TRTAlignCondAlgCfg(flags))
81  return acc

◆ TRT_SimulationGeometryCfg()

def TRT_GeoModelConfig.TRT_SimulationGeometryCfg (   flags)

Definition at line 65 of file TRT_GeoModelConfig.py.

65 def TRT_SimulationGeometryCfg(flags):
66  # main GeoModel config
67  acc = TRT_GeoModelCfg(flags)
68  acc.merge(TRT_AlignmentCfg(flags))
69  return acc
70 
71 
72 @AccumulatorCache
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TRT_GeoModelConfig.TRT_GeoModelCfg
def TRT_GeoModelCfg(flags)
Definition: TRT_GeoModelConfig.py:6
TRT_GeoModelConfig.TRT_ReadoutGeometryCfg
def TRT_ReadoutGeometryCfg(flags)
Definition: TRT_GeoModelConfig.py:73
python.GeometryDBConfig.InDetGeometryDBSvcCfg
def InDetGeometryDBSvcCfg(flags)
Definition: GeometryDBConfig.py:7
TRT_GeoModelConfig.TRT_AlignmentCfg
def TRT_AlignmentCfg(flags)
Definition: TRT_GeoModelConfig.py:47
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:167
TRT_GeoModelConfig.TRT_SimulationGeometryCfg
def TRT_SimulationGeometryCfg(flags)
Definition: TRT_GeoModelConfig.py:65
python.TRT_ConditionsAlgsConfig.TRTAlignCondAlgCfg
def TRTAlignCondAlgCfg(flags, name="TRTAlignCondAlg", **kwargs)
Definition: TRT_ConditionsAlgsConfig.py:8
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16