Jpp - 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::JFluxFunction< JFunction_t > Struct Template Reference

Implementation of flux function. More...

#include <JFluxFunction.hh>

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

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JFluxFunction (const JFunction_t &function)
 Constructor. More...
 
double getFlux (const Evt &evt) const override
 Get flux 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::JFluxFunction< JFunction_t >

Implementation of flux function.


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

Definition at line 24 of file JFluxFunction.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::JFluxFunction< JFunction_t >::JFluxFunction ( const JFunction_t &  function)
inline

Constructor.

Parameters
functionflux function

Definition at line 32 of file JFluxFunction.hh.

32  :
33  function(function)
34  {}

Member Function Documentation

template<class JFunction_t >
double JAANET::JFluxFunction< JFunction_t >::getFlux ( const Evt evt) const
inlineoverride

Get flux for given event.

Parameters
evtevent
Returns
flux [GeV * m^-2 * sr^-1 * s^-1]

Definition at line 43 of file JFluxFunction.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::JFluxFunction< JFunction_t >::function
private

Definition at line 50 of file JFluxFunction.hh.


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