BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen/BesEvtGen-00-04-30/src/phokhara/eemmg-lib-new/src/common.h
Go to the documentation of this file.
1/*
2 * common.h - common includes and parameters
3 *
4 * this file is part of PJFry library
5 * Copyright 2011 Valery Yundin
6 */
7
8#ifndef QUL_COMMON_H
9#define QUL_COMMON_H
10
11#ifdef HAVE_CONFIG_H
12# include "config.h"
13#endif /* HAVE_CONFIG_H */
14
15#include <complex>
16#include <limits>
17#include <inttypes.h>
18// #include <stdint.h>
19
20#include <cassert>
21#ifndef NDEBUG
22#include <cstdio> // DEBUG
23#endif
24
25typedef std::complex<double> ncomplex;
26// typedef long long int int64_t;
27
28// Forward declarations
29class ICache;
30
31class MCache;
32class MCache5;
33
34class Minor5;
35
36class Kinem5;
37class Kinem4;
38class Kinem3;
39class Kinem2;
40
41#define CONST __attribute__ ((const))
42#define PURE __attribute__ ((pure))
43
44#ifdef USE_GOLEM_MODE
45# define USE_ZERO_CHORD "1" /* calculate formfactors for zero-chord */
46# define USE_GOLEM_MODE_6 "1" /* support 6-pinched kinematics */
47# define USE_GOLEM_ZERO_CHECK "1" /* enable checks for i,j,k==s,t,u */
48#endif
49
50// Approx 1% slowdown
51#define USE_SMART_INSERT "1" /* before adding new, delete same old entries in MCache2,3 */
52
53#define USE_DIRTY_RESET "1" /* when told to clear caches, just set len=0 */
54
55#endif /* QUL_COMMON_H */
56