Auxiliary data structure for storing and calculating baselines.
More...
#include <JBaselineComputer.hh>
|
double | Lmin |
| Minimum baseline [km].
|
|
double | Lmax |
| Maximum baseline [km].
|
|
Auxiliary data structure for storing and calculating baselines.
Definition at line 23 of file JBaselineComputer.hh.
◆ JBaselineComputer() [1/2]
JOSCPROB::JBaselineComputer::JBaselineComputer |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 28 of file JBaselineComputer.hh.
28 :
31 {}
double Lmax
Maximum baseline [km].
double Lmin
Minimum baseline [km].
◆ JBaselineComputer() [2/2]
JOSCPROB::JBaselineComputer::JBaselineComputer |
( |
const double | Lmin, |
|
|
const double | Lmax ) |
|
inline |
Constructor.
- Parameters
-
Lmin | Minimum baseline [km] |
Lmax | Maximum baseline [km] |
Definition at line 40 of file JBaselineComputer.hh.
◆ getMinimumBaseline()
double JOSCPROB::JBaselineComputer::getMinimumBaseline |
( |
| ) |
const |
|
inline |
◆ getMaximumBaseline()
double JOSCPROB::JBaselineComputer::getMaximumBaseline |
( |
| ) |
const |
|
inline |
◆ getInnerRadius()
double JOSCPROB::JBaselineComputer::getInnerRadius |
( |
| ) |
const |
|
inline |
◆ getOuterRadius()
double JOSCPROB::JBaselineComputer::getOuterRadius |
( |
| ) |
const |
|
inline |
◆ getCosth()
double JOSCPROB::JBaselineComputer::getCosth |
( |
const double | L | ) |
const |
|
inline |
Get cosine zenith angle for a given baseline.
- Parameters
-
- Returns
- cosine zenith angle
Definition at line 97 of file JBaselineComputer.hh.
98 {
101
102 return (R*R - r*r - L*L) / (2*L*
r);
103 }
double getInnerRadius() const
Get inner radius.
double getOuterRadius() const
Get outer radius.
◆ getBaseline()
double JOSCPROB::JBaselineComputer::getBaseline |
( |
const double | costh | ) |
const |
|
inline |
Get baseline for a given cosine zenith angle.
- Parameters
-
- Returns
- baseline [km]
Definition at line 112 of file JBaselineComputer.hh.
113 {
116
117 const double ct = (fabs(costh) < 1.0 ? costh : (costh < 0 ? -1.0 : 1.0));
118
119 return (-r * ct + sqrt(R*R - r*r * (1 - ct) * (1 + ct)));
120 }
◆ operator()()
double JOSCPROB::JBaselineComputer::operator() |
( |
const double | costh | ) |
const |
|
inline |
Get baseline for a given cosine zenith angle.
- Parameters
-
- Returns
- baseline [km]
Definition at line 129 of file JBaselineComputer.hh.
130 {
132 }
double getBaseline(const double costh) const
Get baseline for a given cosine zenith angle.
◆ operator>>
Stream input of baseline calculator.
- Parameters
-
in | input stream |
object | object |
- Returns
- input stream
Definition at line 142 of file JBaselineComputer.hh.
143 {
144 return in >> object.Lmin >> object.Lmax;
145 }
◆ operator<<
Stream output of baseline calculator.
- Parameters
-
out | output stream |
object | object |
- Returns
- output stream
Definition at line 155 of file JBaselineComputer.hh.
156 {
158
159 return out <<
FIXED(15,5) <<
object.Lmin <<
FIXED(15,5) <<
object.Lmax;
160 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
◆ Lmin
double JOSCPROB::JBaselineComputer::Lmin |
|
protected |
◆ Lmax
double JOSCPROB::JBaselineComputer::Lmax |
|
protected |
The documentation for this struct was generated from the following file: