| Line | |
|---|
| 1 | #ifndef MARS_MAGIC
|
|---|
| 2 | #define MARS_MAGIC
|
|---|
| 3 | ///////////////////////////////////////////////////////////////////////////////
|
|---|
| 4 | //
|
|---|
| 5 | // Magic.h
|
|---|
| 6 | //
|
|---|
| 7 | // defines MAGIC base informations
|
|---|
| 8 | //
|
|---|
| 9 | ///////////////////////////////////////////////////////////////////////////////
|
|---|
| 10 | #ifndef ROOT_TROOT
|
|---|
| 11 | #include <TROOT.h>
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | //
|
|---|
| 15 | // Check here if Mars can be compiled with the present root version
|
|---|
| 16 | //
|
|---|
| 17 | #ifndef __CINT__
|
|---|
| 18 | #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,00)
|
|---|
| 19 | #error Your root version is too old to compile Mars, use root>=3.02
|
|---|
| 20 | #endif
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | //
|
|---|
| 24 | // Values for the eventloop control
|
|---|
| 25 | //
|
|---|
| 26 | const Int_t kCONTINUE = 2;
|
|---|
| 27 | const Int_t kSKIP = 2;
|
|---|
| 28 | const Int_t kERROR = 3;
|
|---|
| 29 |
|
|---|
| 30 | //
|
|---|
| 31 | // ParticleId for Monte Carlo simulation
|
|---|
| 32 | //
|
|---|
| 33 | typedef enum
|
|---|
| 34 | {
|
|---|
| 35 | kGAMMA = 1,
|
|---|
| 36 | kPROTON = 14,
|
|---|
| 37 | kHELIUM = 402,
|
|---|
| 38 | kOXYGEN = 1608,
|
|---|
| 39 | kIRON = 5626
|
|---|
| 40 | } ParticleId_t;
|
|---|
| 41 |
|
|---|
| 42 | const Double_t kRad2Deg = 180.0/3.1415926535897932384626433832795028841971693993751;
|
|---|
| 43 |
|
|---|
| 44 | //
|
|---|
| 45 | // This is the definition of a global output stream, which by
|
|---|
| 46 | // default pipes all output to the stdout
|
|---|
| 47 | //
|
|---|
| 48 |
|
|---|
| 49 | #ifdef __LINUX__
|
|---|
| 50 | class MLog;
|
|---|
| 51 | #else
|
|---|
| 52 | #include "MLog.h"
|
|---|
| 53 | #endif
|
|---|
| 54 |
|
|---|
| 55 | R__EXTERN MLog gLog;
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.