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

Public Member Functions

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

Public Attributes

 parserEventSelectionTask
 

Detailed Description

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

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

Definition at line 24 of file eventSelection.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 33 of file eventSelection.py.

33 def __init__(self, parserEventSelectionTask = argparse.ArgumentParser(add_help = False)):
34 super(EventSelectionTask, self).__init__()
35 self.parserEventSelectionTask = parserEventSelectionTask
36

Member Function Documentation

◆ addArguments()

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

Definition at line 37 of file eventSelection.py.

37 def addArguments(self):
38 """
39 This function allows to add arguments for parser_args() function
40 """
41
42 # Predefined Selections
43 collisionSystemSelections = ["PbPb", "pp", "pPb", "Pbp", "XeXe"]
44 eventMuonSelections = ["0", "1", "2"]
45
46 # Interface
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,
57 )
58

◆ 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 59 of file eventSelection.py.

59 def parseArgs(self):
60 """
61 This function allows to save the obtained arguments to the parser_args() function
62
63 Returns:
64 Namespace: returns parse_args()
65 """
66
67 return self.parserEventSelectionTask.parse_args()

Member Data Documentation

◆ parserEventSelectionTask

parserEventSelectionTask

Definition at line 35 of file eventSelection.py.


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