Jpp  16.0.2
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< pEvtWeightFactor > Struct Template Reference

Implementation of C-style event-weight factor. More...

#include <JEvtWeightFactorFunction.hh>

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

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JEvtWeightFactorFunction (pEvtWeightFactor 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

pEvtWeightFactor function
 

Detailed Description

template<>
struct JAANET::JEvtWeightFactorFunction< pEvtWeightFactor >

Implementation of C-style event-weight factor.

Definition at line 64 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

Constructor.

Parameters
functionevent-weight factor

Definition at line 72 of file JEvtWeightFactorFunction.hh.

72  :
73  function(function)
74  {}

Member Function Documentation

double JAANET::JEvtWeightFactorFunction< pEvtWeightFactor >::getFactor ( const Evt evt) const
inlineoverride

Get weight-factor for given event.

Parameters
evtevent
Returns
event-weight factor

Definition at line 83 of file JEvtWeightFactorFunction.hh.

84  {
85  return (*function)(evt);
86  }
template<class JClonable_t, class JDerived_t = JNullType>
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

Definition at line 90 of file JEvtWeightFactorFunction.hh.


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