/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
DataQuality::OnlineOfflineTestRefactored::Histograms Class Reference
Inheritance diagram for DataQuality::OnlineOfflineTestRefactored::Histograms:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def hist
def container_hist

Public Attributes

 alg
 detector

Private Member Functions

def _make_hist
def _place_hist

Detailed Description

Definition at line 48 of file OnlineOfflineTestRefactored.py.


Constructor & Destructor Documentation

def DataQuality::OnlineOfflineTestRefactored::Histograms::__init__ (   self,
  alg,
  detector 
)

Reimplemented in DataQuality::OnlineOfflineTestRefactored::ChannelSummaryHistograms, and DataQuality::OnlineOfflineTestRefactored::PerReadoutHistograms.

Definition at line 49 of file OnlineOfflineTestRefactored.py.

00050                                    :
00051         self.alg = alg
00052         self.detector = Detector(detector.fullPackedData())
00053         return


Member Function Documentation

def DataQuality::OnlineOfflineTestRefactored::Histograms::_make_hist (   self,
  name,
  title,
  nbins,
  vmin,
  vmax,
  xtitle = None,
  ytitle = None 
) [private]

Definition at line 54 of file OnlineOfflineTestRefactored.py.

00055                                                                                 :
00056         'Make and return TH1F with given parameters'
00057         hist = TH1F(name,title,nbins,vmin,vmax)
00058         if xtitle: hist.GetXaxis().SetTitle(xtitle)
00059         if ytitle: hist.GetYaxis().SetTitle(ytitle)
00060         return hist

def DataQuality::OnlineOfflineTestRefactored::Histograms::_place_hist (   self,
  hist,
  path,
  member 
) [private]
Place hist in file and as data member.
path is relative to /file1/detName/
member is name to use for member

Definition at line 61 of file OnlineOfflineTestRefactored.py.

00062                                              :
00063         '''Place hist in file and as data member.
00064         path is relative to /file1/detName/
00065         member is name to use for member
00066         '''
00067         path = "/file1/" + self.detector.detName() + "/" + path
00068         self.alg.stats[path] = hist
00069         self.__dict__[member] = hist
00070         return hist

def DataQuality::OnlineOfflineTestRefactored::Histograms::hist (   self,
  name,
  title,
  nbins,
  vmin,
  vmax,
  xtitle = None,
  ytitle = None 
)

Reimplemented in DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms.

Definition at line 71 of file OnlineOfflineTestRefactored.py.

00072                                                                           :
00073         'Make and register a simple, top level, uniquely named histogram'
00074         hist = self._make_hist(name, title, nbins, vmin, vmax,xtitle,ytitle)
00075         return self._place_hist(hist,name,name)

def DataQuality::OnlineOfflineTestRefactored::Histograms::container_hist (   self,
  container,
  name,
  title,
  nbins,
  vmin,
  vmax,
  xtitle = None,
  ytitle = None 
)

Definition at line 76 of file OnlineOfflineTestRefactored.py.

00077                                                                                                :
00078         'Make and register a non-uniquely named histogram that lives in a container'
00079         hist = self._make_hist(name, title, nbins, vmin, vmax,xtitle,ytitle)
00080         return self._place_hist(hist,container+'/'+name,name,container)


Member Data Documentation

Definition at line 49 of file OnlineOfflineTestRefactored.py.

Definition at line 49 of file OnlineOfflineTestRefactored.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:06:20 for DataQuality by doxygen 1.7.4