#include <TGo4MbsRandom.h>
Inheritance diagram for TGo4MbsRandom:
Public Member Functions | |
TGo4MbsRandom (const char *name) | |
TGo4MbsRandom () | |
TGo4MbsRandom (TGo4MbsRandomParameter *par) | |
virtual | ~TGo4MbsRandom () |
virtual Int_t | Close () |
Close the file or connection. | |
virtual Int_t | Open () |
Open the file or connection. | |
virtual Int_t | NextEvent () |
Requests the next event from mbs source. | |
virtual s_bufhe * | GetBufferHeader () |
User access to current event buffer header. | |
Private Member Functions | |
void | get_rand_seed () |
obtains seed for generator | |
double | gauss_rnd (double mean, double sigma) |
double | get_int (double low, double high) |
long | rand_event (long choice) |
Private Attributes | |
Int_t | fiDLen |
total length of current random event in words (Short_t) | |
Int_t | fiNumSub |
Number of subevents per event. | |
Int_t | fiNumDat |
Number of data longwords per subevent. | |
Short_t * | fxEventMem |
Memory allocated for the current random event. | |
UInt_t | fuSeed |
Static Private Attributes | |
static double | fgdPeak [] = { 200., 302., 653., 1024., 2800.} |
static double | fgdSigma [] = { 10., 22., 153., 104., 38.} |
static double | fgdPeak2 [] = { 300., 402., 853., 2000., 3024.} |
static double | fgdSigma2 [] = { 22., 153., 104., 100., 20.} |
Produces events with 2 subevents containing gaussian spectra
Definition at line 31 of file TGo4MbsRandom.h.
|
Definition at line 58 of file TGo4MbsRandom.cxx. References TGo4Log::Debug(), Open(), and TRACE. |
|
Definition at line 71 of file TGo4MbsRandom.cxx. References TRACE. |
|
Definition at line 40 of file TGo4MbsRandom.cxx. References TGo4Log::Debug(), Open(), and TRACE. |
|
Definition at line 78 of file TGo4MbsRandom.cxx. |
|
Close the file or connection.
Reimplemented from TGo4MbsSource. Definition at line 153 of file TGo4MbsRandom.cxx. References TGo4MbsSource::fbIsOpen, TGo4MbsSource::fxEvent, fxEventMem, and TRACE. Referenced by ~TGo4MbsRandom(). |
|
Open the file or connection.
Reimplemented from TGo4MbsSource. Definition at line 130 of file TGo4MbsRandom.cxx. References TGo4MbsSource::fbIsOpen, fiDLen, fiNumDat, fiNumSub, TGo4MbsSource::fxEvent, fxEventMem, get_rand_seed(), s_ve10_1::i_subtype, s_ve10_1::i_trigger, s_ve10_1::i_type, s_ve10_1::l_count, s_ve10_1::l_dlen, and TRACE. Referenced by TGo4MbsRandom(). |
|
Requests the next event from mbs source. Returns event status value. Reimplemented from TGo4MbsSource. Definition at line 86 of file TGo4MbsRandom.cxx. References fiDLen, fiNumDat, fiNumSub, TGo4MbsSource::fxEvent, get_int(), s_ves10_1::h_control, s_ves10_1::h_subcrate, s_ves10_1::i_procid, s_ves10_1::i_subtype, s_ves10_1::i_type, s_ve10_1::l_count, s_ves10_1::l_dlen, s_ve10_1::l_dlen, rand_event(), and TRACE. |
|
User access to current event buffer header. dummy here! Reimplemented from TGo4MbsSource. Definition at line 266 of file TGo4MbsRandom.cxx. |
|
obtains seed for generator
Definition at line 165 of file TGo4MbsRandom.cxx. Referenced by Open(). |
|
Definition at line 178 of file TGo4MbsRandom.cxx. Referenced by rand_event(). |
|
Definition at line 219 of file TGo4MbsRandom.cxx. Referenced by NextEvent(), and rand_event(). |
|
Definition at line 226 of file TGo4MbsRandom.cxx. References fgdPeak, fgdPeak2, fgdSigma, fgdSigma2, fuSeed, gauss_rnd(), get_int(), NUM_PEAK, p_dExponential(), p_dNormal(), and p_dUniform(). Referenced by NextEvent(). |
|
total length of current random event in words (Short_t)
Definition at line 58 of file TGo4MbsRandom.h. Referenced by NextEvent(), and Open(). |
|
Number of subevents per event.
Definition at line 61 of file TGo4MbsRandom.h. Referenced by NextEvent(), and Open(). |
|
Number of data longwords per subevent.
Definition at line 64 of file TGo4MbsRandom.h. Referenced by NextEvent(), and Open(). |
|
Memory allocated for the current random event.
Definition at line 67 of file TGo4MbsRandom.h. |
|
Definition at line 69 of file TGo4MbsRandom.h. Referenced by rand_event(). |
|
Definition at line 34 of file TGo4MbsRandom.cxx. Referenced by rand_event(). |
|
Definition at line 35 of file TGo4MbsRandom.cxx. Referenced by rand_event(). |
|
Definition at line 36 of file TGo4MbsRandom.cxx. Referenced by rand_event(). |
|
Definition at line 37 of file TGo4MbsRandom.cxx. Referenced by rand_event(). |