ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
DetDescrCnvSvc
python
DetDescrCnvSvcConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
DetDescrCnvSvcCfg
(flags, **kwargs):
7
kwargs.setdefault(
"IdDictName"
,
"IdDictParser/ATLAS_IDS.xml"
)
8
kwargs.setdefault(
"HasTRT"
, flags.Detector.GeometryTRT)
9
kwargs.setdefault(
"HasCSC"
, flags.Detector.GeometryCSC)
10
kwargs.setdefault(
"HasSTgc"
, flags.Detector.GeometrysTGC)
11
kwargs.setdefault(
"HasMM"
, flags.Detector.GeometryMM)
12
kwargs.setdefault(
"HasTGC"
, flags.Detector.GeometryTGC)
13
kwargs.setdefault(
"HasMDT"
, flags.Detector.GeometryMDT)
14
kwargs.setdefault(
"HasRPC"
, flags.Detector.GeometryRPC)
15
16
17
# Use GEOM DB to read InDet dictionary information
18
kwargs.setdefault(
"useGeomDB_InDet"
,
not
flags.GeoModel.SQLiteDB
and
(flags.Detector.GeometryITk
or
\
19
flags.Detector.GeometryHGTD))
20
21
if
(flags.Detector.GeometryITk
or
flags.Detector.GeometryHGTD) \
22
and
flags.ITk.Geometry.DictionaryLocal:
23
kwargs.setdefault(
"IdDictFromRDB"
,
False
)
24
kwargs.setdefault(
"InDetIDFileName"
, flags.ITk.Geometry.DictionaryFilename)
25
kwargs.setdefault(
"MuonIDFileName"
,
"IdDictParser/IdDictMuonSpectrometer_R.10.00.xml"
)
26
kwargs.setdefault(
"LArIDFileName"
,
"IdDictParser/IdDictLArCalorimeter_DC3-05-Comm-01.xml"
)
27
kwargs.setdefault(
"TileIDFileName"
,
"IdDictParser/IdDictTileCalorimeter.xml"
)
28
kwargs.setdefault(
"CaloIDFileName"
,
"IdDictParser/IdDictCalorimeter_L1Onl.xml"
)
29
kwargs.setdefault(
"ForwardIDFileName"
,
"IdDictParser/IdDictForwardDetectors_2010.xml"
)
30
else
:
31
kwargs.setdefault(
"IdDictFromRDB"
,
True
)
32
33
acc = ComponentAccumulator()
34
service = CompFactory.DetDescrCnvSvc(**kwargs)
35
acc.addService(service, create=
True
)
36
acc.addService(CompFactory.EvtPersistencySvc(
"EventPersistencySvc"
,
37
CnvServices=[service.getName()]))
38
return
acc
python.DetDescrCnvSvcConfig.DetDescrCnvSvcCfg
DetDescrCnvSvcCfg(flags, **kwargs)
Definition
DetDescrCnvSvcConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0