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

Public Member Functions

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

Public Attributes

 parserCentralityTable
 

Detailed Description

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

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

Definition at line 23 of file centralityTable.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 32 of file centralityTable.py.

32 def __init__(self, parserCentralityTable = argparse.ArgumentParser(add_help = False)):
33 super(CentralityTable, self).__init__()
34 self.parserCentralityTable = parserCentralityTable
35 # self.parserB.register("action", "none", NoAction)
36 # self.parserB.register("action", "store_choice", ChoicesAction)
37

Member Function Documentation

◆ addArguments()

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

Definition at line 38 of file centralityTable.py.

38 def addArguments(self):
39 """
40 This function allows to add arguments for parser_args() function
41 """
42
43 # Predefined Selections
44 centralityTableSelections = {
45 "Run2V0M": "Produces centrality percentiles using V0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
46 "Run2SPDtks":
47 "Produces Run2 centrality percentiles using SPD tracklets multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
48 "Run2SPDcls":
49 "Produces Run2 centrality percentiles using SPD clusters multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
50 "Run2CL0": "Produces Run2 centrality percentiles using CL0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
51 "Run2CL1": "Produces Run2 centrality percentiles using CL1 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
52 "FV0A": "Produces centrality percentiles using FV0A multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
53 "FT0M": "Produces centrality percentiles using FT0 multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
54 "FDDM": "Produces centrality percentiles using FDD multiplicity. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
55 "NTPV":
56 "Produces centrality percentiles using number of tracks contributing to the PV. -1: auto, 0: don't, 1: yes. Default: auto (-1)",
57 }
58 centralityTableSelectionsList = []
59 for k, v in centralityTableSelections.items():
60 centralityTableSelectionsList.append(k)
61
62 # Interface
63 groupCentralityTable = self.parserCentralityTable.add_argument_group(title = "Data processor options: centrality-table")
64 groupCentralityTable.add_argument(
65 "--est", help = "Produces centrality percentiles parameters", action = "store", nargs = "*", type = str, metavar = "EST",
66 choices = centralityTableSelectionsList,
67 ).completer = ChoicesCompleterList(centralityTableSelectionsList)
68
69 for key, value in centralityTableSelections.items():
70 groupCentralityTable.add_argument(key, help = value, action = "none")
71

◆ 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 72 of file centralityTable.py.

72 def parseArgs(self):
73 """
74 This function allows to save the obtained arguments to the parser_args() function
75
76 Returns:
77 Namespace: returns parse_args()
78 """
79
80 return self.parserCentralityTable.parse_args()

Member Data Documentation

◆ parserCentralityTable

parserCentralityTable

Definition at line 34 of file centralityTable.py.


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