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 149 of file EarthModelBinned.h.

Constructor & Destructor Documentation

◆ EarthBin()

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 
)

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 92 of file EarthModelBinned.cxx.

94{
95 SetBin(r_out, r_in, lat, lon, den, z, n);
96}
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 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 
)

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 98 of file EarthModelBinned.cxx.

100{
101 radius_out = r_out;
102 radius_in = r_in;
103 latitude = lat * M_PI / 180.0; // convert to radians
104 longitude = lon * M_PI / 180.0; // convert to radians
105 density = den;
106 zoa = z;
107 index = n;
108}
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 196 of file EarthModelBinned.h.

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

◆ index

int OscProb::EarthBin::index

Definition at line 198 of file EarthModelBinned.h.

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

◆ latitude

double OscProb::EarthBin::latitude

Definition at line 194 of file EarthModelBinned.h.

Referenced by SetBin().

◆ longitude

double OscProb::EarthBin::longitude

Definition at line 195 of file EarthModelBinned.h.

Referenced by SetBin().

◆ radius_in

double OscProb::EarthBin::radius_in

Definition at line 193 of file EarthModelBinned.h.

Referenced by SetBin().

◆ radius_out

double OscProb::EarthBin::radius_out

Definition at line 192 of file EarthModelBinned.h.

Referenced by SetBin().

◆ zoa

double OscProb::EarthBin::zoa

Definition at line 197 of file EarthModelBinned.h.

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


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