Public Member Functions | Public Attributes | List of all members
ChainData.ChainData Class Reference

Public Member Functions

def __init__ (self, name, title, description)
 
def addTier (self, tier, defname)
 
def fetchData (self, maxCacheLifetime, dump=False)
 
def loadData (self)
 
def dump (self)
 
def getFileCounts (self)
 these three functions just return an array of elements: the chain title, and the value for each tier More...
 
def getTotEventCounts (self)
 
def getTotFileSizes (self)
 

Public Attributes

 name
 
 title
 
 description
 
 tierData
 

Detailed Description

Definition at line 6 of file ChainData.py.

Constructor & Destructor Documentation

def ChainData.ChainData.__init__ (   self,
  name,
  title,
  description 
)

Definition at line 7 of file ChainData.py.

7  def __init__(self, name, title, description):
8  self.name = name
9  self.title=title
10  self.description=description
11  self.tierData=OrderedDict()
12 
def __init__(self, name, title, description)
Definition: ChainData.py:7

Member Function Documentation

def ChainData.ChainData.addTier (   self,
  tier,
  defname 
)

Definition at line 13 of file ChainData.py.

References ChainData.ChainData.tierData.

13  def addTier(self,tier,defname):
14  self.tierData[tier]=DefinitionData(defname)
15 
def addTier(self, tier, defname)
Definition: ChainData.py:13
def ChainData.ChainData.dump (   self)

Definition at line 32 of file ChainData.py.

References DefinitionData.dumpDefinitionData(), and ChainData.ChainData.tierData.

32  def dump(self):
33  for tier in self.tierData.keys():
34  dumpDefinitionData(self.tierData[tier])
35 
def dump(self)
Definition: ChainData.py:32
def dumpDefinitionData(defData, useCache=False)
def ChainData.ChainData.fetchData (   self,
  maxCacheLifetime,
  dump = False 
)

Definition at line 16 of file ChainData.py.

References DefinitionData.dumpDefinitionData(), and ChainData.ChainData.tierData.

16  def fetchData(self,maxCacheLifetime, dump=False):
17  for tier in self.tierData.keys():
18  self.tierData[tier].fetchData(maxCacheLifetime)
19  if dump:
20  dumpDefinitionData(self.tierData[tier])
21 
def dumpDefinitionData(defData, useCache=False)
def fetchData(self, maxCacheLifetime, dump=False)
Definition: ChainData.py:16
def ChainData.ChainData.getFileCounts (   self)

these three functions just return an array of elements: the chain title, and the value for each tier

Definition at line 38 of file ChainData.py.

References ChainData.ChainData.tierData, Table.title, ChainData.ChainData.title, bp.DocDBEntry.title, plotConfusion.HistSet.title, PlotAxis.title, drawEvents.HistSet.title, ContentAxis.title, file_size_ana.Node.title, axis_info.title, bp_docdb.Document.title, TB_WatchdogFx.Path.title, and WatchdogFx.Path.title.

38  def getFileCounts(self):
39  retVal=[self.title]
40  for tierName in self.tierData.keys():
41  tier=self.tierData[tierName]
42  if tier.state == "good":
43  retVal.append(tier.summary["file_count"])
44  else:
45  retVal.append(0)
46  return retVal
47 
def getFileCounts(self)
these three functions just return an array of elements: the chain title, and the value for each tier ...
Definition: ChainData.py:38
def ChainData.ChainData.getTotEventCounts (   self)

Definition at line 48 of file ChainData.py.

References ChainData.ChainData.tierData, Table.title, ChainData.ChainData.title, bp.DocDBEntry.title, plotConfusion.HistSet.title, PlotAxis.title, drawEvents.HistSet.title, ContentAxis.title, file_size_ana.Node.title, axis_info.title, bp_docdb.Document.title, TB_WatchdogFx.Path.title, and WatchdogFx.Path.title.

48  def getTotEventCounts(self):
49  retVal=[self.title]
50  for tierName in self.tierData.keys():
51  tier=self.tierData[tierName]
52  if tier.state == "good":
53  retVal.append(tier.summary["total_event_count"])
54  else:
55  retVal.append(0)
56  return retVal
57 
def getTotEventCounts(self)
Definition: ChainData.py:48
def ChainData.ChainData.getTotFileSizes (   self)

Definition at line 58 of file ChainData.py.

References ChainData.ChainData.tierData, Table.title, ChainData.ChainData.title, bp.DocDBEntry.title, plotConfusion.HistSet.title, PlotAxis.title, drawEvents.HistSet.title, ContentAxis.title, file_size_ana.Node.title, axis_info.title, bp_docdb.Document.title, TB_WatchdogFx.Path.title, and WatchdogFx.Path.title.

58  def getTotFileSizes(self):
59  retVal=[self.title]
60  for tierName in self.tierData.keys():
61  tier=self.tierData[tierName]
62  if tier.state == "good":
63  totFileSize=tier.summary["total_file_size"]/(1024.*1024.*1024.)
64  retVal.append(totFileSize)
65  else:
66  retVal.append(0)
67  return retVal
68 
def getTotFileSizes(self)
Definition: ChainData.py:58
def ChainData.ChainData.loadData (   self)

Definition at line 22 of file ChainData.py.

References DefinitionData.loadDefinitionData(), and ChainData.ChainData.tierData.

22  def loadData(self):
23  for tier in self.tierData.keys():
24  tmp=self.tierData[tier]
25  try:
26  self.tierData[tier]=loadDefinitionData(tmp.name)
27  except IOError:
28  print "SAM data not available for",tier, tmp.name,"yet"
29  except EOFError:
30  print "EOF error for ",tier, tmp.name
31 
def loadDefinitionData(defname)
def loadData(self)
Definition: ChainData.py:22

Member Data Documentation

ChainData.ChainData.description
ChainData.ChainData.name
ChainData.ChainData.tierData
ChainData.ChainData.title

The documentation for this class was generated from the following file: