OscProb
OscProb::TrajConstants Struct Reference

A struct holding useful combinations of trajectory variables. More...

#include <EarthModelBinned.h>

Public Member Functions

 TrajConstants (double cosT=0, double phi=0, double DetLat=0, double DetLon=0, double rDet=6368)
 Constructor. More...
 
void UpdateNuAngles (double cosTheta, double phi)
 
void UpdateDetPos (double rDet, double DetLat, double DetLon)
 
void Recalculate ()
 

Public Attributes

double cosT
 cosT More...
 
double cosA
 cos(phi) More...
 
double sinA
 sin(phi) More...
 
double sinDetLat
 sin(DetLat) More...
 
double cosDetLon
 cos(DetLon) More...
 
double sinDetLon
 sin(DetLon) More...
 
double DetRadius
 rDet More...
 
double sinSqT
 sin^2(T) = 1 - (cosT)^2 More...
 
double sinT
 sin(T) = sqrt(sinSqT) More...
 
double sinTsinA
 sin(T)*sin(phi) More...
 
double sinTcosA
 sin(T)*cos(phi) More...
 
double cosDetLat
 cos(DetLat) More...
 
double rDetSinDetLat
 rDet*sin(DetLat) More...
 
double rDetCosDetLat
 rDet*cos(DetLat) More...
 
double sinTsinAsinDetLon
 sin(T)*sin(phi)*sin(DetLon) More...
 
double sinTsinAcosDetLon
 sin(T)*sin(phi)*cos(DetLon) More...
 
double cosTcosDetLat
 cosT*cos(DetLat) More...
 
double rDetCosT
 rDet*cosT More...
 
double rDetSinT
 rDet*sin(T) More...
 
double alpha
 sin(T)*cos(phi)*sin(DetLat)-cosT*cos(DetLat) More...
 
double beta
 sin(T)*sin(DetLat)-cos(phi)*cosT*cos(DetLat) More...
 
double gamma
 sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat) More...
 
double gammaSq
 [sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat)]^2 More...
 
double rDetGammaSinDetLat
 rDet*sin(DetLat)*[sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat)] More...
 
double maxSinSqLat
 1 - [sin(phi)*cos(DetLat)]^2 More...
 
double xlatextreme
 rDet*cos(phi)*cos(DetLat)/[sin(T)*sin(DetLat)-cos(phi)*cosT*cos(DetLat)], unless the denominator is 0, in which case it is set to 0 More...
 

Detailed Description

This struct holds combinations of variables that are useful when doing the calculations needed for FindPath within EarthModelBinned.

Author
rpestes@apc.in2p3.fr

Definition at line 80 of file EarthModelBinned.h.

Constructor & Destructor Documentation

◆ TrajConstants()

OscProb::TrajConstants::TrajConstants ( double  cosT = 0,
double  phi = 0,
double  DetLat = 0,
double  DetLon = 0,
double  rDet = 6368 
)
inline

Constructor.

By default, it sets cosT, Az, latD, and lonD equal to 0, and it uses 6368km for rD.

Parameters
cosT- Cosine of the zenith angle for the neutrino trajectory
phi- The azimuthal angle for the neutrino trajectory (in rad)
DetLat- The latitude of the detector (in rad)
DetLon- The longitude of the detector (in rad)
rDet- The distance from the center of the Earth to the detector (in km)

Definition at line 96 of file EarthModelBinned.h.

98 {
99 UpdateNuAngles(cosT, phi);
100 UpdateDetPos(DetLat, DetLon, rDet);
101 }
void UpdateDetPos(double rDet, double DetLat, double DetLon)
void UpdateNuAngles(double cosTheta, double phi)

References cosT, UpdateDetPos(), and UpdateNuAngles().

Member Function Documentation

◆ Recalculate()

void TrajConstants::Recalculate ( )

Calculate constants that use combinations of detector position variables and neutrino direction angles

Recalculate constants that use combinations of detector position variables and neutrino direction angles.

Definition at line 66 of file EarthModelBinned.cxx.

67{
78 maxSinSqLat = 1 - pow(sinA * cosDetLat, 2);
79 if(beta == 0) { xlatextreme = 0; }
80 else { xlatextreme = cosA * rDetCosDetLat / beta; }
81}
double cosTcosDetLat
cosT*cos(DetLat)
double sinTsinA
sin(T)*sin(phi)
double cosDetLon
cos(DetLon)
double beta
sin(T)*sin(DetLat)-cos(phi)*cosT*cos(DetLat)
double gammaSq
[sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat)]^2
double sinDetLat
sin(DetLat)
double rDetSinT
rDet*sin(T)
double xlatextreme
rDet*cos(phi)*cos(DetLat)/[sin(T)*sin(DetLat)-cos(phi)*cosT*cos(DetLat)], unless the denominator is 0...
double sinTcosA
sin(T)*cos(phi)
double alpha
sin(T)*cos(phi)*sin(DetLat)-cosT*cos(DetLat)
double rDetCosT
rDet*cosT
double rDetGammaSinDetLat
rDet*sin(DetLat)*[sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat)]
double sinDetLon
sin(DetLon)
double sinTsinAsinDetLon
sin(T)*sin(phi)*sin(DetLon)
double gamma
sin(T)*cos(phi)*cos(DetLat)+cosT*sin(DetLat)
double maxSinSqLat
1 - [sin(phi)*cos(DetLat)]^2
double rDetSinDetLat
rDet*sin(DetLat)
double rDetCosDetLat
rDet*cos(DetLat)
double cosDetLat
cos(DetLat)
double sinT
sin(T) = sqrt(sinSqT)
double sinTsinAcosDetLon
sin(T)*sin(phi)*cos(DetLon)

References alpha, beta, cosA, cosDetLat, cosDetLon, cosT, cosTcosDetLat, DetRadius, gamma, gammaSq, maxSinSqLat, rDetCosDetLat, rDetCosT, rDetGammaSinDetLat, rDetSinDetLat, rDetSinT, sinA, sinDetLat, sinDetLon, sinT, sinTcosA, sinTsinA, sinTsinAcosDetLon, sinTsinAsinDetLon, and xlatextreme.

Referenced by OscProb::EarthModelBinned::FillPath().

◆ UpdateDetPos()

void TrajConstants::UpdateDetPos ( double  rDet,
double  DetLat,
double  DetLon 
)

Update detector position for neutrino trajectory calculations

Update detector position for neutrino trajectory calculations.

Parameters
rDet- The distance from the center of the Earth to the detector (in km)
DetLat- The latitude of the detector (in rad)
DetLon- The longitude of the detector (in rad)

Definition at line 49 of file EarthModelBinned.cxx.

50{
51 sinDetLat = sin(DetLat);
52 cosDetLat = cos(DetLat);
53 cosDetLon = cos(DetLon);
54 sinDetLon = sin(DetLon);
55 DetRadius = rDet;
56
59}

References cosDetLat, cosDetLon, DetRadius, rDetCosDetLat, rDetSinDetLat, sinDetLat, and sinDetLon.

Referenced by OscProb::EarthModelBinned::SetDetPos(), and TrajConstants().

◆ UpdateNuAngles()

void TrajConstants::UpdateNuAngles ( double  cosTheta,
double  phi 
)

Update values of zenith angle and azimuthal angle for neutrino trajectory

Update values of zenith angle and azimuthal angle for neutrino trajectory.

Parameters
cosTheta- Cosine of the zenith angle
phi- The azimuthal angle in radians

Definition at line 27 of file EarthModelBinned.cxx.

28{
29 cosT = cosTheta;
30 sinSqT = 1 - cosT * cosT;
31 sinT = sqrt(sinSqT);
32
33 cosA = cos(phi);
34 sinA = sin(phi);
35
36 sinTsinA = sinT * sinA;
37 sinTcosA = sinT * cosA;
38}
double sinSqT
sin^2(T) = 1 - (cosT)^2

References cosA, cosT, sinA, sinSqT, sinT, sinTcosA, and sinTsinA.

Referenced by OscProb::EarthModelBinned::FillPath(), and TrajConstants().

Member Data Documentation

◆ alpha

double OscProb::TrajConstants::alpha

◆ beta

double OscProb::TrajConstants::beta

Definition at line 141 of file EarthModelBinned.h.

Referenced by OscProb::EarthModelBinned::FillPath(), and Recalculate().

◆ cosA

double OscProb::TrajConstants::cosA

◆ cosDetLat

double OscProb::TrajConstants::cosDetLat

◆ cosDetLon

double OscProb::TrajConstants::cosDetLon

◆ cosT

double OscProb::TrajConstants::cosT

Definition at line 115 of file EarthModelBinned.h.

Referenced by Recalculate(), TrajConstants(), and UpdateNuAngles().

◆ cosTcosDetLat

double OscProb::TrajConstants::cosTcosDetLat

Definition at line 137 of file EarthModelBinned.h.

Referenced by Recalculate().

◆ DetRadius

double OscProb::TrajConstants::DetRadius

Definition at line 121 of file EarthModelBinned.h.

Referenced by Recalculate(), and UpdateDetPos().

◆ gamma

double OscProb::TrajConstants::gamma

◆ gammaSq

double OscProb::TrajConstants::gammaSq

◆ maxSinSqLat

double OscProb::TrajConstants::maxSinSqLat

◆ rDetCosDetLat

double OscProb::TrajConstants::rDetCosDetLat

◆ rDetCosT

double OscProb::TrajConstants::rDetCosT

◆ rDetGammaSinDetLat

double OscProb::TrajConstants::rDetGammaSinDetLat

◆ rDetSinDetLat

double OscProb::TrajConstants::rDetSinDetLat

◆ rDetSinT

double OscProb::TrajConstants::rDetSinT

◆ sinA

double OscProb::TrajConstants::sinA

◆ sinDetLat

double OscProb::TrajConstants::sinDetLat

Definition at line 118 of file EarthModelBinned.h.

Referenced by Recalculate(), and UpdateDetPos().

◆ sinDetLon

double OscProb::TrajConstants::sinDetLon

◆ sinSqT

double OscProb::TrajConstants::sinSqT

Definition at line 124 of file EarthModelBinned.h.

Referenced by UpdateNuAngles().

◆ sinT

double OscProb::TrajConstants::sinT

◆ sinTcosA

double OscProb::TrajConstants::sinTcosA

Definition at line 127 of file EarthModelBinned.h.

Referenced by Recalculate(), and UpdateNuAngles().

◆ sinTsinA

double OscProb::TrajConstants::sinTsinA

Definition at line 126 of file EarthModelBinned.h.

Referenced by Recalculate(), and UpdateNuAngles().

◆ sinTsinAcosDetLon

double OscProb::TrajConstants::sinTsinAcosDetLon

◆ sinTsinAsinDetLon

double OscProb::TrajConstants::sinTsinAsinDetLon

◆ xlatextreme

double OscProb::TrajConstants::xlatextreme

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