2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
10 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
11 kwargs.setdefault(
"MuonIdHelperSvc", result.getPrimaryAndMerge(
MuonIdHelperSvcCfg(flags)))
12 the_alg = CompFactory.MdtToyTwinCablingDumpAlg(name, **kwargs)
13 result.addEventAlgo(the_alg, primary =
True)
17 if __name__ ==
"__main__":
18 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, executeTest, geoModelFileDefault
20 parser.set_defaults(nEvents = 1)
21 parser.set_defaults(noMM=
True)
22 parser.set_defaults(noSTGC=
True)
23 parser.set_defaults(noTgc=
True)
24 parser.add_argument(
"--setupRun4", default=
False, action=
"store_true")
25 parser.add_argument(
"--cablingMap", default=
"twinMap.json", help=
"External JSON file containing the cabling map of each channel")
26 parser.add_argument(
"--stationsToTwin",nargs=
'+', help=
"Specify the station names for which you want twin tubes",
28 parser.add_argument(
"--chamberToTwin",nargs=
'+', help=
"Specify the station names for which you want twin tubes",
29 default=[
"BOL4A13M1",
"BOL4C13M1"])
30 args = parser.parse_args()
34 stationsToTwin = args.stationsToTwin,
35 outCablingJSON = args.cablingMap,
36 detElIdToTwin = args.chamberToTwin
if "all" not in args.chamberToTwin
else []))