thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Repository
Main.h
1
// -*- C++ -*-
2
//
3
// Main.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2019 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef THEPEG_Main_H
10
#define THEPEG_Main_H
11
// This is the declaration of the Main class.
12
13
#include "
ThePEG/Config/ThePEG.h
"
14
#include "ThePEG/Repository/EventGenerator.h"
15
16
namespace
ThePEG
{
17
35
class
Main
:
public
Base
{
36
37
public
:
38
42
static
void
eventGenerator
(
tEGPtr
eg) {
theEventGenerator
= eg; }
43
47
static
tEGPtr
eventGenerator
() {
return
theEventGenerator
; }
48
52
static
void
N
(
long
n) {
theN
= n; }
53
57
static
long
N
() {
return
theN
; }
58
59
63
static
void
arguments
(
const
vector<string> & args)
64
{
65
theArguments
= args;
66
}
67
71
static
const
vector<string> &
arguments
() {
return
theArguments
; }
72
73
public
:
74
78
static
void
Init
() {}
79
80
private
:
81
85
static
EGPtr
theEventGenerator
;
86
90
static
long
theN
;
91
95
static
vector<string>
theArguments
;
96
97
private
:
98
102
static
AbstractNoPIOClassDescription<Main>
initMain
;
103
107
Main
&
operator=
(
const
Main
&) =
delete
;
108
109
};
110
111
}
112
113
114
namespace
ThePEG
{
115
120
template
<>
121
struct
BaseClassTrait<Main,1>:
public
ClassTraitsType {
123
typedef
int
NthBase
;
124
};
125
128
template
<>
129
struct
ClassTraits<Main>:
public
ClassTraitsBase<Main> {
131
static
string
className
() {
return
"ThePEG::Main"
; }
132
133
};
134
137
}
138
139
#endif
/* THEPEG_Main_H */
ThePEG.h
This is the main config header file for ThePEG.
ThePEG::AbstractNoPIOClassDescription
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
Definition:
ClassDescription.h:417
ThePEG::Main
This is a base class for classes implementing a main steering routine for running an EventGenerator,...
Definition:
Main.h:35
ThePEG::Main::N
static void N(long n)
Set the number of events requested.
Definition:
Main.h:52
ThePEG::Main::Init
static void Init()
Standard Init function used to initialize the interfaces.
Definition:
Main.h:78
ThePEG::Main::theEventGenerator
static EGPtr theEventGenerator
The global event generator.
Definition:
Main.h:85
ThePEG::Main::initMain
static AbstractNoPIOClassDescription< Main > initMain
Describe an abstract base class without persistent data.
Definition:
Main.h:102
ThePEG::Main::operator=
Main & operator=(const Main &)=delete
Private and non-existent assignment operator.
ThePEG::Main::arguments
static const vector< string > & arguments()
Get the command-line arguments.
Definition:
Main.h:71
ThePEG::Main::arguments
static void arguments(const vector< string > &args)
Set the command-line arguments.
Definition:
Main.h:63
ThePEG::Main::theN
static long theN
The number of events requested.
Definition:
Main.h:90
ThePEG::Main::N
static long N()
Get the number of events requested.
Definition:
Main.h:57
ThePEG::Main::eventGenerator
static tEGPtr eventGenerator()
Get the global event generator.
Definition:
Main.h:47
ThePEG::Main::eventGenerator
static void eventGenerator(tEGPtr eg)
Set the global event generator.
Definition:
Main.h:42
ThePEG::Main::theArguments
static vector< string > theArguments
The command-line arguments.
Definition:
Main.h:95
ThePEG::Pointer::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG::Pointer::TransientRCPtr
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition:
RCPtr.h:519
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::BaseClassTrait::NthBase
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition:
ClassTraits.h:161
ThePEG::Base
Define the base class from which all (polymorphic) classes in ThePEG are derived.
Definition:
ThePEG.h:54
ThePEG::ClassTraitsBase::className
static string className()
Return the name of class T.
Definition:
ClassTraits.h:66
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6