00001 //---------------------------------------------------------------
00002 // Go4 Release Package v2.10-5 (build 21005)
00003 // 03-Nov-2005
00004 //---------------------------------------------------------------
00005 // The GSI Online Offline Object Oriented (Go4) Project
00006 // Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 // Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact: http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4MBSHIST_H
00017 #define TGO4MBSHIST_H
00018
00019 #include "TObject.h"
00020 #include "TH1.h"
00021
00022 extern "C"
00023 {
00024 #include "MbsAPI/s_his_head.h"
00025 }
00026
00027 class TFolder;
00028
00033 class TGo4MbsHist : public TObject {
00034 public:
00035
00036 virtual ~TGo4MbsHist();
00037
00038 TGo4MbsHist();
00039
00043 TGo4MbsHist(TH1* histo);
00044
00048 TGo4MbsHist(TFolder* histofolder, const Text_t* filter=0);
00049
00050 s_his_head* GetHead() { return &fxHistoHead; }
00051 Int_t* GetBuffer() { return fiBuffer; }
00052 Int_t GetBufLen() const { return fiBufLen; }
00053 Int_t GetHisNum() const { return fiHisNum; }
00054
00056 static const Int_t fgiLISTLEN;
00057
00058 private:
00059
00061 void PrepareHeader(TH1* source, const char* path, s_his_head* target);
00062
00065 void ScanGo4Folder(TFolder* fold, const char* superfolders=0, const Text_t* filter=0);
00066
00069 void SetValue(char* address, Stat_t value);
00070
00071 s_his_head fxHistoHead;
00072 Int_t fiBufLen;
00073 Int_t* fiBuffer;
00074
00075 /* Points to next histogram header in buffer in case of nameslist */
00076 s_his_head* fxCursor;
00077
00079 Int_t fiHisNum;
00080
00081 ClassDef(TGo4MbsHist,1)
00082 };
00083
00084 #endif //TGO4MBSHIST_H
00085
00086 //----------------------------END OF GO4 SOURCE FILE ---------------------
1.2.15