source: branches/MarsWobble/mbase/MAGIC.h@ 18168

Last change on this file since 18168 was 17307, checked in by tbretz, 11 years ago
Added wrappers for some defines to the MARS namespace to make that available in rootlogon to pipe that through AcLiC as define to ofits.h
File size: 3.4 KB
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,05,06)
19#error Your root version is too old to compile Mars, use root>=3.05/06
20#endif
21#endif
22
23#ifndef R__FOR_EACH
24#define R__FOR_EACH ForEach
25#endif
26
27
28//
29// Values for the eventloop control
30//
31const Int_t kCONTINUE = 2;
32const Int_t kSKIP = 2;
33const Int_t kERROR = 3;
34
35const Double_t kRad2Deg = 180.0/3.1415926535897932384626433832795028841971693993751;
36
37namespace MARS
38{
39 bool CheckRootVer();
40 TString GetPackageName();
41 TString GetPackageVersion();
42 TString GetRevision();
43}
44
45// Check for example: http://www.utf8-zeichentabelle.de
46namespace UTF8
47{
48 const char *const kCent = "\xc2\xa2";
49 const char *const kPound = "\xc2\xa3";
50 const char *const kYen = "\xc2\xa5";
51 const char *const kParagraph = "\xc2\xa7";
52 const char *const kCopyright = "\xc2\xa9";
53 const char *const kRegistered = "\xc2\xae";
54 const char *const kDeg = "\xc2\xb0";
55 const char *const kPlusMinus = "\xc2\xb1";
56 const char *const kSquare = "\xc2\xb2";
57 const char *const kThird = "\xc2\xb3";
58 const char *const kMu = "\xc2\xb5";
59 const char *const kDot = "\xc2\xb7";
60 const char *const kQuarter = "\xc2\xbc";
61 const char *const kHalf = "\xc2\xbd";
62 const char *const kSmaller = "\xc2\xab";
63 const char *const kLarger = "\xc2\xbb";
64 const char *const kThreeFourth = "\xc2\xbe";
65 const char *const kTimes = "\xc3\x97";
66 const char *const kCapGamma = "\xce\x93";
67 const char *const kCapDelta = "\xce\x94";
68 const char *const kCapSigma = "\xce\xa3";
69 const char *const kCapTheta = "\xce\x98";
70 const char *const kCapLambda = "\xce\x9b";
71 const char *const kCapXi = "\xce\x9e";
72 const char *const kCapPi = "\xce\xa0";
73 const char *const kCapPhi = "\xce\xa6";
74 const char *const kCapPsi = "\xce\xa8";
75 const char *const kCapOmega = "\xce\xa9";
76 const char *const kAlpha = "\xce\xb1";
77 const char *const kBata = "\xce\xb2";
78 const char *const kGamma = "\xce\xb3";
79 const char *const kDelta = "\xce\xb4";
80 const char *const kEpsilon = "\xce\xb5";
81 const char *const kZeta = "\xce\xb6";
82 const char *const kEta = "\xce\xb7";
83 const char *const kTheta = "\xce\xb8";
84 const char *const kIota = "\xce\xb9";
85 const char *const kKappa = "\xce\xba";
86 const char *const kLambda = "\xce\xbb";
87 const char *const kNu = "\xce\xbd";
88 const char *const kXi = "\xce\xbe";
89 const char *const kOmicron = "\xce\xbf";
90 const char *const kPi = "\xce\xc0";
91 const char *const kRho = "\xce\xc1";
92 const char *const kSigma = "\xce\xc3";
93 const char *const kTau = "\xce\xc4";
94 const char *const kPhi = "\xce\xc6";
95 const char *const kChi = "\xce\xc7";
96 const char *const kPsi = "\xce\xc8";
97 const char *const kOmega = "\xce\xc9";
98 const char *const kEuro = "\xe2\x82\xac";
99}
100
101#endif
Note: See TracBrowser for help on using the repository browser.