GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MbsHist.h
Go to the documentation of this file.
1 // $Id: TGo4MbsHist.h 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4MBSHIST_H
15 #define TGO4MBSHIST_H
16 
17 #include "TObject.h"
18 #include "Htypes.h"
19 
20 extern "C"
21 {
22 #include "s_his_head.h"
23 }
24 
25 class TFolder;
26 class TH1;
27 
32 class TGo4MbsHist : public TObject {
33  public:
34 
35  TGo4MbsHist();
36 
40  TGo4MbsHist(TH1* histo);
41 
45  TGo4MbsHist(TFolder* histofolder, const char* filter=0);
46 
47  virtual ~TGo4MbsHist();
48 
49  s_his_head* GetHead() { return &fxHistoHead; }
50  Int_t* GetBuffer() { return fiBuffer; }
51  Int_t GetBufLen() const { return fiBufLen; }
52  Int_t GetHisNum() const { return fiHisNum; }
53 
55  static const Int_t fgiLISTLEN;
56 
57  private:
58 
60  void PrepareHeader(TH1* source, const char* path, s_his_head* target);
61 
64  void ScanGo4Folder(TFolder* fold, const char* superfolders=0, const char* filter=0);
65 
68  void SetValue(char* address, Stat_t value);
69 
71  Int_t fiBufLen;
72  Int_t* fiBuffer;
73 
74  /* Points to next histogram header in buffer in case of nameslist */
76 
78  Int_t fiHisNum;
79 };
80 
81 #endif //TGO4MBSHIST_H
Int_t fiBufLen
Definition: TGo4MbsHist.h:71
static const Int_t fgiLISTLEN
Definition: TGo4MbsHist.h:55
void SetValue(char *address, Stat_t value)
Int_t fiHisNum
Definition: TGo4MbsHist.h:78
void PrepareHeader(TH1 *source, const char *path, s_his_head *target)
Int_t GetHisNum() const
Definition: TGo4MbsHist.h:52
Int_t GetBufLen() const
Definition: TGo4MbsHist.h:51
virtual ~TGo4MbsHist()
s_his_head * fxCursor
Definition: TGo4MbsHist.h:75
s_his_head * GetHead()
Definition: TGo4MbsHist.h:49
void ScanGo4Folder(TFolder *fold, const char *superfolders=0, const char *filter=0)
s_his_head fxHistoHead
Definition: TGo4MbsHist.h:70
Int_t * GetBuffer()
Definition: TGo4MbsHist.h:50
Int_t * fiBuffer
Definition: TGo4MbsHist.h:72