thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.2.1
Analysis
XSecCheck.h
1
// -*- C++ -*-
2
#ifndef THEPEG_XSecCheck_H
3
#define THEPEG_XSecCheck_H
4
//
5
// This is the declaration of the XSecCheck class.
6
//
7
8
#include "ThePEG/Handlers/AnalysisHandler.h"
9
10
namespace
ThePEG
{
11
21
class
XSecCheck
:
public
AnalysisHandler
{
22
23
public
:
24
30
XSecCheck
() :
target
(
ZERO
),
tol
(0.01),
sumw
(0.0) {}
31
35
virtual
~XSecCheck
();
37
38
public
:
39
43
struct
UnexpectedXSec
:
public
Exception
{};
44
45
public
:
46
66
virtual
void
analyze
(
tEventPtr
event,
long
ieve,
int
loop,
int
state
);
68
69
public
:
70
77
void
persistentOutput
(
PersistentOStream
& os)
const
;
78
84
void
persistentInput
(
PersistentIStream
& is,
int
version);
86
93
static
void
Init
();
94
95
protected
:
96
103
virtual
IBPtr
clone
()
const
;
104
109
virtual
IBPtr
fullclone
()
const
;
111
112
113
114
protected
:
115
122
virtual
void
doinitrun
() {
123
AnalysisHandler::doinitrun
();
124
sumw
= 0.0;
125
}
126
131
virtual
void
dofinish
();
133
134
private
:
135
139
CrossSection
target
;
140
145
double
tol
;
146
150
double
sumw
;
151
152
private
:
153
158
static
ClassDescription<XSecCheck>
initXSecCheck
;
159
164
XSecCheck
&
operator=
(
const
XSecCheck
&) =
delete
;
165
166
};
167
168
}
169
170
#include "ThePEG/Utilities/ClassTraits.h"
171
172
namespace
ThePEG
{
173
178
template
<>
179
struct
BaseClassTrait
<XSecCheck,1> {
181
typedef
AnalysisHandler
NthBase;
182
};
183
186
template
<>
187
struct
ClassTraits
<XSecCheck>
188
:
public
ClassTraitsBase
<XSecCheck> {
190
static
string
className() {
return
"ThePEG::XSecCheck"
; }
198
static
string
library() {
return
"XSecCheck.so"
; }
199
};
200
203
}
204
205
#endif
/* THEPEG_XSecCheck_H */
ThePEG::XSecCheck::sumw
double sumw
The sum of the weights of the events analyzed.
Definition:
XSecCheck.h:150
ThePEG::PersistentIStream
PersistentIStream is used to read persistent objects from a stream where they were previously written...
Definition:
PersistentIStream.h:48
ThePEG::XSecCheck::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::InterfacedBase::doinitrun
virtual void doinitrun()
Initialize this object.
Definition:
InterfacedBase.h:196
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
Definition:
ClassDescription.h:339
ThePEG::Exception::operator=
const Exception & operator=(const Exception &ex)
Assignment.
Definition:
Exception.h:104
ThePEG::PersistentOStream
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
Definition:
PersistentOStream.h:51
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::XSecCheck::XSecCheck
XSecCheck()
The default constructor.
Definition:
XSecCheck.h:30
ThePEG::XSecCheck::clone
virtual IBPtr clone() const
Make a simple clone of this object.
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::AnalysisHandler
The AnalysisHandler is the base class of all analysis objects which may be handled by the FullEventGe...
Definition:
AnalysisHandler.h:41
ThePEG::InterfacedBase::state
InitState state() const
Return the state of initialization of this object.
Definition:
InterfacedBase.h:298
ThePEG::XSecCheck::initXSecCheck
static ClassDescription< XSecCheck > initXSecCheck
The static object used to initialize the description of this class.
Definition:
XSecCheck.h:158
ThePEG::XSecCheck::~XSecCheck
virtual ~XSecCheck()
The destructor.
ThePEG::XSecCheck::doinitrun
virtual void doinitrun()
Initialize this object.
Definition:
XSecCheck.h:122
ThePEG::XSecCheck::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ThePEG::XSecCheck::tol
double tol
The relative tolerance accepted when comparing the total cross section with the target.
Definition:
XSecCheck.h:145
ThePEG::XSecCheck::target
CrossSection target
The expected total cross section.
Definition:
XSecCheck.h:139
ThePEG::Pointer::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG::Qty< std::ratio< L, DL >, std::ratio< E, DE >, std::ratio< Q, DQ > >
Definition:
PhysicalQty.h:76
ThePEG::XSecCheck::analyze
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
ThePEG::Exception
Exception is the base class for all exceptions to be used in ThePEG.
Definition:
Exception.h:44
ThePEG::XSecCheck::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::ClassTraits
The default concrete implementation of ClassTraitsBase.
Definition:
ClassTraits.h:134
ThePEG::XSecCheck::dofinish
virtual void dofinish()
Finalize this object.
ThePEG::XSecCheck
The XSecCheck class is a simple analysis class used for testing purposes.
Definition:
XSecCheck.h:21
ThePEG::BaseClassTrait
BaseClassTraits describes the base classes of the templated class.
Definition:
ClassTraits.h:156
ThePEG::ZERO
constexpr ZeroUnit ZERO
ZERO can be used as zero for any unitful quantity.
Definition:
PhysicalQty.h:35
ThePEG::XSecCheck::Init
static void Init()
The standard Init function used to initialize the interfaces.
ThePEG::ClassTraitsBase
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition:
ClassTraits.h:52
ThePEG::XSecCheck::UnexpectedXSec
The exception class used if the target cross section was not met.
Definition:
XSecCheck.h:43
Generated on Sat Apr 11 2020 14:31:18 for ThePEG by
1.8.13