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

Pass neutrinos through unchanged. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/osclib/v00.02/src/OscLib/IOscCalc.h"

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

Public Member Functions

virtual _IOscCalc< 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...
 
virtual Eigen::Matrix< T, Eigen::Dynamic, 1 > P (int flavBefore, int flavAfter, const std::vector< double > &E)
 

Detailed Description

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

Pass neutrinos through unchanged.

Definition at line 40 of file IOscCalc.h.

Member Function Documentation

template<typename T >
virtual _IOscCalc<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::_IOscCalc< T >.

Definition at line 53 of file IOscCalc.h.

References runNovaSAM::ret.

54  {
55  TMD5* ret = new TMD5;
56  const char* txt = "NoOscillations";
57  ret->Update((unsigned char*)txt, strlen(txt));
58  ret->Final();
59  return ret;
60  }
template<class T >
Eigen::Matrix< T, Eigen::Dynamic, 1 > osc::_IOscCalc< T >::P ( int  flavBefore,
int  flavAfter,
const std::vector< double > &  E 
)
virtualinherited

Reimplemented in osc::OscCalcPMNSOptEigen, and osc::_OscCalcDMP< T >.

Definition at line 28 of file IOscCalc.cxx.

References MECModelEnuComparisons::i, P, runNovaSAM::ret, and submit_hadd::u.

29  {
30  Eigen::Matrix<T,Eigen::Dynamic,1> ret(E.size());
31  for(auto i = 0u; i < E.size(); i++) {
32  ret(i) = this->P(flavBefore, flavAfter, E[i]);
33  }
34  return ret.array().isNaN().select(0, ret);
35  }
Float_t E
Definition: plot.C:20
virtual T P(int flavBefore, int flavAfter, double E)=0
E in GeV; flavors as PDG codes (so, neg==>antinu)
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::_IOscCalc< T >.

Definition at line 46 of file IOscCalc.h.

47  {
48  if(from == to || to == 0) return 1;
49  return 0;
50  }

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