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

Public Member Functions

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

Public Attributes

 parserTofEventTime
 

Detailed Description

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

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

Definition at line 23 of file pidTOFBase.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 32 of file pidTOFBase.py.

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

Member Function Documentation

◆ addArguments()

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

Definition at line 36 of file pidTOFBase.py.

36 def addArguments(self):
37 """
38 This function allows to add arguments for parser_args() function
39 """
40
41 # Predefined Selections
42 ft0Selections = ["FT0", "NoFT0", "OnlyFT0", "Run2"]
43
44 # Interface
45 groupTofEventTime = self.parserTofEventTime.add_argument_group(title = "Data processor options: tof-event-time")
46 groupTofEventTime.add_argument(
47 "--FT0",
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)
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 pidTOFBase.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.parserTofEventTime.parse_args()

Member Data Documentation

◆ parserTofEventTime

parserTofEventTime

Definition at line 34 of file pidTOFBase.py.


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