MCBooster  1.0.1
Tool to generate MC phase space samples in parallel.
GTypes.h
Go to the documentation of this file.
1 /*
2  * GTypes.h
3  *
4  * Created on : Feb 25, 2016
5  * Author: Antonio Augusto Alves Junior
6  */
7 
8 /*
9  * This file is part of MCBooster.
10  *
11  * MCBooster is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * MCBooster is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with MCBooster. If not, see <http://www.gnu.org/licenses/>.
23  */
24 
25 
26 #ifndef GTYPES_H_
27 #define GTYPES_H_
28 
29 namespace MCBooster
30 {
31 //---- types -------------------------------------------------------------------
32 
33 typedef char GChar_t;
34 typedef unsigned char GUChar_t;
35 typedef short GShort_t;
36 typedef unsigned short GUShort_t;
37 typedef int GInt_t;
38 typedef unsigned int GUInt_t;
39 typedef long GLong_t;
40 typedef unsigned long GULong_t; //Unsigned long integer 4 bytes (unsigned long)
41 typedef float GFloat_t;
42 typedef double GDouble_t;
43 typedef long double GLongDouble_t;
44 typedef char GText_t;
45 typedef bool GBool_t;
46 typedef unsigned char GByte_t;
47 typedef long long GLong64_t;
48 typedef unsigned long long GULong64_t;
49 #ifdef FP_SINGLE
50 typedef float GReal_t;
51 #else
52 typedef double GReal_t;
53 #endif
54 
55 //---- constants ---------------------------------------------------------------
56 
57 #ifndef NULL
58 #define NULL 0
59 #endif
60 
61 const GBool_t kTrue = true;
62 const GBool_t kFalse = false;
63 
64 
65 #define kMAXP 9
66 #define PI 3.1415926535897932384626422832795028841971
67 
68 }
69 #endif /* GTYPES_H_ */
double GDouble_t
Double 8 bytes.
Definition: GTypes.h:42
long GLong_t
Signed long integer 4 bytes (long)
Definition: GTypes.h:39
const GBool_t kTrue
Definition: GTypes.h:61
unsigned int GUInt_t
Unsigned integer 4 bytes (unsigned int)
Definition: GTypes.h:38
short GShort_t
Signed Short integer 2 bytes (short)
Definition: GTypes.h:35
bool GBool_t
Boolean (0=false, 1=true) (bool)
Definition: GTypes.h:45
unsigned long GULong_t
Definition: GTypes.h:40
long long GLong64_t
Portable signed long integer 8 bytes.
Definition: GTypes.h:47
unsigned long long GULong64_t
Portable unsigned long integer 8 bytes.
Definition: GTypes.h:48
unsigned char GByte_t
Byte (8 bits) (unsigned char)
Definition: GTypes.h:46
const GBool_t kFalse
Definition: GTypes.h:62
double GReal_t
Double 8 bytes or float 4 bytes.
Definition: GTypes.h:52
unsigned short GUShort_t
Unsigned Short integer 2 bytes (unsigned short)
Definition: GTypes.h:36
char GChar_t
Signed Character 1 byte (char)
Definition: GTypes.h:33
unsigned char GUChar_t
Unsigned Character 1 byte (unsigned char)
Definition: GTypes.h:34
int GInt_t
Signed integer 4 bytes (int)
Definition: GTypes.h:37
char GText_t
General string (char)
Definition: GTypes.h:44
float GFloat_t
Float 4 bytes (float)
Definition: GTypes.h:41
long double GLongDouble_t
Long Double.
Definition: GTypes.h:43