GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
TGo4MbsHist Class Reference

#include <TGo4MbsHist.h>

+ Inheritance diagram for TGo4MbsHist:

Public Member Functions

 TGo4MbsHist ()
 
 TGo4MbsHist (TH1 *histo)
 
 TGo4MbsHist (TFolder *histofolder, const char *filter=nullptr)
 
virtual ~TGo4MbsHist ()
 
s_his_headGetHead ()
 
Int_t * GetBuffer ()
 
Int_t GetBufLen () const
 
Int_t GetHisNum () const
 

Static Public Attributes

static const Int_t fgiLISTLEN =512
 

Private Member Functions

void PrepareHeader (TH1 *source, const char *path, s_his_head *target)
 
void ScanGo4Folder (TFolder *fold, const char *superfolders=nullptr, const char *filter=nullptr)
 
void SetValue (char *address, Stat_t value)
 

Private Attributes

s_his_head fxHistoHead
 
Int_t fiBufLen {0}
 
Int_t * fiBuffer {nullptr}
 
s_his_headfxCursor {nullptr}
 
Int_t fiHisNum {0}
 

Detailed Description

Object container for the mbs histogram buffer structure.

Definition at line 30 of file TGo4MbsHist.h.

Constructor & Destructor Documentation

◆ TGo4MbsHist() [1/3]

TGo4MbsHist::TGo4MbsHist ( )

Definition at line 29 of file TGo4MbsHist.cxx.

References fiBuffer, and fiBufLen.

◆ TGo4MbsHist() [2/3]

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 39 of file TGo4MbsHist.cxx.

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

◆ TGo4MbsHist() [3/3]

TGo4MbsHist::TGo4MbsHist ( TFolder *  histofolder,
const char *  filter = nullptr 
)

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 81 of file TGo4MbsHist.cxx.

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

◆ ~TGo4MbsHist()

TGo4MbsHist::~TGo4MbsHist ( )
virtual

Definition at line 94 of file TGo4MbsHist.cxx.

References fiBuffer.

Member Function Documentation

◆ GetBuffer()

Int_t* TGo4MbsHist::GetBuffer ( )
inline

Definition at line 48 of file TGo4MbsHist.h.

References fiBuffer.

Referenced by TGo4HisConnectorRunnable::Run().

◆ GetBufLen()

Int_t TGo4MbsHist::GetBufLen ( ) const
inline

Definition at line 49 of file TGo4MbsHist.h.

References fiBufLen.

◆ GetHead()

s_his_head* TGo4MbsHist::GetHead ( )
inline

Definition at line 47 of file TGo4MbsHist.h.

References fxHistoHead.

Referenced by TGo4HisConnectorRunnable::Run().

◆ GetHisNum()

Int_t TGo4MbsHist::GetHisNum ( ) const
inline

Definition at line 50 of file TGo4MbsHist.h.

References fiHisNum.

Referenced by TGo4HisConnectorRunnable::Run().

◆ PrepareHeader()

void TGo4MbsHist::PrepareHeader ( TH1 *  source,
const char *  path,
s_his_head target 
)
private

◆ ScanGo4Folder()

void TGo4MbsHist::ScanGo4Folder ( TFolder *  fold,
const char *  superfolders = nullptr,
const char *  filter = nullptr 
)
private

◆ SetValue()

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 130 of file TGo4MbsHist.cxx.

References s_his_head::c_dtype, and fxHistoHead.

Referenced by TGo4MbsHist().

Member Data Documentation

◆ fgiLISTLEN

const Int_t TGo4MbsHist::fgiLISTLEN =512
static

Default buffer length for list of histograms

Definition at line 53 of file TGo4MbsHist.h.

Referenced by ScanGo4Folder().

◆ fiBuffer

Int_t* TGo4MbsHist::fiBuffer {nullptr}
private

Definition at line 70 of file TGo4MbsHist.h.

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

◆ fiBufLen

Int_t TGo4MbsHist::fiBufLen {0}
private

Definition at line 69 of file TGo4MbsHist.h.

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

◆ fiHisNum

Int_t TGo4MbsHist::fiHisNum {0}
private

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

Definition at line 76 of file TGo4MbsHist.h.

Referenced by GetHisNum(), and ScanGo4Folder().

◆ fxCursor

s_his_head* TGo4MbsHist::fxCursor {nullptr}
private

Definition at line 73 of file TGo4MbsHist.h.

Referenced by ScanGo4Folder(), and TGo4MbsHist().

◆ fxHistoHead

s_his_head TGo4MbsHist::fxHistoHead
private

Definition at line 68 of file TGo4MbsHist.h.

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


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