ATLAS Offline Software
DumpConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 
7 def DumpCfg (flags, ofile, items='*', exclude=''):
9  from PyDumper.PyComps import PySgDumper as pyalg
10  from AthenaCommon.Constants import INFO
11 
12  # Don't set up geomodel for evgen files.
13  if flags.GeoModel.AtlasVersion != 0:
14  from AtlasGeoModel.GeoModelConfig import GeoModelCfg
15  acc.merge (GeoModelCfg (flags))
16 
17  if flags.Detector.GeometryPixel:
18  from PixelGeoModel.PixelGeoModelConfig import PixelReadoutGeometryCfg
19  acc.merge(PixelReadoutGeometryCfg(flags))
20  if flags.Detector.GeometrySCT:
21  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
22  acc.merge(SCT_ReadoutGeometryCfg(flags))
23  if flags.Detector.GeometryTRT:
24  from TRT_GeoModel.TRT_GeoModelConfig import TRT_ReadoutGeometryCfg
25  acc.merge(TRT_ReadoutGeometryCfg(flags))
26  if flags.Detector.GeometryITkPixel:
27  from PixelGeoModelXml.ITkPixelGeoModelConfig import ITkPixelReadoutGeometryCfg
28  acc.merge(ITkPixelReadoutGeometryCfg(flags))
29  if flags.Detector.GeometryITkStrip:
30  from StripGeoModelXml.ITkStripGeoModelConfig import ITkStripReadoutGeometryCfg
31  acc.merge(ITkStripReadoutGeometryCfg(flags))
32  if flags.Detector.GeometryLAr:
33  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
34  acc.merge(LArGMCfg(flags))
35  if flags.Detector.GeometryTile:
36  from TileGeoModel.TileGMConfig import TileGMCfg
37  acc.merge(TileGMCfg(flags))
38  if flags.Detector.GeometryMuon:
39  from MuonConfig.MuonGeometryConfig import MuonGeoModelCfg
40  acc.merge(MuonGeoModelCfg(flags))
41 
42  acc.addEventAlgo (pyalg ('pyalg',
43  ofile = ofile,
44  items = items,
45  exclude = exclude,
46  OutputLevel = INFO))
47  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TRT_GeoModelConfig.TRT_ReadoutGeometryCfg
def TRT_ReadoutGeometryCfg(flags)
Definition: TRT_GeoModelConfig.py:59
ITkStripGeoModelConfig.ITkStripReadoutGeometryCfg
def ITkStripReadoutGeometryCfg(flags)
Definition: ITkStripGeoModelConfig.py:39
ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg
def ITkPixelReadoutGeometryCfg(flags)
Definition: ITkPixelGeoModelConfig.py:39
python.DumpConfig.DumpCfg
def DumpCfg(flags, ofile, items=' *', exclude='')
Definition: DumpConfig.py:7
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
def SCT_ReadoutGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:51
Constants
some useful constants -------------------------------------------------—
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
PixelGeoModelConfig.PixelReadoutGeometryCfg
def PixelReadoutGeometryCfg(flags)
Definition: PixelGeoModelConfig.py:52
python.MuonGeometryConfig.MuonGeoModelCfg
def MuonGeoModelCfg(flags)
Definition: MuonGeometryConfig.py:28
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7