OscProb
OscProb::NuPath Struct Reference

A struct representing a neutrino path segment. More...

#include <NuPath.h>

Public Member Functions

 NuPath (double l=0, double d=0, double z=0.5, int ly=0)
 Constructor. More...
 
void SetPath (double l=0, double d=0, double z=0.5, int ly=0)
 Set the properties of the neutrino path. More...
 

Public Attributes

double length
 The length of the path segment in km. More...
 
double density
 The density of the path segment in g/cm^3. More...
 
double zoa
 The effective Z/A value of the path segment. More...
 
int layer
 An index to identify the matter type. More...
 

Detailed Description

This struct stores the properties of a neutrino path segment so that the neutrino propagation through a path is done consistently in the PMNS classes.

Author
jcoelho@apc.in2p3.fr

Definition at line 34 of file NuPath.h.

Constructor & Destructor Documentation

◆ NuPath()

OscProb::NuPath::NuPath ( double  l = 0,
double  d = 0,
double  z = 0.5,
int  ly = 0 
)
inline

Constructor.

By default it creates a path of zero length and zero density. The effective Z/A value is set to 0.5 by default.

The properties of the path can be given directly in the construction.

Parameters
l- The length of the path segment in km
d- The density of the path segment in g/cm^3
z- The effective Z/A value of the path segment
ly- An index to identify the matter type (e.g. earth inner core)

Definition at line 51 of file NuPath.h.

52 {
53 SetPath(l, d, z, ly);
54 }
void SetPath(double l=0, double d=0, double z=0.5, int ly=0)
Set the properties of the neutrino path.
Definition: NuPath.h:70

References SetPath().

Member Function Documentation

◆ SetPath()

void OscProb::NuPath::SetPath ( double  l = 0,
double  d = 0,
double  z = 0.5,
int  ly = 0 
)
inline

Set the properties of the neutrino path.

By default it sets the path to zero length and zero density. The effective Z/A value is set to 0.5 by default.

Parameters
l- The length of the path segment in km
d- The density of the path segment in g/cm^3
z- The effective Z/A value of the path segment
ly- An index to identify the matter type (e.g. earth inner core)

Definition at line 70 of file NuPath.h.

71 {
72 length = l;
73 density = d;
74 zoa = z;
75 layer = ly;
76 }
int layer
An index to identify the matter type.
Definition: NuPath.h:81
double density
The density of the path segment in g/cm^3.
Definition: NuPath.h:79
double length
The length of the path segment in km.
Definition: NuPath.h:78
double zoa
The effective Z/A value of the path segment.
Definition: NuPath.h:80

References density, layer, length, and zoa.

Referenced by NuPath().

Member Data Documentation

◆ density

◆ layer

int OscProb::NuPath::layer

Definition at line 81 of file NuPath.h.

Referenced by OscProb::PMNS_Base::SetAtt(), SetPath(), and OscProb::PMNS_Base::SetStdPath().

◆ length

◆ zoa


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