OscProb
OscProb::EarthBin Struct Reference

#include <EarthModelBinned.h>

Public Member Functions

 EarthBin (double r_out=0, double r_in=0, double lat=0, double lon=0, double den=0, double z=0.5, int n=0)
 Constructor. More...
 
void SetBin (double r_out=0, double r_in=0, double lat=0, double lon=0, double den=0, double z=0.5, int n=0)
 Set the properties of the bin. More...
 

Public Attributes

double radius_out
 The outer radius of the bin in km. More...
 
double radius_in
 The inner radius of the bin in km. More...
 
double latitude
 The latitude of the bin center in radians. More...
 
double longitude
 The longitude of the bin center in radians. More...
 
double density
 The density of the matter in the bin in g/cm^3. More...
 
double zoa
 The effective Z/A value of the matter in the bin. More...
 
int index
 Region index. More...
 

Detailed Description

Definition at line 150 of file EarthModelBinned.h.

Constructor & Destructor Documentation

◆ EarthBin()

OscProb::EarthBin::EarthBin ( double  r_out = 0,
double  r_in = 0,
double  lat = 0,
double  lon = 0,
double  den = 0,
double  z = 0.5,
int  n = 0 
)
inline

Constructor.

By default it creates a bin of zero radius, zero latitude, zero longitude, and zero density. The effective Z/A value is set to 0.5 by default.

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

Parameters
r_out- The outer radius of the bin in km
r_in- The inner radius of the bin in km
lat- Latitude of bin center in deg
lon- Longitude of bin center in deg
den- The density of the matter in the bin in g/cm^3
z- The effective Z/A value of the matter in the bin
n- Region index

Definition at line 170 of file EarthModelBinned.h.

172 {
173 SetBin(r_out, r_in, lat, lon, den, z, n);
174 }
void SetBin(double r_out=0, double r_in=0, double lat=0, double lon=0, double den=0, double z=0.5, int n=0)
Set the properties of the bin.

References SetBin().

Member Function Documentation

◆ SetBin()

void OscProb::EarthBin::SetBin ( double  r_out = 0,
double  r_in = 0,
double  lat = 0,
double  lon = 0,
double  den = 0,
double  z = 0.5,
int  n = 0 
)
inline

Set the properties of the bin.

By default it creates a bin of zero radius, zero latitude, zero longitude, and zero density. The effective Z/A value is set to 0.5 by default.

Parameters
r_out- The outer radius of the bin in km
r_in- The inner radius of the bin in km
lat- Latitude of bin center in deg
lon- Longitude of bin center in deg
den- The density of the matter in the bin in g/cm^3
z- The effective Z/A value of the matter in the bin
n- Region index

Definition at line 193 of file EarthModelBinned.h.

195 {
196 radius_out = r_out;
197 radius_in = r_in;
198 latitude = lat * M_PI / 180.0; // convert to radians
199 longitude = lon * M_PI / 180.0; // convert to radians
200 density = den;
201 zoa = z;
202 index = n;
203 }
double radius_in
The inner radius of the bin in km.
double latitude
The latitude of the bin center in radians.
double longitude
The longitude of the bin center in radians.
double zoa
The effective Z/A value of the matter in the bin.
double radius_out
The outer radius of the bin in km.
int index
Region index.
double density
The density of the matter in the bin in g/cm^3.

References density, index, latitude, longitude, radius_in, radius_out, and zoa.

Referenced by EarthBin().

Member Data Documentation

◆ density

double OscProb::EarthBin::density

Definition at line 209 of file EarthModelBinned.h.

Referenced by OscProb::EarthModelBinned::AddPath(), and SetBin().

◆ index

int OscProb::EarthBin::index

Definition at line 211 of file EarthModelBinned.h.

Referenced by OscProb::EarthModelBinned::AddPath(), and SetBin().

◆ latitude

double OscProb::EarthBin::latitude

Definition at line 207 of file EarthModelBinned.h.

Referenced by SetBin().

◆ longitude

double OscProb::EarthBin::longitude

Definition at line 208 of file EarthModelBinned.h.

Referenced by SetBin().

◆ radius_in

double OscProb::EarthBin::radius_in

Definition at line 206 of file EarthModelBinned.h.

Referenced by SetBin().

◆ radius_out

double OscProb::EarthBin::radius_out

Definition at line 205 of file EarthModelBinned.h.

Referenced by SetBin().

◆ zoa

double OscProb::EarthBin::zoa

Definition at line 210 of file EarthModelBinned.h.

Referenced by OscProb::EarthModelBinned::AddPath(), and SetBin().


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