Belle II Software  release-08-01-10
entities.py
1 
9  """
10  Data class for an entry in a store content list.
11  """
12 
13  def __init__(self, name, number):
14  """
15  Create a new entry in a Store Content List.
16 
17  Parameters:
18  name: The name of the store content.
19  number: The number of items in this store content.
20  """
21 
22  self.namename = name
23 
24  self.numbernumber = number
25 
26 
28  """
29  Data class for the content of the storage for one event.
30  """
31 
32  def __init__(self, content, event_number):
33  """
34  Create a new content fr one event.
35 
36  Parameters:
37  content: A list of StoreContents.
38  event_number: The event number this element describes.
39  """
40 
41  self.contentcontent = content
42 
43  self.event_numberevent_number = event_number
44 
45 
47  """
48  Data class for a column in the statistics view.
49  """
50 
51  def __init__(self, name, display_name=None, three_column_format=False):
52  """
53  Create a new column for the statistics view.
54 
55  Parameters:
56  name: The name of this column.
57  display_name: The display name of this column.
58  three_column_format: If the column has one or three columns.
59  """
60 
61  self.namename = name
62 
63  self.three_column_formatthree_column_format = three_column_format
64 
65  if not display_name:
66 
67  self.display_namedisplay_name = self.namename
68  else:
69 
70  self.display_namedisplay_name = display_name
71 
72 
73 class Statistics:
74  """
75  Data class for the statistics.
76  """
77 
78  def __init__(self, columns, modules):
79  """
80  Create a new Statistics object.
81 
82  Parameters:
83  columns: The list of StatisticsColumns.
84  modules: A list of dictionaries, each one with the same names as there are columns.
85  """
86 
87  self.columnscolumns = columns
88 
89  self.modulesmodules = modules
def __init__(self, name, display_name=None, three_column_format=False)
Definition: entities.py:51
three_column_format
If the column has one or three columns.
Definition: entities.py:63
columns
The list of StatisticsColumns.
Definition: entities.py:87
modules
A list of dictionaries, each one with the same names as there are columns.
Definition: entities.py:89
def __init__(self, columns, modules)
Definition: entities.py:78
def __init__(self, content, event_number)
Definition: entities.py:32
event_number
The event number this element describes.
Definition: entities.py:43
basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for...
Definition: entities.py:8
name
The name of the store content.
Definition: entities.py:22
def __init__(self, name, number)
Definition: entities.py:13
number
The number of items in this store content.
Definition: entities.py:24