Jpp  18.6.0-rc.1
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
JOSCPROB::JOscProbFunction< JFunction_t > Struct Template Reference

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 getCosth (const double L) const override
 Get cosine zenith angle for a given baseline. More...
 
double getBaseline (const double costh) const override
 Get baseline for a given cosine zenith angle. More...
 
double getP (const JOscChannel &channel, const double energy, const double costh) const override
 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

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

Definition at line 33 of file JOscProbFunction.hh.

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

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  }
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
template<class JFunction_t>
double JOSCPROB::JOscProbFunction< JFunction_t >::getCosth ( const double  L) const
inlineoverride

Get cosine zenith angle for a given baseline.

Parameters
Lbaseline [km]
Returns
cosine zenith angle

Definition at line 62 of file JOscProbFunction.hh.

63  {
64  return function.getCosth(L);
65  }
template<class JFunction_t>
double JOSCPROB::JOscProbFunction< JFunction_t >::getBaseline ( const double  costh) const
inlineoverride

Get baseline for a given cosine zenith angle.

Parameters
costhcosine zenith angle
Returns
baseline [km]

Definition at line 74 of file JOscProbFunction.hh.

75  {
76  return function.getBaseline(costh);
77  }
template<class JFunction_t>
double JOSCPROB::JOscProbFunction< JFunction_t >::getP ( const JOscChannel channel,
const double  energy,
const double  costh 
) const
inlineoverride

Get oscillation probability for given oscillation channel.

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

Definition at line 88 of file JOscProbFunction.hh.

91  {
92  return function.getP(channel, energy, costh);
93  }
then for APP in event gandalf start energy
Definition: JMuonMCEvt.sh:44
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 JFunction_t>
JFunction_t JOSCPROB::JOscProbFunction< JFunction_t >::function
private

oscillation probability function

Definition at line 98 of file JOscProbFunction.hh.


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