20from argcomplete.completers
import ChoicesCompleter
26 Class for Interface -> pidTOFBase.cxx.cxx Task -> Configurable, Process Functions
29 object (parser_args() object): pidTOFBase.cxx.cxx Interface
32 def __init__(self, parserTofEventTime = argparse.ArgumentParser(add_help =
False)):
38 This function allows to add arguments for parser_args() function
42 ft0Selections = [
"FT0",
"NoFT0",
"OnlyFT0",
"Run2"]
45 groupTofEventTime = self.
parserTofEventTime.add_argument_group(title =
"Data processor options: tof-event-time")
46 groupTofEventTime.add_argument(
48 help =
"FT0: Process with FT0, NoFT0: Process without FT0, OnlyFT0: Process only with FT0, Run2: Process with Run2 data",
49 action =
"store", type = str, choices = ft0Selections,
50 ).completer = ChoicesCompleter(ft0Selections)
54 This function allows to save the obtained arguments to the parser_args() function
57 Namespace: returns parse_args()
def __init__(self, parserTofEventTime=argparse.ArgumentParser(add_help=False))