3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import Format
11 if "AtlasVersion" in os.environ:
12 return os.environ[
"AtlasVersion"]
13 if "AtlasBaseVersion" in os.environ:
14 return os.environ[
"AtlasBaseVersion"]
25 kwargs.setdefault(
"WriteToFile",
True)
27 kwargs.setdefault(
"WriteGeometry",
False)
28 kwargs.setdefault(
"StreamToServerTool",
None)
34 flags.Input.Format
is Format.BS
or "StreamRDO" in flags.Input.ProcessingTags
40 from JiveXML.TruthTrackRetrieverConfig
import TruthTrackRetrieverCfg
43 if haveRDO
or readESD:
44 if flags.Detector.EnableID
and flags.Detector.GeometryID:
45 from JiveXML.InDetRetrieversConfig
import InDetRetrieversCfg
50 if flags.Detector.EnableCalo
and flags.Detector.GeometryCalo:
51 from JiveXML.CaloRetrieversConfig
import CaloRetrieversCfg
53 result.merge(cfg_Calo)
56 if flags.Detector.EnableMuon
and flags.Detector.GeometryMuon:
57 from JiveXML.MuonRetrieversConfig
import MuonRetrieversCfg
59 result.merge(cfg_Muon)
62 from JiveXML.xAODRetrieversConfig
import xAODRetrieversCfg
64 result.merge(cfg_xAOD)
67 from JiveXML.TriggerRetrieversConfig
import TriggerRetrieversCfg
69 result.merge(cfg_Trigger)
70 tools += tools_Trigger
72 kwargs.setdefault(
"DataRetrieverTools", tools)
73 the_alg = CompFactory.JiveXML.AlgoJiveXML(name=
"AlgoJiveXML", **kwargs)
74 result.addEventAlgo(the_alg, primary=
True)