Auxiliary data structure for storing and calculating baselines.
More...
#include <JBaselineComputer.hh>
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.
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.
102 return (R*R -
r*
r - L*L) / (2*L*
r);
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.
117 const double ct = (fabs(costh) < 1.0 ? costh : (costh < 0 ? -1.0 : 1.0));
119 return (-
r * ct + sqrt(R*R -
r*
r * (1 - ct) * (1 + ct)));
◆ 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.
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.
144 return in >>
object.Lmin >>
object.Lmax;
◆ operator<<
Stream output of baseline calculator.
- Parameters
-
out | output stream |
object | object |
- Returns
- output stream
Definition at line 155 of file JBaselineComputer.hh.
159 return out <<
FIXED(15,5) <<
object.Lmin <<
FIXED(15,5) <<
object.Lmax;
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: