Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4MbsHist Class Reference

Object container for the mbs histogram buffer structure. More...

#include <TGo4MbsHist.h>

List of all members.

Public Methods

virtual ~TGo4MbsHist ()
 TGo4MbsHist ()
 TGo4MbsHist (TH1 *histo)
 Create queue object from a single histogram in this case, histogram header will fill s_his_head, and data is copied to fiBuffer. More...

 TGo4MbsHist (TFolder *histofolder, const Text_t *filter=0)
 Create queue object with header information from a folder of histograms. More...

s_his_headGetHead ()
Int_t * GetBuffer ()
Int_t GetBufLen () const
Int_t GetHisNum () const

Static Public Attributes

const Int_t fgiLISTLEN = 512
 Default buffer length for list of histograms. More...


Private Methods

void PrepareHeader (TH1 *source, const char *path, s_his_head *target)
 extract header information from histogram to mbs header structur. More...

void ScanGo4Folder (TFolder *fold, const char *superfolders=0, const Text_t *filter=0)
 Scan go4 folders containing histograms and subfolders of histograms header information is exctracted to buffer. More...

void SetValue (char *address, Stat_t value)
 set value to adress in histogram buffer. More...


Private Attributes

s_his_head fxHistoHead
Int_t fiBufLen
Int_t * fiBuffer
s_his_headfxCursor
Int_t fiHisNum
 Number of histogram headers (1 in case of single his). More...


Detailed Description

Object container for the mbs histogram buffer structure.

Definition at line 33 of file TGo4MbsHist.h.


Constructor & Destructor Documentation

TGo4MbsHist::~TGo4MbsHist   [virtual]
 

Definition at line 97 of file TGo4MbsHist.cxx.

References fiBuffer.

TGo4MbsHist::TGo4MbsHist  
 

Definition at line 32 of file TGo4MbsHist.cxx.

References fiBuffer, and fiBufLen.

TGo4MbsHist::TGo4MbsHist TH1 *    histo
 

Create queue object from a single histogram in this case, histogram header will fill s_his_head, and data is copied to fiBuffer.

Definition at line 38 of file TGo4MbsHist.cxx.

References fiBuffer, fiBufLen, fxHistoHead, i, PrepareHeader(), and SetValue().

TGo4MbsHist::TGo4MbsHist TFolder *    histofolder,
const Text_t *    filter = 0
 

Create queue object with header information from a folder of histograms.

headers of histograms will be put into fiBuffer, the s_his_head is empty. String filter gives expression to filter out histograms by name.

Definition at line 86 of file TGo4MbsHist.cxx.

References fiBuffer, fiBufLen, fxCursor, and ScanGo4Folder().


Member Function Documentation

s_his_head* TGo4MbsHist::GetHead   [inline]
 

Definition at line 50 of file TGo4MbsHist.h.

References fxHistoHead.

Referenced by TGo4HisConnectorRunnable::Run().

Int_t* TGo4MbsHist::GetBuffer   [inline]
 

Definition at line 51 of file TGo4MbsHist.h.

References fiBuffer.

Referenced by TGo4HisConnectorRunnable::Run().

Int_t TGo4MbsHist::GetBufLen   const [inline]
 

Definition at line 52 of file TGo4MbsHist.h.

References fiBufLen.

Int_t TGo4MbsHist::GetHisNum   const [inline]
 

Definition at line 53 of file TGo4MbsHist.h.

References fiHisNum.

Referenced by TGo4HisConnectorRunnable::Run().

void TGo4MbsHist::PrepareHeader TH1 *    source,
const char *    path,
s_his_head   target
[private]
 

extract header information from histogram to mbs header structur.

Definition at line 105 of file TGo4MbsHist.cxx.

References s_his_head::c_clear_date, s_his_head::c_data_time_cre, s_his_head::c_dtype, s_his_head::c_lettering_1, s_his_head::c_lettering_2, s_his_head::c_lettering_res, s_his_head::c_name, s_his_head::l_bins_1, s_his_head::l_bins_2, s_his_head::r_limits_low, s_his_head::r_limits_low_2, s_his_head::r_limits_up, and s_his_head::r_limits_up_2.

Referenced by ScanGo4Folder(), and TGo4MbsHist().

void TGo4MbsHist::ScanGo4Folder TFolder *    fold,
const char *    superfolders = 0,
const Text_t *    filter = 0
[private]
 

Scan go4 folders containing histograms and subfolders of histograms header information is exctracted to buffer.

filter may be applied

Definition at line 167 of file TGo4MbsHist.cxx.

References TGo4AnalysisObjectManager::fgcANALYSISFOLDER, TGo4AnalysisObjectManager::fgcCANVFOLDER, TGo4AnalysisObjectManager::fgcCONDFOLDER, TGo4AnalysisObjectManager::fgcDYNFOLDER, TGo4AnalysisObjectManager::fgcPARAFOLDER, TGo4AnalysisObjectManager::fgcPICTFOLDER, TGo4AnalysisObjectManager::fgcTREEFOLDER, fgiLISTLEN, TGo4ThreadManager::fguTEXTLENGTH, fiBuffer, fiBufLen, fiHisNum, fxCursor, n, and PrepareHeader().

Referenced by TGo4MbsHist().

void TGo4MbsHist::SetValue char *    address,
Stat_t    value
[private]
 

set value to adress in histogram buffer.

Check histogram format in header for correct cast to int or float

Definition at line 152 of file TGo4MbsHist.cxx.

References s_his_head::c_dtype, and fxHistoHead.

Referenced by TGo4MbsHist().


Member Data Documentation

const Int_t TGo4MbsHist::fgiLISTLEN = 512 [static]
 

Default buffer length for list of histograms.

Definition at line 30 of file TGo4MbsHist.cxx.

Referenced by ScanGo4Folder().

s_his_head TGo4MbsHist::fxHistoHead [private]
 

Definition at line 71 of file TGo4MbsHist.h.

Referenced by GetHead(), SetValue(), and TGo4MbsHist().

Int_t TGo4MbsHist::fiBufLen [private]
 

Definition at line 72 of file TGo4MbsHist.h.

Referenced by GetBufLen(), ScanGo4Folder(), and TGo4MbsHist().

Int_t* TGo4MbsHist::fiBuffer [private]
 

Definition at line 73 of file TGo4MbsHist.h.

Referenced by GetBuffer(), ScanGo4Folder(), TGo4MbsHist(), and ~TGo4MbsHist().

s_his_head* TGo4MbsHist::fxCursor [private]
 

Definition at line 76 of file TGo4MbsHist.h.

Referenced by ScanGo4Folder(), and TGo4MbsHist().

Int_t TGo4MbsHist::fiHisNum [private]
 

Number of histogram headers (1 in case of single his).

Definition at line 79 of file TGo4MbsHist.h.

Referenced by GetHisNum(), and ScanGo4Folder().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:47 2005 for Go4-v2.10-5 by doxygen1.2.15