/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 | Static Public Attributes | Private Member Functions
DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms Class Reference
Inheritance diagram for DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms:
Inheritance graph
[legend]
Collaboration diagram for DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def hist
def fill
def container_hist

Public Attributes

 chanint
 name
 alg
 detector

Static Public Attributes

dictionary hists = {}

Private Member Functions

def _book

Detailed Description

Definition at line 83 of file OnlineOfflineTestRefactored.py.


Constructor & Destructor Documentation

def DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms::__init__ (   self,
  alg,
  detector,
  channelId 
)

Definition at line 87 of file OnlineOfflineTestRefactored.py.

00088                                              :
00089         super(PerChannelHistograms,self).__init__(alg,detector)
00090         chanint = channelId.fullPackedData()
00091         self.chanint = chanint
00092         self.name = "board_%d_connector_%d" % (channelId.board(),
00093                                                channelId.connector())
00094         self._book()
00095         PerChannelHistograms.hists[chanint] = self
00096         alg.info('Making a PerChannelHistograms: %x'%chanint)
00097         return


Member Function Documentation

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

Reimplemented from DataQuality::OnlineOfflineTestRefactored::Histograms.

Definition at line 98 of file OnlineOfflineTestRefactored.py.

00099                                                                           :
00100         'Override to place at unique subdirectory in file'
00101         hist = self._make_hist(name, title, nbins, vmin, vmax,xtitle,ytitle)
00102         return self._place_hist(hist,self.name+'/'+name,name)

def DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms::_book (   self) [private]

Definition at line 103 of file OnlineOfflineTestRefactored.py.

00104                    :
00105         # Prepare the empty histograms for this channel
00106 
00107         self.hist('tdc', "TDC Values", 4096,0,4096,
00108                   "TDC value","Number of TDCs")
00109         
00110         # ADC data by channel
00111         self.hist('adc', "ADC Values", 4096,0,4096,
00112                   "ADC value","Number of ADCs")
00113 
00114         return

def DataQuality::OnlineOfflineTestRefactored::PerChannelHistograms::fill (   self,
  channel 
)

Definition at line 115 of file OnlineOfflineTestRefactored.py.

00116                           :
00117         for tdc in channel.tdc():
00118             self.tdc.Fill(tdc)
00119         for adcPair in channel.adc():
00120             #adcClock = adcPair.first
00121             adc = adcPair.second
00122             self.adc.Fill(adc)
00123         return

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

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 85 of file OnlineOfflineTestRefactored.py.

Definition at line 87 of file OnlineOfflineTestRefactored.py.

Definition at line 87 of file OnlineOfflineTestRefactored.py.

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