1#ifndef __JACOUSTICS__JMECHANICS_T__
2#define __JACOUSTICS__JMECHANICS_T__
62 return height + this->
b * log(1.0 - this->
a * height);
75 return in >> parameters.
a >> parameters.
b;
88 return out <<
FIXED(7,5) << parameters.
a <<
' '
89 <<
FIXED(7,3) << parameters.
b;
125 if ((p = this->find(
string)) != this->end())
127 else if ((p = this->find(
WILDCARD)) != this->end())
145 for (JDetectorMechanics_t::const_iterator i =
object.begin(); i !=
object.end(); ++i) {
146 out << setw(4) << i->first <<
' ' << i->second << endl;
Auxiliary classes and methods for acoustic position calibration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Auxiliary data structure for mechanical model parameters of strings in a given detector.
@ WILDCARD
wild card for string number.
ClassDef(JDetectorMechanics_t, 1)
friend std::ostream & operator<<(std::ostream &out, const JDetectorMechanics_t &object)
Write detector mechanics to output.
const JMechanics & operator()(const int string) const
Get mechanical parameters for given string.
Auxiliary data structure for parameters of mechanical model.
double a
0 <= a < (maximal height)⁻1; [m^-1]
JMechanics(const double a, const double b)
Constructor.
friend std::istream & operator>>(std::istream &in, JMechanics ¶meters)
Read parameters from input stream.
friend std::ostream & operator<<(std::ostream &out, const JMechanics ¶meters)
Write parameters to output stream.
double getHeight(const double height) const
Get effective height for given actual height.
JMechanics()
Default constructor.
ClassDefNV(JMechanics, 1)