Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
File size:
1.8 KB
|
Line | |
---|
1 | // $Id: EsafRandom.hh 2050 2005-07-22 10:50:53Z thea $ |
---|
2 | // M.Pallavicini created Feb, 11 2002 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EsafRandom * |
---|
8 | * Package: Base * |
---|
9 | * Coordinator: Marco.Pallavicini * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | |
---|
14 | #ifndef __EUSORANDOM_HH_ |
---|
15 | #define __EUSORANDOM_HH_ |
---|
16 | |
---|
17 | #include "euso.hh" |
---|
18 | #include "EsafConfigurable.hh" |
---|
19 | #include "EsafMsgSource.hh" |
---|
20 | #include "TRandom2.h" |
---|
21 | #include "TRandom3.h" |
---|
22 | |
---|
23 | //////////////////////////////////////////////////////////////////////////////// |
---|
24 | // // |
---|
25 | // EsafRandom // |
---|
26 | // // |
---|
27 | // Esaf random numbers generators manager // |
---|
28 | // // |
---|
29 | //////////////////////////////////////////////////////////////////////////////// |
---|
30 | |
---|
31 | class EsafRandom : public EsafConfigurable, public EsafMsgSource { |
---|
32 | public: |
---|
33 | virtual ~EsafRandom(); |
---|
34 | |
---|
35 | static TRandom* Get(); |
---|
36 | |
---|
37 | inline TRandom* GetRandom() { return fRndm; } |
---|
38 | |
---|
39 | EsafConfigClass(General,EsafRandom) |
---|
40 | |
---|
41 | private: |
---|
42 | EsafRandom(); |
---|
43 | static EsafRandom *fgMe; |
---|
44 | TRandom *fRndm; |
---|
45 | ClassDef(EsafRandom,0) |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* __EUSORANDOM_HH_ */ |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.