Jpp  17.1.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< pDiffuseFlux, JDiffuseFlux > Struct Template Reference

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

#include <JEvtWeightFactorFunction.hh>

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

Public Types

typedef JClonable< JClonable_t >
::clone_type 
clone_type
 

Public Member Functions

 JEvtWeightFactorFunction (pDiffuseFlux pFunction)
 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

pDiffuseFlux pFunction
 Pointer to diffuse flux function. More...
 

Detailed Description

template<>
struct JAANET::JEvtWeightFactorFunction< pDiffuseFlux, JDiffuseFlux >

Implementation of C-style diffuse flux event-weight factor.

Definition at line 157 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
pFunctionpointer to diffuse flux function

Definition at line 166 of file JEvtWeightFactorFunction.hh.

166  :
168  {}

Member Function Documentation

double JAANET::JEvtWeightFactorFunction< pDiffuseFlux, 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 178 of file JEvtWeightFactorFunction.hh.

181  {
182  return (*pFunction)(type, log10E, costh);
183  }
template<class JClonable_t, class JDerived_t = JNullType>
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

Pointer to diffuse flux function.

Definition at line 187 of file JEvtWeightFactorFunction.hh.


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