3 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
11 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
15 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
18 result.addEventAlgo(CompFactory.LArIdCablingTest(
"LArIdCablingTest",isSC=isSC,
19 CablingKey=
"LArOnOffIdMapSC" if isSC
else "LArOnOffIdMap",
24 if __name__==
"__main__":
26 parser= argparse.ArgumentParser()
27 parser.add_argument(
"--loglevel", default=
None, help=
"logging level (ALL, VERBOSE, DEBUG,INFO, WARNING, ERROR, or FATAL")
28 parser.add_argument(
"-r",
"--runnumber",default=0x7fffffff, type=int, help=
"run number to query the DB")
29 parser.add_argument(
"-d",
"--database",default=
"LAR_ONL", help=
"Database name or sqlite file name")
30 parser.add_argument(
"--SC", action=
'store_true', help=
"Work on SuperCells")
32 (args,leftover)=parser.parse_known_args(sys.argv[1:])
35 print(
"ERROR, unhandled argument(s):",leftover)
38 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
41 flags.Input.isMC =
False
42 flags.IOVDb.DatabaseInstance=
"CONDBR2"
43 flags.LAr.doAlign=
False
44 flags.Input.RunNumbers=[args.runnumber]
45 flags.IOVDb.GlobalTag=
"CONDBR2-ES1PA-2023-02"
46 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
47 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN3
52 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
55 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
60 TimeStampInterval = 1))
66 cfg.getService(
"MessageSvc").errorLimit=5000000