11def parser():
12 from argparse import ArgumentParser
13 parser = ArgumentParser(description='Script for the ITk Alignment')
14
15
16 parser.add_argument("-a", '--accumulate', action="store_true", help='Run accumulation step')
17 parser.add_argument("-s", '--solve', action="store_true", help='Run solve step')
18 parser.add_argument("-d", '--dryRun', action="store_true", help='Only configure, print and dont execute')
19 parser.add_argument("-b", '--baseDir', default = "./", help='Base dir where output is placed')
20
21
22 parser.add_argument("-i", "--input", default = defaultTestFiles.RDO_RUN4, nargs = "+", help='Input file(s)')
23 parser.add_argument("--maxEvents", default = -1, type = int, help='Number of maximal processed events')
24 parser.add_argument("-t", "--inputTracksCollection", default = "CombinedITkTracks", type = str, help='Name of the track collection to use')
25 parser.add_argument("--inputTFiles", default = "AlignmentTFile.root", type = str, help='ROOT file produced in MatrixTool in the accumulation step')
26
27 parser.add_argument("--alignmentConstants", default = [], nargs = "+", help='Local alignment constants to use')
28
29
30 parser.add_argument("--alignITk", action="store_true", help='Align whole ITk')
31 parser.add_argument("--alignITkPixel", action="store_true", help='Align ITkPixel')
32 parser.add_argument("--alignITkStrip", action="store_true", help='Align ITkStrip')
33
34
35 parser.add_argument("--globalTag", default = defaultConditionsTags.RUN4_MC, help='Global tag')
36 parser.add_argument("--atlasVersion", default = defaultGeometryTags.RUN4, help='Global tag')
37
38 parser.add_argument("--isBFieldOff", action="store_true", help='Check if Bfield is off')
39 parser.add_argument("--isCosmics", action="store_true", help='Check if cosmics run')
40 parser.add_argument("--isHeavyIon", action="store_true", help='Check if heavy ion run')
41
42
43 parser.add_argument("--localgeo", action="store_true", help='Use local geometry XML files')
44
45
46 parser.add_argument("--localDB", default = "", help='Use local DB file rather than from conditions tag')
47
48
49 return parser.parse_args()
50