Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
double dNdEdOmega (int type, double log10E, double costh) const override final
 Get event-weight factor for given particle PDG-identifier, energy and zenith-angle.
 
virtual clone_type clone () const override
 Get clone of this object.
 

Private Attributes

pDiffuseFlux pFunction
 Pointer to diffuse flux function.
 

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 >
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()

JAANET::JEvtWeightFactorFunction< pDiffuseFlux, JDiffuseFlux >::JEvtWeightFactorFunction ( pDiffuseFlux pFunction)
inline

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: