/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes | Private Member Functions
GenDecay::Histogram::MyPythonAlg Class Reference
Inheritance diagram for GenDecay::Histogram::MyPythonAlg:
Inheritance graph
[legend]
Collaboration diagram for GenDecay::Histogram::MyPythonAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def finalize
def __setitem__
def __getitem__
def __init__
def initialize
def execute
def finalize
def verbose
def debug
def info
def warning
def error
def fatal
def getAES
def initializeHeader
def finalizeHeader

Public Attributes

 default_path
 data
 statsSvc
 msgSvc
 archiveSvc
 stats
 defaultInputLocation
 execNumber
 currentJobId

Private Member Functions

def _key2path

Detailed Description

Definition at line 17 of file Histogram.py.


Constructor & Destructor Documentation

def GenDecay::Histogram::MyPythonAlg::__init__ (   self,
  name,
  default_path = "" 
)

Reimplemented in GenDecay::Histogram::DecayEnergy.

Definition at line 18 of file Histogram.py.

00019                                            :
00020         DybPythonAlg.__init__(self,name)
00021         if default_path[-1] == '/': default_path = default_path[:-1]
00022         self.default_path = default_path
00023         self.data = {}
00024         return


Member Function Documentation

def GenDecay::Histogram::MyPythonAlg::initialize (   self)

Reimplemented in GenDecay::Histogram::DecayEnergy.

Definition at line 25 of file Histogram.py.

00026                         :
00027         status = DybPythonAlg.initialize(self)
00028         if status.isFailure(): return status
00029         self.statsSvc = self.svc('IStatisticsSvc','StatisticsSvc')
00030         if self.statsSvc == None:
00031             self.error("Failed to initialize StatisticsSvc.")
00032             return FAILURE        
00033         return SUCCESS

def GenDecay::Histogram::MyPythonAlg::finalize (   self)

Reimplemented in GenDecay::Histogram::DecayEnergy.

Definition at line 34 of file Histogram.py.

00035                       :
00036         return DybPythonAlg.finalize(self)

def GenDecay::Histogram::MyPythonAlg::_key2path (   self,
  key 
) [private]

Definition at line 37 of file Histogram.py.

00038                            :
00039         if key[0] != '/': 
00040             key = self.default_path + '/' + key
00041         return key

def GenDecay::Histogram::MyPythonAlg::__setitem__ (   self,
  key,
  value 
)

Definition at line 42 of file Histogram.py.

00043                                    :
00044         #self.info('MyPthonAlg.__setitem__(%s,%s)'%(key,value))
00045         key = self._key2path(key)
00046         if self.data.has_key(key):
00047             raise KeyError, 'key "%s" already set'%key
00048         self.statsSvc.put(key,value)
00049         self.data[key] = value
00050         return

def GenDecay::Histogram::MyPythonAlg::__getitem__ (   self,
  key 
)

Definition at line 51 of file Histogram.py.

00052                              :
00053         return self.data[self._key2path(key)]


Member Data Documentation

Definition at line 18 of file Histogram.py.

Definition at line 18 of file Histogram.py.

Definition at line 25 of file Histogram.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:21:06 for GenDecay by doxygen 1.7.4