Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4MbsHist.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 "Htypes.h"
00021 
00022 extern "C"
00023 {
00024 #include "s_his_head.h"
00025 }
00026 
00027 class TFolder;
00028 class TH1;
00029 
00034 class TGo4MbsHist : public TObject {
00035    public:
00036 
00037       TGo4MbsHist();
00038 
00042       TGo4MbsHist(TH1* histo);
00043 
00047       TGo4MbsHist(TFolder* histofolder, const char* filter=0);
00048 
00049       virtual ~TGo4MbsHist();
00050 
00051       s_his_head* GetHead() { return &fxHistoHead; }
00052       Int_t* GetBuffer() { return fiBuffer; }
00053       Int_t GetBufLen() const { return fiBufLen; }
00054       Int_t GetHisNum() const { return fiHisNum; }
00055 
00057       static const Int_t fgiLISTLEN;  
00058 
00059    private:
00060 
00062       void PrepareHeader(TH1* source, const char* path, s_his_head* target);
00063 
00066       void ScanGo4Folder(TFolder* fold, const char* superfolders=0, const char* filter=0);
00067 
00070       void SetValue(char* address, Stat_t value);
00071 
00072       s_his_head fxHistoHead;
00073       Int_t   fiBufLen;
00074       Int_t*  fiBuffer; 
00075 
00076       /* Points to next histogram header in buffer in case of nameslist */
00077       s_his_head* fxCursor; 
00078 
00080       Int_t fiHisNum;
00081 };
00082 
00083 #endif //TGO4MBSHIST_H
00084 
00085 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:26 2008 for Go4-v3.04-1 by  doxygen 1.4.2