Jpp  pmt_effective_area_update
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< pFlux > Struct Template Reference

Implementation of C-style flux function. More...

#include <JFluxFunction.hh>

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

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JFluxFunction (pFlux 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

pFlux function
 

Detailed Description

template<>
struct JAANET::JFluxFunction< pFlux >

Implementation of C-style flux function.


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

JAANET::JFluxFunction< pFlux >::JFluxFunction ( pFlux  function)
inline

Constructor.

Parameters
functionflux function

Definition at line 72 of file JFluxFunction.hh.

72  :
73  function(function)
74  {}

Member Function Documentation

double JAANET::JFluxFunction< pFlux >::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 83 of file JFluxFunction.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

pFlux JAANET::JFluxFunction< pFlux >::function
private

Definition at line 90 of file JFluxFunction.hh.


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