O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
TrackSelectionTask Class Reference
Inheritance diagram for TrackSelectionTask:

Public Member Functions

def __init__ (self, parserTrackSelectionTask=argparse.ArgumentParser(add_help=False))
 
def addArguments (self)
 
def parseArgs (self)
 

Public Attributes

 parserTrackSelectionTask
 

Detailed Description

Class for Interface -> trackselection.cxx.cxx Task -> Configurable, Process Functions

Args:
    object (parser_args() object): trackselection.cxx.cxx Interface

Definition at line 23 of file trackselection.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parserTrackSelectionTask = argparse.ArgumentParser(add_help = False) 
)

Definition at line 32 of file trackselection.py.

32 def __init__(self, parserTrackSelectionTask = argparse.ArgumentParser(add_help = False)):
33 super(TrackSelectionTask, self).__init__()
34 self.parserTrackSelectionTask = parserTrackSelectionTask
35

Member Function Documentation

◆ addArguments()

def addArguments (   self)
This function allows to add arguments for parser_args() function

Definition at line 36 of file trackselection.py.

36 def addArguments(self):
37 """
38 This function allows to add arguments for parser_args() function
39 """
40
41 # Predefined Selections
42 itsMatchingSelections = ["0", "1", "2"]
43
44 # Interface
45 groupTrackSelectionTask = self.parserTrackSelectionTask.add_argument_group(title = "Data processor options: track-selection")
46 groupTrackSelectionTask.add_argument(
47 "--itsMatching",
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)
51

◆ parseArgs()

def parseArgs (   self)
This function allows to save the obtained arguments to the parser_args() function

Returns:
    Namespace: returns parse_args()

Definition at line 52 of file trackselection.py.

52 def parseArgs(self):
53 """
54 This function allows to save the obtained arguments to the parser_args() function
55
56 Returns:
57 Namespace: returns parse_args()
58 """
59
60 return self.parserTrackSelectionTask.parse_args()

Member Data Documentation

◆ parserTrackSelectionTask

parserTrackSelectionTask

Definition at line 34 of file trackselection.py.


The documentation for this class was generated from the following file: