ThePEG
1.8.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Config
ThePEG.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// ThePEG.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2011 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef ThePEG_H
10
#define ThePEG_H
11
19
#ifndef ThePEG_ALTERNATE_CONFIG
20
21
#include "ThePEG/Pointer/Ptr.h"
22
#include "ThePEG/Pointer/PtrTraits.h"
23
#include "ThePEG/Pointer/RCPtr.h"
24
#include "ThePEG/Utilities/Rebinder.fh"
25
#include "ThePEG/Utilities/Interval.fh"
26
#include "ThePEG/Utilities/ClassDescription.fh"
27
#include "ThePEG/Interface/InterfaceBase.fh"
28
#include "ThePEG/Persistency/PersistentOStream.fh"
29
#include "ThePEG/Persistency/PersistentIStream.fh"
30
#include "
TemplateTools.h
"
31
#include "Complex.h"
32
#include "Unitsystem.h"
33
#include "Constants.h"
34
#include "
std.h
"
35
36
43
namespace
ThePEG {
44
45
// Introduce some identifiers in the ThePEG namespace/
46
using namespace
ThePEG::Pointer;
47
using
ThePEG::Pointer::Ptr
;
48
using namespace
ThePEG::Units;
49
54
struct
Base
:
public
ReferenceCounted
{
55
57
virtual
~Base
() {}
58
65
static
void
Init
() {}
66
72
void
debug()
const
;
73
78
virtual
void
debugme()
const
;
79
80
};
81
86
typedef
Base
PersistentBase
;
87
94
struct
TraitsType
{};
95
99
struct
Veto
{
100
102
Veto
();
103
};
104
109
struct
Stop
{};
110
115
template
<
typename
T>
116
inline
typename
BinaryOpTraits<T,T>::MulT sqr(
const
T& x) {
117
return
x*x;
118
}
119
124
template
<
typename
T>
125
inline
T abs(
const
T & t) {
126
return
t < T()? -t: t;
127
}
128
129
// Debugging in ThePEG may be swithced off completely by this
130
// compilation swithc, eliminating possible overhead in error
131
// checking.
132
#ifndef ThePEG_NO_DEBUG
133
134
#define ThePEG_DEBUG_LEVEL Debug::level
135
136
#define ThePEG_DEBUG_ITEM(item) Debug::debugItem(item)
137
#else
138
139
#define ThePEG_DEBUG_LEVEL 0
140
141
#define ThePEG_DEBUG_ITEM(item) false
142
#endif
143
144
}
145
146
#include "
Pointers.h
"
147
#include "
Containers.h
"
148
149
#else
150
151
#include ThePEG_ALTERNATIVE_CONFIG
152
153
#endif
154
155
#endif
/* ThePEG_H */
156
Generated on Sat Jun 16 2012 16:51:05 for ThePEG by
1.8.1.1