Jpp  15.0.4
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
JAANET::JEvtWeightFactorFunction< JFunction_t > Struct Template Reference

Implementation of event-weight factor interface. More...

#include <JEvtWeightFactorFunction.hh>

Inheritance diagram for JAANET::JEvtWeightFactorFunction< JFunction_t >:
JLANG::JClonable< JClonable_t, JDerived_t >

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JEvtWeightFactorFunction (const JFunction_t &function)
 Constructor. More...
 
double getFactor (const Evt &evt) const override
 Get weight-factor for given event. More...
 
virtual clone_type clone () const override
 Get clone of this object. More...
 

Private Attributes

JFunction_t function
 

Detailed Description

template<class JFunction_t>
struct JAANET::JEvtWeightFactorFunction< JFunction_t >

Implementation of event-weight factor interface.


Note that the template argument refers to a function of which the copy constuctor needs to be defined.

Definition at line 24 of file JEvtWeightFactorFunction.hh.

Member Typedef Documentation

template<class JClonable_t, class JDerived_t = JNullType>
typedef JClonable<JClonable_t>::clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone_type
inherited

Definition at line 61 of file JClonable.hh.

Constructor & Destructor Documentation

template<class JFunction_t >
JAANET::JEvtWeightFactorFunction< JFunction_t >::JEvtWeightFactorFunction ( const JFunction_t &  function)
inline

Constructor.

Parameters
functionfunction for event-weight factor

Definition at line 32 of file JEvtWeightFactorFunction.hh.

32  :
33  function(function)
34  {}

Member Function Documentation

template<class JFunction_t >
double JAANET::JEvtWeightFactorFunction< JFunction_t >::getFactor ( const Evt evt) const
inlineoverride

Get weight-factor for given event.

Parameters
evtevent
Returns
event-weight factor

Definition at line 43 of file JEvtWeightFactorFunction.hh.

44  {
45  return function(evt);
46  }
template<class JClonable_t, class JDerived_t = JNullType>
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

template<class JFunction_t >
JFunction_t JAANET::JEvtWeightFactorFunction< JFunction_t >::function
private

Definition at line 50 of file JEvtWeightFactorFunction.hh.


The documentation for this struct was generated from the following file: