Jpp in_tag_pdf_generation
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::JEvtWeightFactorFunction< JFunction_t, JEvtWeightFactor_t > Struct Template Referencefinal

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 JEvtWeightFactorFunction< JFunction_t, JEvtWeightFactor_t > JEvtWeightFactorFunction_t
 
typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

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

Private Attributes

JFunction_t function
 event-weight factor object.
 

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 constructor needs to be defined. The second template argument corresponds to the desired event-weight factor interface class.

Definition at line 34 of file JEvtWeightFactorFunction.hh.

Member Typedef Documentation

◆ JEvtWeightFactorFunction_t

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

Definition at line 38 of file JEvtWeightFactorFunction.hh.

◆ clone_type

template<class JClonable_t , class JDerived_t >
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

◆ JEvtWeightFactorFunction()

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 46 of file JEvtWeightFactorFunction.hh.

46 :
48 {}
JFunction_t function
event-weight factor object.

Member Function Documentation

◆ getFactor()

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

Get weight-factor for given event.

Parameters
evtevent
Returns
event-weight factor

Definition at line 57 of file JEvtWeightFactorFunction.hh.

58 {
59 return function(evt);
60 }

◆ clone()

template<class JClonable_t , class JDerived_t >
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

◆ function

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

event-weight factor object.

Definition at line 65 of file JEvtWeightFactorFunction.hh.


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