ThePEG
1.8.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MatrixElement
ReweightConstant.h
1
// -*- C++ -*-
2
//
3
// ReweightConstant.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_ReweightConstant_H
10
#define THEPEG_ReweightConstant_H
11
//
12
// This is the declaration of the ReweightConstant class.
13
//
14
15
#include "ThePEG/MatrixElement/ReweightBase.h"
16
17
namespace
ThePEG {
18
26
class
ReweightConstant
:
public
ReweightBase
{
27
28
public
:
29
35
ReweightConstant
() :
C
(1.0) {}
37
38
public
:
39
44
virtual
double
weight
()
const
;
45
46
public
:
47
54
void
persistentOutput
(
PersistentOStream
& os)
const
;
55
61
void
persistentInput
(
PersistentIStream
& is,
int
version);
63
70
static
void
Init
();
71
72
protected
:
73
80
virtual
IBPtr
clone
()
const
;
81
86
virtual
IBPtr
fullclone
()
const
;
88
89
private
:
90
94
double
C
;
95
96
private
:
97
102
static
ClassDescription<ReweightConstant>
initReweightConstant
;
103
108
ReweightConstant
&
operator=
(
const
ReweightConstant
&);
109
110
};
111
112
}
113
114
#include "ThePEG/Utilities/ClassTraits.h"
115
116
namespace
ThePEG {
117
122
template
<>
123
struct
BaseClassTrait<ReweightConstant,1> {
125
typedef
ReweightBase
NthBase
;
126
};
127
130
template
<>
131
struct
ClassTraits<ReweightConstant>
132
:
public
ClassTraitsBase<ReweightConstant> {
134
static
string
className
() {
return
"ThePEG::ReweightConstant"
; }
138
static
string
library
() {
return
"ReweightConstant.so"
; }
139
};
140
143
}
144
145
#endif
/* THEPEG_ReweightConstant_H */
Generated on Mon Jul 2 2012 16:06:47 for ThePEG by
1.8.1.1