Jpp  18.5.0
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, JEvtWeightFactor_t > Struct Template Reference

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

#include <JEvtWeightFactorFunction.hh>

Inheritance diagram for JAANET::JEvtWeightFactorFunction< JFunction_t, JEvtWeightFactor_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
 event-weight factor object. More...
 

Detailed Description

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

Implementation of event-weight factor interface.

The first template argument refers to a function of which the copy constuctor needs to be defined. The second template argument corresponds to the desired event-weight factor interface class.

Definition at line 35 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 , class JEvtWeightFactor_t >
JAANET::JEvtWeightFactorFunction< JFunction_t, JEvtWeightFactor_t >::JEvtWeightFactorFunction ( const JFunction_t &  function)
inline

Constructor.

Parameters
functionfunction for event-weight factor

Definition at line 44 of file JEvtWeightFactorFunction.hh.

44  :
45  function(function)
46  {}

Member Function Documentation

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

Get weight-factor for given event.

Parameters
evtevent
Returns
event-weight factor

Definition at line 55 of file JEvtWeightFactorFunction.hh.

56  {
57  return function(evt);
58  }
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 , class JEvtWeightFactor_t >
JFunction_t JAANET::JEvtWeightFactorFunction< JFunction_t, JEvtWeightFactor_t >::function
private

event-weight factor object.

Definition at line 62 of file JEvtWeightFactorFunction.hh.


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