O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
dplAodReader.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
16import argparse
17
18
19class DplAodReader(object):
20
21 """
22 Class for Interface -> internal-dpl-aod-reader Task -> Configurables
23
24 Args:
25 object (parser_args() object): DplAodReader Interface
26 """
27
28 def __init__(self, parserDplAodReader = argparse.ArgumentParser(add_help = False)):
29 super(DplAodReader, self).__init__()
30 self.parserDplAodReader = parserDplAodReader
31
32 def addArguments(self):
33 """
34 This function allows to add arguments for parser_args() function
35 """
36
37 # Interface
38 groupDPLReader = self.parserDplAodReader.add_argument_group(title = "Data processor options: internal-dpl-aod-reader")
39 groupDPLReader.add_argument("--aod", help = "Add your AOD File with path", action = "store", type = str)
40 groupDPLReader.add_argument(
41 "--aod-memory-rate-limit", help = "Rate limit AOD processing based on memory", action = "store", type = str
42 )
43 groupDPLReader.add_argument(
44 "cfgFileName", metavar = "Config.json", default = "config.json", help = "config JSON file name (mandatory)"
45 )
46
47 def parseArgs(self):
48 """
49 This function allows to save the obtained arguments to the parser_args() function
50
51 Returns:
52 Namespace: returns parse_args()
53 """
54
55 return self.parserDplAodReader.parse_args()
def __init__(self, parserDplAodReader=argparse.ArgumentParser(add_help=False))
Definition: dplAodReader.py:28