Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F9514796
ReweightConstant.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
ReweightConstant.cc
View Options
// -*- C++ -*-
//
// ReweightConstant.cc is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 1999-2007 Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
//
// This is the implementation of the non-inlined, non-templated member
// functions of the ReweightConstant class.
//
#include
"ReweightConstant.h"
#include
"ThePEG/Interface/ClassDocumentation.h"
#include
"ThePEG/Persistency/PersistentOStream.h"
#include
"ThePEG/Persistency/PersistentIStream.h"
#include
"ThePEG/Interface/Parameter.h"
using
namespace
ThePEG
;
ReweightConstant
::~
ReweightConstant
()
{}
double
ReweightConstant
::
weight
()
const
{
return
C
;
}
void
ReweightConstant
::
persistentOutput
(
PersistentOStream
&
os
)
const
{
os
<<
C
;
}
void
ReweightConstant
::
persistentInput
(
PersistentIStream
&
is
,
int
)
{
is
>>
C
;
}
ClassDescription
<
ReweightConstant
>
ReweightConstant
::
initReweightConstant
;
// Definition of the static class description member.
void
ReweightConstant
::
Init
()
{
static
ClassDocumentation
<
ReweightConstant
>
documentation
(
"The ReweightConstant class is a simple ReweightBase sub-class which "
"simply reweight an event with a constant"
);
static
Parameter
<
ReweightConstant
,
double
>
interfaceC
(
"C"
,
"The constant with which to reweight an event."
,
&
ReweightConstant
::
C
,
1.0
,
0
,
0
,
true
,
false
,
Interface
::
nolimits
);
interfaceC
.
rank
(
10
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Feb 24, 6:45 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4494618
Default Alt Text
ReweightConstant.cc (1 KB)
Attached To
rTHEPEGHG thepeghg
Event Timeline
Log In to Comment