Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Types | Public Member Functions | Private Attributes | List of all members
JOSCPROB::JOscProbFunction< JFunction_t > Struct Template Referencefinal

Implementation of oscillation probability function interface. More...

#include <JOscProbFunction.hh>

Inheritance diagram for JOSCPROB::JOscProbFunction< JFunction_t >:
JLANG::JClonable< JClonable_t, JDerived_t >

Public Types

typedef JOscProbInterface::JOscParameters_t JOscParameters_t
 
typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JOscProbFunction (const JFunction_t &function)
 Constructor. More...
 
void setParameters (const JOscParameters_t &parameters) const
 Set oscillation parameters. More...
 
double getP (const JOscChannel &channel, const double energy, const double costh) const override final
 Get oscillation probability for given oscillation channel. More...
 
virtual clone_type clone () const override
 Get clone of this object. More...
 

Private Attributes

JFunction_t function
 oscillation probability function More...
 

Detailed Description

template<class JFunction_t>
struct JOSCPROB::JOscProbFunction< JFunction_t >

Implementation of oscillation probability function interface.

The template argument refers to a function of which the copy constuctor needs to be defined
and which must contain the methods setParameters(const JOscParameters&) and getP(const JOscChannel&, const double, const double).

Definition at line 30 of file JOscProbFunction.hh.

Member Typedef Documentation

◆ JOscParameters_t

template<class JFunction_t >
typedef JOscProbInterface::JOscParameters_t JOSCPROB::JOscProbFunction< JFunction_t >::JOscParameters_t

Definition at line 33 of file JOscProbFunction.hh.

◆ 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

◆ JOscProbFunction()

template<class JFunction_t >
JOSCPROB::JOscProbFunction< JFunction_t >::JOscProbFunction ( const JFunction_t &  function)
inline

Constructor.

Parameters
functionoscillation probability function

Definition at line 40 of file JOscProbFunction.hh.

40  :
41  function(function)
42  {}

Member Function Documentation

◆ setParameters()

template<class JFunction_t >
void JOSCPROB::JOscProbFunction< JFunction_t >::setParameters ( const JOscParameters_t parameters) const
inline

Set oscillation parameters.

Parameters
parametersoscillation parameters

Definition at line 50 of file JOscProbFunction.hh.

51  {
52  function.setParameters(parameters);
53  }

◆ getP()

template<class JFunction_t >
double JOSCPROB::JOscProbFunction< JFunction_t >::getP ( const JOscChannel channel,
const double  energy,
const double  costh 
) const
inlinefinaloverride

Get oscillation probability for given oscillation channel.

Parameters
channeloscillation channel
energyneutrino energy [GeV]
costhcosine zenith angle
Returns
oscillation probability

Definition at line 64 of file JOscProbFunction.hh.

67  {
68  return function.getP(channel, energy, costh);
69  }

◆ clone()

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

Member Data Documentation

◆ function

template<class JFunction_t >
JFunction_t JOSCPROB::JOscProbFunction< JFunction_t >::function
private

oscillation probability function

Definition at line 74 of file JOscProbFunction.hh.


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