Public Member Functions | List of all members
osc::_NoOscillations< T > Class Template Reference

Pass neutrinos through unchanged. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-02-16/OscLib/func/IOscCalculator.h"

Inheritance diagram for osc::_NoOscillations< T >:
osc::_IOscCalculator< T >

Public Member Functions

virtual _IOscCalculator< T > * Copy () const override
 
virtual T P (int from, int to, double) override
 E in GeV; flavors as PDG codes (so, neg==>antinu) More...
 
virtual TMD5 * GetParamsHash () const override
 Always compare equal to self. More...
 

Detailed Description

template<typename T>
class osc::_NoOscillations< T >

Pass neutrinos through unchanged.

Definition at line 39 of file IOscCalculator.h.

Member Function Documentation

template<typename T >
virtual _IOscCalculator<T>* osc::_NoOscillations< T >::Copy ( ) const
inlineoverridevirtual
template<typename T >
virtual TMD5* osc::_NoOscillations< T >::GetParamsHash ( ) const
inlineoverridevirtual

Always compare equal to self.

Reimplemented from osc::_IOscCalculator< T >.

Definition at line 51 of file IOscCalculator.h.

References runNovaSAM::ret.

52  {
53  TMD5* ret = new TMD5;
54  const char* txt = "NoOscillations";
55  ret->Update((unsigned char*)txt, strlen(txt));
56  ret->Final();
57  return ret;
58  }
template<typename T >
virtual T osc::_NoOscillations< T >::P ( int  flavBefore,
int  flavAfter,
double  E 
)
inlineoverridevirtual

E in GeV; flavors as PDG codes (so, neg==>antinu)

Implements osc::_IOscCalculator< T >.

Definition at line 44 of file IOscCalculator.h.

45  {
46  if(from == to || to == 0) return 1;
47  return 0;
48  }

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