42 friend inline std::istream&
operator>>(std::istream& in, seabird&
object)
66 friend inline std::ostream&
operator<<(std::ostream& out,
const seabird&
object)
68 return out <<
object.P <<
' '
94int main(
int argc,
char **argv)
121 catch(
const exception &error) {
128 const double latitude = 36.0 + 16.0/60.0;
129 const double g = getGravity(latitude);
132 DEBUG(
"Gravitational constant [m/s^2] " <<
FIXED(7,3) << g <<
endl);
134 ifstream in(inputFile.c_str());
136 while (in.peek() ==
'#') {
145 TH1D hz(
"hz",
NULL, 101, -2.5, +2.5);
146 TH1D h1(
"v1 [DelGrosso]",
NULL, 101, -1.0, +1.0);
147 TH1D h2(
"v2 [KM3NeT]",
NULL, 101, -1.0, +1.0);
150 for (seabird
object; in >> object; ) {
152 const double z = getDepth(
object.P * 1.0e-2, latitude, option);
153 const double v1 = getVelocityDelGrosso(
object.P * 0.1,
object.S,
object.T);
155 const double P = getPressure(
object.z, latitude, option);
157 if (
debug >= debug_t) {
162 <<
FIXED(9,6) <<
object.v <<
' ';
175 hz.Fill(
object.z - z);
176 h1.Fill(
object.v -
v1);
177 h2.Fill(
object.v -
v2);
180 ga.put(
object.z,
object.v);
181 gb.put(
object.z,
v1);
182 gc.put(
object.z,
object.v -
v1);
183 gd.put(
object.z,
object.v -
v2);
190 out << hz << h1 << h2;
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to define a range between two values.
int main(int argc, char **argv)
Sound velocity according UNESCO equation.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Implementation for depth dependend velocity of sound.
JSoundVelocity & set(const double z0)
Set depth.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary data structure to build TGraph.