20from argcomplete.completers
import ChoicesCompleter
26 Class for Interface -> trackselection.cxx.cxx Task -> Configurable, Process Functions
29 object (parser_args() object): trackselection.cxx.cxx Interface
32 def __init__(self, parserTrackSelectionTask = argparse.ArgumentParser(add_help =
False)):
33 super(TrackSelectionTask, self).
__init__()
38 This function allows to add arguments for parser_args() function
42 itsMatchingSelections = [
"0",
"1",
"2"]
45 groupTrackSelectionTask = self.
parserTrackSelectionTask.add_argument_group(title =
"Data processor options: track-selection")
46 groupTrackSelectionTask.add_argument(
48 help =
"condition for ITS matching (0: Run2 SPD kAny, 1: Run3ITSibAny, 2: Run3ITSallAny, 3: Run3ITSall7Layers)",
49 action =
"store", type = str, choices = (itsMatchingSelections),
50 ).completer = ChoicesCompleter(itsMatchingSelections)
54 This function allows to save the obtained arguments to the parser_args() function
57 Namespace: returns parse_args()
def __init__(self, parserTrackSelectionTask=argparse.ArgumentParser(add_help=False))