GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4MbsHist Class Reference

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

#include <TGo4MbsHist.h>

Inheritance diagram for TGo4MbsHist:

Public Member Functions

 TGo4MbsHist ()
 TGo4MbsHist ()
 TGo4MbsHist (TFolder *histofolder, const char *filter=nullptr)
 Create queue object with header information from a folder of histograms.
 TGo4MbsHist (TFolder *histofolder, const char *filter=nullptr)
 Create queue object with header information from a folder of histograms.
 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.
 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.
virtual ~TGo4MbsHist ()
virtual ~TGo4MbsHist ()
Int_t * GetBuffer ()
Int_t * GetBuffer ()
Int_t GetBufLen () const
Int_t GetBufLen () const
s_his_headGetHead ()
s_his_headGetHead ()
Int_t GetHisNum () const
Int_t GetHisNum () const

Static Public Attributes

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

Private Member Functions

void PrepareHeader (TH1 *source, const char *path, s_his_head *target)
 extract header information from histogram to mbs header structur
void PrepareHeader (TH1 *source, const char *path, s_his_head *target)
 extract header information from histogram to mbs header structur
void ScanGo4Folder (TFolder *fold, const char *superfolders=nullptr, const char *filter=nullptr)
 Scan go4 folders containing histograms and subfolders of histograms header information is exctracted to buffer.
void ScanGo4Folder (TFolder *fold, const char *superfolders=nullptr, const char *filter=nullptr)
 Scan go4 folders containing histograms and subfolders of histograms header information is exctracted to buffer.
void SetValue (char *address, Stat_t value)
 set value to adress in histogram buffer.
void SetValue (char *address, Stat_t value)
 set value to adress in histogram buffer.

Private Attributes

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

Detailed Description

Object container for the mbs histogram buffer structure.

Definition at line 30 of file TGo4MbsHist.h.

Constructor & Destructor Documentation

◆ TGo4MbsHist() [1/6]

TGo4MbsHist::TGo4MbsHist ( )

Definition at line 29 of file TGo4MbsHist.cxx.

References fiBuffer, fiBufLen, fiHisNum, and fxCursor.

◆ TGo4MbsHist() [2/6]

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, fiHisNum, fxCursor, fxHistoHead, PrepareHeader(), and SetValue().

◆ TGo4MbsHist() [3/6]

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 fgiLISTLEN, fiBuffer, fiBufLen, fiHisNum, fxCursor, and ScanGo4Folder().

◆ ~TGo4MbsHist() [1/2]

TGo4MbsHist::~TGo4MbsHist ( )
virtual

Definition at line 94 of file TGo4MbsHist.cxx.

References fiBuffer.

◆ TGo4MbsHist() [4/6]

TGo4MbsHist::TGo4MbsHist ( )

◆ TGo4MbsHist() [5/6]

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.

◆ TGo4MbsHist() [6/6]

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.

◆ ~TGo4MbsHist() [2/2]

virtual TGo4MbsHist::~TGo4MbsHist ( )
virtual

Member Function Documentation

◆ GetBuffer() [1/2]

Int_t * TGo4MbsHist::GetBuffer ( )
inline

Definition at line 48 of file TGo4MbsHist.h.

References fiBuffer.

Referenced by TGo4HisConnectorRunnable::Run().

◆ GetBuffer() [2/2]

Int_t * TGo4MbsHist::GetBuffer ( )
inline

Definition at line 48 of file TGo4MbsHist.h.

References fiBuffer.

◆ GetBufLen() [1/2]

Int_t TGo4MbsHist::GetBufLen ( ) const
inline

Definition at line 49 of file TGo4MbsHist.h.

References fiBufLen.

◆ GetBufLen() [2/2]

Int_t TGo4MbsHist::GetBufLen ( ) const
inline

Definition at line 49 of file TGo4MbsHist.h.

References fiBufLen.

◆ GetHead() [1/2]

s_his_head * TGo4MbsHist::GetHead ( )
inline

Definition at line 47 of file TGo4MbsHist.h.

References fxHistoHead.

Referenced by TGo4HisConnectorRunnable::Run().

◆ GetHead() [2/2]

s_his_head * TGo4MbsHist::GetHead ( )
inline

Definition at line 47 of file TGo4MbsHist.h.

References fxHistoHead.

◆ GetHisNum() [1/2]

Int_t TGo4MbsHist::GetHisNum ( ) const
inline

Definition at line 50 of file TGo4MbsHist.h.

References fiHisNum.

Referenced by TGo4HisConnectorRunnable::Run().

◆ GetHisNum() [2/2]

Int_t TGo4MbsHist::GetHisNum ( ) const
inline

Definition at line 50 of file TGo4MbsHist.h.

References fiHisNum.

◆ PrepareHeader() [1/2]

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

◆ PrepareHeader() [2/2]

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

extract header information from histogram to mbs header structur

◆ ScanGo4Folder() [1/2]

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

◆ ScanGo4Folder() [2/2]

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

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

filter may be applied

◆ SetValue() [1/2]

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 fxHistoHead.

Referenced by TGo4MbsHist().

◆ SetValue() [2/2]

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

References fiBufLen, and fxHistoHead.

Field 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 TGo4MbsHist(), and ScanGo4Folder().

◆ fiBuffer

Int_t * TGo4MbsHist::fiBuffer {nullptr}
private

◆ fiBufLen

Int_t TGo4MbsHist::fiBufLen {0}
private

Definition at line 69 of file TGo4MbsHist.h.

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

◆ 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 TGo4MbsHist(), TGo4MbsHist(), TGo4MbsHist(), GetHisNum(), and ScanGo4Folder().

◆ fxCursor

s_his_head * TGo4MbsHist::fxCursor {nullptr}
private

Definition at line 73 of file TGo4MbsHist.h.

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

◆ fxHistoHead

s_his_head TGo4MbsHist::fxHistoHead
private

Definition at line 68 of file TGo4MbsHist.h.

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


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