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