Run.
1032 using namespace std;
1033 using namespace JPP;
1043 if (buffer.empty() || buffer[0] ==
skip_t) {
1047 istringstream
is(buffer);
1055 }
else if (key ==
fix_t) {
1060 if (
is >> type >>
id) {
1075 JParameters_t
input;
1077 if (
is >> stage >> input) {
1079 STATUS(
"stage " << setw(3) << stage <<
" {" << input <<
"}" << endl);
1085 ofstream out(
MAKE_CSTRING(
"stage-" << stage <<
".log"));
1090 switch (stage[stage.size() - 1]) {
void initialise(const JSetup &setup)
Initialise.
void stage_x(const JParameters_t ¶meters)
Fit procedure to determine the (x,y,z) positions of the modules.
void stage_b(const JParameters_t ¶meters)
Fit procedure to determine the stretching and z-positions of individual strings.
void stage_a(const JParameters_t ¶meters)
Fit procedure to determine the positions of the strings and tripods.
static const std::string fix_t
fix objects
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
#define MAKE_CSTRING(A)
Make C-string.
Auxiliary data structure for floating point format specification.
static const std::string stage_t
fit stage
ids_t strings
identifiers of strings
static const std::string tripod_t
tripod
void store(const std::string &dir=".")
Store data in given directory.
This class can be used to temporarily redirect one output (input) stream to another output (input) st...
void fix(const ids_t &B)
Fix.
std::vector< input_type > input
ids_t transmitters
identifiers of strings with transmitter
Auxiliary class for CPU timing and usage.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
void stage_c(const JParameters_t ¶meters)
Fit procedure to determine the z-positions of the modules.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
ids_t hydrophones
identifiers of strings with hydrophone
ids_t tripods
identifiers of tripods
*fatal Wrong number of arguments esac for INPUT_FILE in eval ls rt $DIR stage
static const char skip_t
Script commands.
void stage_d(const JParameters_t ¶meters)
Fit procedure to determine the z-positions of anchors.
then set_variable DETECTOR set_variable OUTPUT_FILE set_variable DAQ_FILE set_variable PMT_FILE else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type
static const std::string initialise_t
initialise
Exception for accessing a value in a collection that is outside of its range.
void stage_0(const JParameters_t ¶meters)
Fit procedure to determine the positions of tripods and transmitters using strings that are fixed...
unsigned long long usec_wall
static const std::string string_t
string