38 def addArguments(self):
39 """
40 This function allows to add arguments for parser_args() function
41 """
42
43
44 centralityTableSelections = {
45 "Run2V0M": "Produces centrality percentiles using V0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
46 "Run2SPDtks":
47 "Produces Run2 centrality percentiles using SPD tracklets multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
48 "Run2SPDcls":
49 "Produces Run2 centrality percentiles using SPD clusters multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
50 "Run2CL0": "Produces Run2 centrality percentiles using CL0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
51 "Run2CL1": "Produces Run2 centrality percentiles using CL1 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
52 "FV0A": "Produces centrality percentiles using FV0A multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
53 "FT0M": "Produces centrality percentiles using FT0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
54 "FDDM": "Produces centrality percentiles using FDD multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
55 "NTPV":
56 "Produces centrality percentiles using number of tracks contributing to the PV. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
57 }
58 centralityTableSelectionsList = []
59 for k, v in centralityTableSelections.items():
60 centralityTableSelectionsList.append(k)
61
62
63 groupCentralityTable = self.parserCentralityTable.add_argument_group(title = "Data processor options: centrality-table")
64 groupCentralityTable.add_argument(
65 "--est", help = "Produces centrality percentiles parameters", action = "store", nargs = "*", type = str, metavar = "EST",
66 choices = centralityTableSelectionsList,
67 ).completer = ChoicesCompleterList(centralityTableSelectionsList)
68
69 for key, value in centralityTableSelections.items():
70 groupCentralityTable.add_argument(key, help = value, action = "none")
71