thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Analysis
LWHFactory.h
1
// -*- C++ -*-
2
//
3
// LWHFactory.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_LWHFactory_H
10
#define THEPEG_LWHFactory_H
11
//
12
// This is the declaration of the LWHFactory class.
13
//
14
15
#include "ThePEG/Analysis/FactoryBase.h"
16
17
namespace
ThePEG
{
18
36
class
LWHFactory
:
public
FactoryBase
{
37
38
public
:
39
47
virtual
void
48
normalizeToXSec
(
tH1DPtr
histogram,
CrossSection
unit = picobarn)
const
;
49
55
virtual
void
normalizeToXSecFraction
(
tH1DPtr
histogram)
const
;
56
61
virtual
void
normalizeToUnity
(
tH1DPtr
histogram)
const
;
62
68
virtual
void
69
normalizeToXSec
(
tH2DPtr
histogram,
CrossSection
unit = picobarn)
const
;
70
76
virtual
void
normalizeToXSecFraction
(
tH2DPtr
histogram)
const
;
77
82
virtual
void
normalizeToUnity
(
tH2DPtr
histogram)
const
;
84
85
public
:
86
93
void
persistentOutput
(
PersistentOStream
& os)
const
;
94
100
void
persistentInput
(
PersistentIStream
& is,
int
version);
102
109
static
void
Init
();
110
111
protected
:
112
119
virtual
IBPtr
clone
()
const
{
return
new_ptr
(*
this
); }
120
125
virtual
IBPtr
fullclone
()
const
{
return
new_ptr
(*
this
); }
127
128
129
130
protected
:
131
138
virtual
void
doinitrun
();
140
141
142
private
:
143
148
static
ClassDescription<LWHFactory>
initLWHFactory
;
149
154
LWHFactory
&
operator=
(
const
LWHFactory
&) =
delete
;
155
156
};
157
158
}
159
160
#include "ThePEG/Utilities/ClassTraits.h"
161
162
namespace
ThePEG
{
163
168
template
<>
169
struct
BaseClassTrait<LWHFactory,1> {
171
typedef
FactoryBase
NthBase
;
172
};
173
176
template
<>
177
struct
ClassTraits<LWHFactory>
178
:
public
ClassTraitsBase<LWHFactory> {
180
static
string
className
() {
return
"ThePEG::LWHFactory"
; }
181
185
static
string
library
() {
return
"LWHFactory.so"
; }
186
};
187
190
}
191
192
#endif
/* THEPEG_LWHFactory_H */
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
Definition:
ClassDescription.h:333
ThePEG::FactoryBase
Here is the documentation of the FactoryBase class.
Definition:
FactoryBase.h:47
ThePEG::FactoryBase::tH1DPtr
AIDA::IHistogram1D * tH1DPtr
Convenient typedef for pointer to AIDA::IHistogram1D.
Definition:
FactoryBase.h:54
ThePEG::FactoryBase::tH2DPtr
AIDA::IHistogram2D * tH2DPtr
Convenient typedef for pointer to AIDA::IHistogram2D.
Definition:
FactoryBase.h:64
ThePEG::LWHFactory
Here is the documentation of the LWHFactory class.
Definition:
LWHFactory.h:36
ThePEG::LWHFactory::normalizeToUnity
virtual void normalizeToUnity(tH2DPtr histogram) const
Rescale the given histogram so that the integral over the bins gives one.
ThePEG::LWHFactory::Init
static void Init()
The standard Init function used to initialize the interfaces.
ThePEG::LWHFactory::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::LWHFactory::normalizeToXSec
virtual void normalizeToXSec(tH2DPtr histogram, CrossSection unit=picobarn) const
Rescale the given histogram so that the integral over the bins will give the correct integrated cross...
ThePEG::LWHFactory::normalizeToXSec
virtual void normalizeToXSec(tH1DPtr histogram, CrossSection unit=picobarn) const
Rescale the given histogram so that the integral over the bins will give the correct integrated cross...
ThePEG::LWHFactory::initLWHFactory
static ClassDescription< LWHFactory > initLWHFactory
The static object used to initialize the description of this class.
Definition:
LWHFactory.h:148
ThePEG::LWHFactory::normalizeToXSecFraction
virtual void normalizeToXSecFraction(tH1DPtr histogram) const
Rescale the given histogram so that the integral over the bins gives the fraction of the total cross ...
ThePEG::LWHFactory::normalizeToXSecFraction
virtual void normalizeToXSecFraction(tH2DPtr histogram) const
Rescale the given histogram so that the integral over the bins gives the fraction of the total cross ...
ThePEG::LWHFactory::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition:
LWHFactory.h:125
ThePEG::LWHFactory::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::LWHFactory::normalizeToUnity
virtual void normalizeToUnity(tH1DPtr histogram) const
Rescale the given histogram so that the integral over the bins gives one.
ThePEG::LWHFactory::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Definition:
LWHFactory.h:119
ThePEG::LWHFactory::operator=
LWHFactory & operator=(const LWHFactory &)=delete
The assignment operator is private and must never be called.
ThePEG::LWHFactory::doinitrun
virtual void doinitrun()
Initialize this object.
ThePEG::PersistentIStream
PersistentIStream is used to read persistent objects from a stream where they were previously written...
Definition:
PersistentIStream.h:48
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::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:77
ThePEG::Pointer::new_ptr
Ptr< T >::pointer new_ptr()
Simple interface to the PtrTraits<Ptr>::create()
Definition:
PtrTraits.h:195
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::ClassTraitsBase::className
static string className()
Return the name of class T.
Definition:
ClassTraits.h:66
ThePEG::ClassTraitsBase::library
static string library()
The name of a file containing the dynamic library where the class T is implemented.
Definition:
ClassTraits.h:85
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6