ATLAS Offline Software
Functions
python.DetDescrCnvSvcConfig Namespace Reference

Functions

def DetDescrCnvSvcCfg (flags, **kwargs)
 

Function Documentation

◆ DetDescrCnvSvcCfg()

def python.DetDescrCnvSvcConfig.DetDescrCnvSvcCfg (   flags,
**  kwargs 
)

Definition at line 6 of file DetDescrCnvSvcConfig.py.

6 def DetDescrCnvSvcCfg(flags, **kwargs):
7  kwargs.setdefault("IdDictName", "IdDictParser/ATLAS_IDS.xml")
8  kwargs.setdefault("HasCSC", flags.Detector.GeometryCSC)
9  kwargs.setdefault("HasSTgc", flags.Detector.GeometrysTGC)
10  kwargs.setdefault("HasMM", flags.Detector.GeometryMM)
11  kwargs.setdefault("HasTGC", flags.Detector.GeometryTGC)
12  kwargs.setdefault("HasMDT", flags.Detector.GeometryMDT)
13  kwargs.setdefault("HasRPC", flags.Detector.GeometryRPC)
14 
15 
16  # Use GEOM DB to read InDet dictionary information
17  kwargs.setdefault("useGeomDB_InDet", not flags.GeoModel.SQLiteDB and (flags.Detector.GeometryITk or \
18  flags.Detector.GeometryHGTD))
19 
20  if (flags.Detector.GeometryITk or flags.Detector.GeometryHGTD) \
21  and flags.ITk.Geometry.DictionaryLocal:
22  kwargs.setdefault("IdDictFromRDB", False)
23  kwargs.setdefault("InDetIDFileName", flags.ITk.Geometry.DictionaryFilename)
24  kwargs.setdefault("MuonIDFileName", "IdDictParser/IdDictMuonSpectrometer_R.10.00.xml")
25  kwargs.setdefault("LArIDFileName", "IdDictParser/IdDictLArCalorimeter_DC3-05-Comm-01.xml")
26  kwargs.setdefault("TileIDFileName", "IdDictParser/IdDictTileCalorimeter.xml")
27  kwargs.setdefault("CaloIDFileName", "IdDictParser/IdDictCalorimeter_L1Onl.xml")
28  kwargs.setdefault("ForwardIDFileName", "IdDictParser/IdDictForwardDetectors_2010.xml")
29  else:
30  kwargs.setdefault("IdDictFromRDB", True)
31 
32  acc = ComponentAccumulator()
33  service = CompFactory.DetDescrCnvSvc(**kwargs)
34  acc.addService(service, create=True)
35  acc.addService(CompFactory.EvtPersistencySvc("EventPersistencySvc",
36  CnvServices=[service.getName()]))
37  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.DetDescrCnvSvcConfig.DetDescrCnvSvcCfg
def DetDescrCnvSvcCfg(flags, **kwargs)
Definition: DetDescrCnvSvcConfig.py:6