3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from MuonAlignErrorTool.AlignmentErrorToolConfig
import AlignmentErrorToolCfg
12 alg = CompFactory.MuonAlign.AlignmentErrorTestAlg(name, **kwargs)
17 if __name__ ==
"__main__":
18 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
21 parser = flags.getArgumentParser()
22 parser.add_argument(
'--postExec', help=
'Code to execute after setup')
23 parser.add_argument(
'--errorClobFileOverride', help=
'Optional path to an error clob file to use as override')
26 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/WorkflowReferences/main/q442/v32/myESD.pool.root']
27 flags.Exec.MaxEvents = 10
28 flags.Common.ShowMsgStats =
True
30 args, _ = parser.parse_known_args()
32 flags.fillFromArgs(parser=parser)
37 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
40 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
45 if args.errorClobFileOverride:
46 cfg.getCondAlgo(
"MuonAlignmentErrorDbAlg").clobFileOverride = args.errorClobFileOverride
49 print(
'Executing postExec: %s', args.postExec)