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

List of all members.

Public Member Functions

def __init__
def fill_channelId
def fill_readout
def norm
def hist
def container_hist

Public Attributes

 lastReadoutTime
 alg
 detector

Static Public Attributes

dictionary hists = {}

Private Member Functions

def _book

Detailed Description

Definition at line 154 of file OnlineOfflineTestRefactored.py.


Constructor & Destructor Documentation

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

Reimplemented from DataQuality::OnlineOfflineTestRefactored::Histograms.

Definition at line 158 of file OnlineOfflineTestRefactored.py.

00159                                    :
00160         super(PerReadoutHistograms,self).__init__(alg,detector)
00161         self.lastReadoutTime = None
00162         self._book()
00163         PerReadoutHistograms.hists[detector.fullPackedData()] = self
00164         return


Member Function Documentation

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

Definition at line 165 of file OnlineOfflineTestRefactored.py.

00166                    :
00167         'Internal: book all histograms'
00168 
00169         # Number of hit channels in each readout
00170         self.hist("nChannels", "Number of Hit Channels", 250,0,250,
00171                    "Number of Hit Channels","Number of Triggered Readouts")
00172 
00173         # Number of Triggers by type
00174         self.hist("triggerType", "Trigger Type", 4096,0,4096,
00175                    "Trigger Type","Number of Triggered Readouts")
00176 
00177         # Time Between Triggered Readout
00178         self.hist("dT_trigger", "Time between triggers [s]", 1000,0,1,
00179                    "Time Between Triggered Readouts [s]","Number of Triggered Readouts / 1 ms")
00180         
00181         # Hit Rate by channel
00182         self.hist("hitRate", "Hit Rate by channel", 300,0,300,
00183                    "Channel Index (Board*16 + Connector)", "Number of Hits / Number of Triggered Readouts")
00184         return

def DataQuality::OnlineOfflineTestRefactored::PerReadoutHistograms::fill_channelId (   self,
  channelId 
)

Definition at line 185 of file OnlineOfflineTestRefactored.py.

00186                                       :
00187         ci = channel_index(channelId)
00188         self.hitRate.Fill(ci)

def DataQuality::OnlineOfflineTestRefactored::PerReadoutHistograms::fill_readout (   self,
  readout 
)

Definition at line 189 of file OnlineOfflineTestRefactored.py.

00190                                   :
00191         self.nChannels.Fill(len(readout.channelReadout()))
00192         self.triggerType.Fill(readout.triggerType())
00193 
00194         triggerTime = readout.triggerTime()
00195         if self.lastReadoutTime != None:
00196             dt = TimeStamp(triggerTime)
00197             dt.Subtract( self.lastReadoutTime )
00198             self.dT_trigger.Fill(dt.GetSeconds())
00199             pass
00200         self.lastReadoutTime = TimeStamp(triggerTime)
00201         return

def DataQuality::OnlineOfflineTestRefactored::PerReadoutHistograms::norm (   self)

Definition at line 202 of file OnlineOfflineTestRefactored.py.

00203                   :
00204         self.hitRate.Scale(1.0 / self.nChannels.GetEntries())

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

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 
) [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 156 of file OnlineOfflineTestRefactored.py.

Definition at line 158 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