Direction of incident neutrino.
More...
#include <JAstronomy.hh>
Direction of incident neutrino.
Definition at line 751 of file JAstronomy.hh.
◆ JNeutrinoDirection() [1/3]
JASTRONOMY::JNeutrinoDirection::JNeutrinoDirection |
( |
| ) |
|
|
inline |
◆ JNeutrinoDirection() [2/3]
JASTRONOMY::JNeutrinoDirection::JNeutrinoDirection |
( |
const double | zenith, |
|
|
const double | azimuth ) |
|
inline |
Constructor.
- Parameters
-
zenith | zenith [rad] |
azimuth | azimuth [rad] |
Definition at line 767 of file JAstronomy.hh.
768 :
770 {}
angle_type_rad()
Default constructor.
◆ JNeutrinoDirection() [3/3]
JASTRONOMY::JNeutrinoDirection::JNeutrinoDirection |
( |
const JAngle3D & | angle | ) |
|
|
inline |
◆ getNeutrinoDirection()
Get neutrino direction.
- Returns
- neutrino direction
Definition at line 788 of file JAstronomy.hh.
789 {
791 }
JNeutrinoDirection()
Default constructor.
◆ operator JAngle3D()
JASTRONOMY::JNeutrinoDirection::operator JAngle3D |
( |
| ) |
const |
|
inline |
Type conversion operator.
- Returns
- polar angles [rad]
Definition at line 799 of file JAstronomy.hh.
◆ getZenith()
double JASTRONOMY::JNeutrinoDirection::getZenith |
( |
| ) |
const |
|
inline |
◆ getAzimuth()
double JASTRONOMY::JNeutrinoDirection::getAzimuth |
( |
| ) |
const |
|
inline |
◆ getDot()
Dot product.
- Parameters
-
- Returns
- dot product
Definition at line 815 of file JAstronomy.hh.
816 {
817 return
818 sin(this->
_theta_) * sin(dir._theta_) * cos(this->
_phi_ - dir._phi_) +
819 cos(this->
_theta_) * cos(dir._theta_);
820 }
◆ set()
◆ equals()
bool JASTRONOMY::angle_type::equals |
( |
const angle_type & | angle, |
|
|
const double | precision = std::numeric_limits<double>::min() ) const |
|
inlineinherited |
Check equality.
- Parameters
-
angle | pair of angles |
precision | precision |
- Returns
- true if angles are equal; else false
Definition at line 194 of file JAstronomy.hh.
196 {
197 return (fabs(this->
_theta_ - angle._theta_) <= precision &&
198 fabs(this->
_phi_ - angle._phi_) <= precision);
199 }
◆ _theta_
double JASTRONOMY::angle_type::_theta_ |
|
protectedinherited |
◆ _phi_
double JASTRONOMY::angle_type::_phi_ |
|
protectedinherited |
The documentation for this struct was generated from the following file: