ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GenericMonitoringTool.GenericMonitoringTool Class Reference
Inheritance diagram for GenericMonitoringTool.GenericMonitoringTool:
Collaboration diagram for GenericMonitoringTool.GenericMonitoringTool:

Public Member Functions

def __init__ (self, flags, name='GenericMonitoringTool', **kwargs)
 
def convention (self)
 
def convention (self, value)
 
def defaultDuration (self)
 
def defaultDuration (self, value)
 
def defineHistogram (self, *args, **kwargs)
 
def defineTree (self, *args, **kwargs)
 

Private Member Functions

def _coreDefine (self, deffunc, *args, **kwargs)
 

Private Attributes

 _configFlags
 
 _convention
 
 _defaultDuration
 

Static Private Attributes

tuple __slots__ = ('_configFlags', '_convention', '_defaultDuration')
 

Detailed Description

GenericMonitoringTool configurable class

Definition at line 12 of file GenericMonitoringTool.py.

Constructor & Destructor Documentation

◆ __init__()

def GenericMonitoringTool.GenericMonitoringTool.__init__ (   self,
  flags,
  name = 'GenericMonitoringTool',
**  kwargs 
)

Definition at line 17 of file GenericMonitoringTool.py.

17  def __init__(self, flags, name='GenericMonitoringTool', **kwargs):
18  self._configFlags = flags
19  self._convention = ''
20  self._defaultDuration = kwargs.pop('defaultDuration', None)
21  super().__init__(name, **kwargs)
22 

Member Function Documentation

◆ _coreDefine()

def GenericMonitoringTool.GenericMonitoringTool._coreDefine (   self,
  deffunc,
args,
**  kwargs 
)
private

Definition at line 39 of file GenericMonitoringTool.py.

39  def _coreDefine(self, deffunc, *args, **kwargs):
40  if 'convention' in kwargs:
41  # only if someone really knows what they're doing
42  pass
43  else:
44  duration = kwargs.pop('duration', self.defaultDuration)
45  if duration is not None:
46  kwargs['convention'] = self.convention + ':' + duration
47  # if an overall path for tool is specified, can leave path argument empty
48  if getattr(self, 'HistPath', '') != '':
49  kwargs.setdefault('path', '')
50  toadd = deffunc(self._configFlags, *args, **kwargs)
51  if toadd:
52  self.Histograms.append(toadd)
53 

◆ convention() [1/2]

def GenericMonitoringTool.GenericMonitoringTool.convention (   self)

Definition at line 24 of file GenericMonitoringTool.py.

24  def convention(self):
25  return self._convention
26 

◆ convention() [2/2]

def GenericMonitoringTool.GenericMonitoringTool.convention (   self,
  value 
)

Definition at line 28 of file GenericMonitoringTool.py.

28  def convention(self, value):
29  self._convention = value
30 

◆ defaultDuration() [1/2]

def GenericMonitoringTool.GenericMonitoringTool.defaultDuration (   self)

Definition at line 32 of file GenericMonitoringTool.py.

32  def defaultDuration(self):
33  return self._defaultDuration
34 

◆ defaultDuration() [2/2]

def GenericMonitoringTool.GenericMonitoringTool.defaultDuration (   self,
  value 
)

Definition at line 36 of file GenericMonitoringTool.py.

36  def defaultDuration(self, value):
37  self._defaultDuration = value
38 

◆ defineHistogram()

def GenericMonitoringTool.GenericMonitoringTool.defineHistogram (   self,
args,
**  kwargs 
)

Definition at line 54 of file GenericMonitoringTool.py.

54  def defineHistogram(self, *args, **kwargs):
55  self._coreDefine(defineHistogram, *args, **kwargs)
56 

◆ defineTree()

def GenericMonitoringTool.GenericMonitoringTool.defineTree (   self,
args,
**  kwargs 
)

Definition at line 57 of file GenericMonitoringTool.py.

57  def defineTree(self, *args, **kwargs):
58  self._coreDefine(defineTree, *args, **kwargs)
59 
60 

Member Data Documentation

◆ __slots__

tuple GenericMonitoringTool.GenericMonitoringTool.__slots__ = ('_configFlags', '_convention', '_defaultDuration')
staticprivate

Definition at line 15 of file GenericMonitoringTool.py.

◆ _configFlags

GenericMonitoringTool.GenericMonitoringTool._configFlags
private

Definition at line 18 of file GenericMonitoringTool.py.

◆ _convention

GenericMonitoringTool.GenericMonitoringTool._convention
private

Definition at line 19 of file GenericMonitoringTool.py.

◆ _defaultDuration

GenericMonitoringTool.GenericMonitoringTool._defaultDuration
private

Definition at line 20 of file GenericMonitoringTool.py.


The documentation for this class was generated from the following file:
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
GenericMonitoringTool.defineTree
def defineTree(flags, varname, treedef, path=None, title=None, opt='', convention=None, cutmask=None)
Generate tree definition string for the GenericMonitoringTool.Histograms property.
Definition: GenericMonitoringTool.py:491
GenericMonitoringTool.defineHistogram
def defineHistogram(flags, varname, type='TH1F', path=None, title=None, weight=None, xbins=100, xmin=0, xmax=1, xlabels=None, ybins=None, ymin=None, ymax=None, ylabels=None, zmin=None, zmax=None, zlabels=None, opt=None, convention=None, cutmask=None, treedef=None, merge=None)
Generate histogram definition string for the GenericMonitoringTool.Histograms property.
Definition: GenericMonitoringTool.py:306