Jpp  17.0.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< JDiffuseFluxFunction_t, JDiffuseFlux > Struct Template Reference

Implementation of event-weight factor interface for diffuse flux objects. More...

#include <JEvtWeightFactorFunction.hh>

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

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JEvtWeightFactorFunction (const JDiffuseFluxFunction_t &function)
 Constructor. More...
 
double dNdEdOmega (int type, double log10E, double costh) const override
 Get event-weight factor for given particle PDG-identifier, energy and zenith-angle. More...
 
virtual clone_type clone () const override
 Get clone of this object. More...
 

Private Attributes

JDiffuseFluxFunction_t function
 diffuse flux function object More...
 

Detailed Description

template<class JDiffuseFluxFunction_t>
struct JAANET::JEvtWeightFactorFunction< JDiffuseFluxFunction_t, JDiffuseFlux >

Implementation of event-weight factor interface for diffuse flux objects.

The template argument corresponds to a function of which the copy constructor needs to be defined.

Definition at line 69 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 JDiffuseFluxFunction_t >
JAANET::JEvtWeightFactorFunction< JDiffuseFluxFunction_t, JDiffuseFlux >::JEvtWeightFactorFunction ( const JDiffuseFluxFunction_t &  function)
inline

Constructor.

Parameters
functionflux function

Definition at line 78 of file JEvtWeightFactorFunction.hh.

78  :
79  function(function)
80  {}

Member Function Documentation

template<class JDiffuseFluxFunction_t >
double JAANET::JEvtWeightFactorFunction< JDiffuseFluxFunction_t, JDiffuseFlux >::dNdEdOmega ( int  type,
double  log10E,
double  costh 
) const
inlineoverride

Get event-weight factor for given particle PDG-identifier, energy and zenith-angle.

Parameters
typePDG particle type
log10Elogarithmic neutrino energy [GeV]
costhcosine zenith angle
Returns
event-weight factor

Definition at line 91 of file JEvtWeightFactorFunction.hh.

94  {
95  return function.dNdEdOmega(type, log10E, costh);
96  }
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 JDiffuseFluxFunction_t >
JDiffuseFluxFunction_t JAANET::JEvtWeightFactorFunction< JDiffuseFluxFunction_t, JDiffuseFlux >::function
private

diffuse flux function object

Definition at line 100 of file JEvtWeightFactorFunction.hh.


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