21from argcomplete.completers
import ChoicesCompleter
27 Class for Interface -> eventSelection.cxx Task -> Configurable, Process Functions
30 object (parser_args() object): eventSelection.cxx Interface
33 def __init__(self, parserEventSelectionTask = argparse.ArgumentParser(add_help =
False)):
34 super(EventSelectionTask, self).
__init__()
39 This function allows to add arguments for parser_args() function
43 collisionSystemSelections = [
"PbPb",
"pp",
"pPb",
"Pbp",
"XeXe"]
44 eventMuonSelections = [
"0",
"1",
"2"]
47 groupEventSelection = self.
parserEventSelectionTask.add_argument_group(title =
"Data processor options: event-selection-task")
48 groupEventSelection.add_argument(
49 "--syst", help =
"Collision System Selection ex. pp", action =
"store", type = str, choices = (collisionSystemSelections),
50 ).completer = ChoicesCompleter(collisionSystemSelections)
51 groupEventSelection.add_argument(
52 "--muonSelection", help =
"0 - barrel, 1 - muon selection with pileup cuts, 2 - muon selection without pileup cuts",
53 action =
"store", type = str, choices = (eventMuonSelections),
54 ).completer = ChoicesCompleter(eventMuonSelections)
55 groupEventSelection.add_argument(
56 "--customDeltaBC", help =
"custom BC delta for FIT-collision matching", action =
"store", type = str,
61 This function allows to save the obtained arguments to the parser_args() function
64 Namespace: returns parse_args()
def __init__(self, parserEventSelectionTask=argparse.ArgumentParser(add_help=False))