Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Public Types | Public Member Functions | Private Attributes | List of all members
JAANET::JEvtWeightFactorFunction< pDiffuseFlux, JDiffuseFlux > Struct Referencefinal

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 final
 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

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

Definition at line 245 of file JEvtWeightFactorFunction.hh.

Member Typedef Documentation

◆ clone_type

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

◆ JEvtWeightFactorFunction()

Constructor.

Parameters
pFunctionpointer to diffuse flux function

Definition at line 254 of file JEvtWeightFactorFunction.hh.

254  :
256  {}

Member Function Documentation

◆ dNdEdOmega()

double JAANET::JEvtWeightFactorFunction< pDiffuseFlux, JDiffuseFlux >::dNdEdOmega ( int  type,
double  log10E,
double  costh 
) const
inlinefinaloverride

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

270  {
271  return (*pFunction)(type, log10E, costh);
272  }

◆ clone()

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

Member Data Documentation

◆ pFunction

Pointer to diffuse flux function.

Definition at line 276 of file JEvtWeightFactorFunction.hh.


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