O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
pidTOFBeta.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# PYTHON_ARGCOMPLETE_OK
3# -*- coding: utf-8 -*-
4
5# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
6# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
7# All rights not expressly granted are reserved.
8#
9# This software is distributed under the terms of the GNU General Public
10# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
11#
12# In applying this license CERN does not waive the privileges and immunities
13# granted to it by virtue of its status as an Intergovernmental Organization
14# or submit itself to any jurisdiction.
15
16# Orginal Task: https://github.com/AliceO2Group/O2Physics/blob/master/Common/TableProducer/PID/pidTOFbeta.cxx
17
18import argparse
19
20
21class TofPidBeta(object):
22
23 """
24 Class for Interface -> pidTOFbeta.cxx Task -> Configurable, Process Functions
25
26 Args:
27 object (parser_args() object): pidTOFbeta.cxx Interface
28 """
29
30 def __init__(self, parserTofPidBeta = argparse.ArgumentParser(add_help = False)):
31 super(TofPidBeta, self).__init__()
32 self.parserTofPidBeta = parserTofPidBeta
33
34 def addArguments(self):
35 """
36 This function allows to add arguments for parser_args() function
37 """
38
39 # Interface
40 groupTofPidbeta = self.parserTofPidBeta.add_argument_group(title = "Data processor options: tof-pid-beta")
41 groupTofPidbeta.add_argument(
42 "--tof-expreso", help = "Expected resolution for the computation of the expected beta", action = "store", type = str,
43 )
44
45 def parseArgs(self):
46 """
47 This function allows to save the obtained arguments to the parser_args() function
48
49 Returns:
50 Namespace: returns parse_args()
51 """
52
53 return self.parserTofPidBeta.parse_args()
def __init__(self, parserTofPidBeta=argparse.ArgumentParser(add_help=False))
Definition: pidTOFBeta.py:30
def addArguments(self)
Definition: pidTOFBeta.py:34