| 1 | #ifndef MAGIC_H
|
|---|
| 2 | #define MAGIC_H
|
|---|
| 3 | ///////////////////////////////////////////////////////////////////////////////
|
|---|
| 4 | //
|
|---|
| 5 | // Magic.h
|
|---|
| 6 | //
|
|---|
| 7 | // defines MAGIC base informations
|
|---|
| 8 | //
|
|---|
| 9 | ///////////////////////////////////////////////////////////////////////////////
|
|---|
| 10 |
|
|---|
| 11 | #include <TROOT.h>
|
|---|
| 12 |
|
|---|
| 13 | //
|
|---|
| 14 | // Magic number to detect the magic file type
|
|---|
| 15 | //
|
|---|
| 16 | const UShort_t kMagicNumber = 0xc0c0;
|
|---|
| 17 |
|
|---|
| 18 | //
|
|---|
| 19 | // Values for the eventloop control
|
|---|
| 20 | //
|
|---|
| 21 | const Int_t kCONTINUE = 2;
|
|---|
| 22 |
|
|---|
| 23 | //
|
|---|
| 24 | // Number of the Pixels in the Camera
|
|---|
| 25 | //
|
|---|
| 26 | const Int_t kCAMERA_PIXELS = 577;
|
|---|
| 27 |
|
|---|
| 28 | //
|
|---|
| 29 | // Number of the Slices of one Fadc. Be carefull this is the number of
|
|---|
| 30 | // slices for one gain branch. We sample two times this number.
|
|---|
| 31 | //
|
|---|
| 32 | const Int_t kFADC_SLICES = 15;
|
|---|
| 33 |
|
|---|
| 34 | //
|
|---|
| 35 | // ParticleId for Monte Carlo simulation
|
|---|
| 36 | //
|
|---|
| 37 | const Int_t kGAMMA = 0;
|
|---|
| 38 | const Int_t kPROTON = 14;
|
|---|
| 39 | const Int_t kHELIUM = 402;
|
|---|
| 40 | const Int_t kOXIGEN = 1608;
|
|---|
| 41 | const Int_t kIRON = 5626;
|
|---|
| 42 |
|
|---|
| 43 | //
|
|---|
| 44 | // nummber of ADC conversions per pixel
|
|---|
| 45 | //
|
|---|
| 46 | const Int_t kMAX_ADC = 30;
|
|---|
| 47 |
|
|---|
| 48 | //
|
|---|
| 49 | //camera dimensions and definitions
|
|---|
| 50 | //
|
|---|
| 51 | const Float_t kPIXEL_DIST = 10.0; //cm
|
|---|
| 52 | const Int_t kCAMERA_COLOR = 13; //Background light grey
|
|---|
| 53 | const Int_t kDEFAULT_COLOR = 1; //black
|
|---|
| 54 | const Int_t kPIXEL_LINE_COLOR = 15; //dark grey
|
|---|
| 55 | const Int_t kCOLORTABLE_START = 18; //Begin of colortable
|
|---|
| 56 | const Int_t kMAX_PH_EL = 500; //upper limit for colortable
|
|---|
| 57 |
|
|---|
| 58 | //
|
|---|
| 59 | // THE MAGIC RUNTIME DATABASE
|
|---|
| 60 | //
|
|---|
| 61 | //class MRuntimeDb;
|
|---|
| 62 | //extern MRuntimeDb *gMagic;
|
|---|
| 63 |
|
|---|
| 64 | #endif
|
|---|