48 kwargs.setdefault(
"HasCSC", flags.Detector.GeometryCSC)
49 kwargs.setdefault(
"HasSTgc", flags.Detector.GeometrysTGC)
50 kwargs.setdefault(
"HasMM", flags.Detector.GeometryMM)
52 kwargs.setdefault(
"UseConditionDb", flags.Muon.enableAlignment)
53 kwargs.setdefault(
"UseAsciiConditionData", flags.Muon.enableAlignment)
55 UseIlinesFromGM =
False
56 EnableCscInternalAlignment =
False
58 if flags.Muon.enableAlignment:
59 if not flags.Input.isMC:
60 kwargs.setdefault(
"BEENoShift",
True)
62 if flags.Muon.Align.UseILines
and flags.Detector.GeometryCSC:
63 if 'HLT' in flags.IOVDb.GlobalTag:
65 UseIlinesFromGM =
True
66 EnableCscInternalAlignment =
False
69 if (flags.Common.isOnline
and not flags.Input.isMC):
70 EnableCscInternalAlignment =
True
72 UseIlinesFromGM =
False
73 EnableCscInternalAlignment =
True
75 kwargs.setdefault(
"UseIlinesFromGM", UseIlinesFromGM)
76 kwargs.setdefault(
"EnableCscInternalAlignment", EnableCscInternalAlignment)
78 if not flags.GeoModel.SQLiteDB:
80 AGDD2Geo = CompFactory.AGDDtoGeoSvc()
81 muonAGDDTool = CompFactory.MuonAGDDTool(
"MuonSpectrometer", BuildNSW=
False)
82 AGDD2Geo.Builders += [ muonAGDDTool ]
83 if (flags.Detector.GeometrysTGC
and flags.Detector.GeometryMM):
84 nswAGDDTool = CompFactory.NSWAGDDTool(
"NewSmallWheel", Locked=
False)
85 nswAGDDTool.Volumes = [
"NewSmallWheel"]
86 nswAGDDTool.DefaultDetector =
"Muon"
87 AGDD2Geo.Builders += [ nswAGDDTool ]
90 acc.addService(AGDD2Geo, create=
True)
95 detTool = CompFactory.MuonDetectorTool(name, **kwargs)
96 acc.setPrivateTools(detTool)