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

TGo4MbsRandom.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 TGO4MBSRANDOM_H
00017 #define TGO4MBSRANDOM_H
00018 
00019 #include "TGo4MbsSource.h"
00020 
00021 #define NUM_PEAK 5
00022 
00023 class TGo4MbsRandomParameter;
00024 
00031 class TGo4MbsRandom : public TGo4MbsSource {
00032   public:
00033 
00034     TGo4MbsRandom(const char* name);
00035 
00036     TGo4MbsRandom();
00037 
00038     TGo4MbsRandom(TGo4MbsRandomParameter* par);
00039 
00040     virtual ~TGo4MbsRandom();
00041 
00043     virtual Int_t Close();
00044 
00046     virtual Int_t Open();
00047 
00050     virtual Int_t NextEvent();
00051 
00053     virtual s_bufhe * GetBufferHeader();
00054 
00055   private:
00056 
00058     Int_t fiDLen;
00059 
00061     Int_t fiNumSub;
00062 
00064     Int_t fiNumDat;
00065 
00067     Short_t* fxEventMem; 
00068 
00069     UInt_t fuSeed;
00070 
00072     void get_rand_seed();
00073 
00074     double gauss_rnd(double mean, double sigma);
00075 
00076     double get_int(double low, double high);
00077 
00078     long rand_event(long choice);
00079 
00080     static double fgdPeak[];
00081     static double fgdSigma[];
00082     static double fgdPeak2[];
00083     static double fgdSigma2[];
00084 
00085   ClassDef(TGo4MbsRandom,1)
00086 };
00087 
00088 #endif //TGO4MBSRANDOM_H
00089 
00090 //----------------------------END OF GO4 SOURCE FILE ---------------------

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