#include <iostream>
#include <iomanip>
#include <fstream>
#include "JTools/JGrid.hh"
#include "JAcoustics/JGeometry.hh"
#include "JAcoustics/JModel.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
| Example application for acoustics geometry. More...
|
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Example application for acoustics geometry.
Definition at line 16 of file JGeometry.cc.
31 JParser<> zap(
"Example application for acoustics geometry.");
41 catch(
const exception &error) {
42 FATAL(error.what() << endl);
48 const double x0 = 0.0;
49 const double y0 = 0.0;
50 const double z0 = 0.0;
54 string.has_hydrophone =
true;
58 for (
int i = 1; i <= grid.getSize(); ++i) {
63 <<
FIXED(6,3) << parameters.
tx <<
' '
64 <<
FIXED(6,3) << parameters.
ty << endl;
74 for (
int i = 1; i <= grid.getSize(); ++i) {
81 cout << setw(2) << i <<
' '
94 for (
int i = 1; i <= grid.getSize(); ++i) {
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Data structure for position in three dimensions.
const JPosition3D & getPosition() const
Get position.
double getY() const
Get y position.
double getZ() const
Get z position.
double getX() const
Get x position.
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.
Auxiliary data structure for parameters of mechanical model.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...