1 #ifndef __JACOUSTICS__JMECHANICS__ 
    2 #define __JACOUSTICS__JMECHANICS__ 
   28 namespace JACOUSTICS {}
 
   29 namespace JPP { 
using namespace JACOUSTICS; }
 
   31 namespace JACOUSTICS {
 
   72       return height  +  this->
b * 
log(1.0 - this->
a * height);
 
   85       return in >> parameters.
a >> parameters.
b;
 
   98       return out << 
FIXED(7,5) << parameters.
a << 
' ' 
   99                  << 
FIXED(7,3) << parameters.
b;
 
  139       std::ifstream 
in(file_name.c_str());
 
  174       if      ((p = this->find(
string))   != this->end())
 
  176       else if ((p = this->find(
WILDCARD)) != this->end())
 
  194       JStringStream 
is(in);
 
  202       is >> 
object.comment;
 
  207       while (is >> 
string >> mechanics) {
 
  208         object[
string] = mechanics;
 
  226       out << 
object.comment;
 
  228       for (JDetectorMechanics::const_iterator 
i = 
object.begin(); 
i != 
object.end(); ++
i) {
 
  229         out << setw(4) << 
i->first << 
' ' << 
i->second << endl;
 
Exception for opening of file. 
 
Auxiliary data structure for mechanical model parameters of strings in a given detector. 
 
static JDetectorMechanics getMechanics
Function object to get string mechanics. 
 
then set_variable DIR else fatal Wrong number of arguments fi for INPUT_FILE in ls rt $DIR stage * log
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
const JMechanics & operator()(const int string) const 
Get mechanical parameters for given string. 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
wild card for string number. 
 
Auxiliary data structure for floating point format specification. 
 
JMechanics(const double a, const double b)
Constructor. 
 
#define MAKE_STRING(A)
Make string. 
 
friend std::istream & operator>>(std::istream &in, JDetectorMechanics &object)
Read detector mechanics from input. 
 
friend std::istream & operator>>(std::istream &in, JMechanics ¶meters)
Read parameters from input stream. 
 
double a
0 <= a < (maximal height)⁻1; [m^-1] 
 
double getHeight(const double height) const 
Get effective height for given actual height. 
 
JMechanics()
Default constructor. 
 
void load(const std::string &file_name)
Load mechanical model parameters from file. 
 
Auxiliary data structure for sequence of same character. 
 
static JStat getFileStatus
Function object for file status. 
 
void load(const int id)
Load mechanical model parameters for given detector identifier. 
 
static std::string getFilename(const int id)
Get file name with mechanical model parameters for given detector identifier. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] 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
 
friend std::ostream & operator<<(std::ostream &out, const JMechanics ¶meters)
Write parameters to output stream. 
 
friend std::ostream & operator<<(std::ostream &out, const JDetectorMechanics &object)
Write detector mechanics to output. 
 
Auxiliary data structure for parameters of mechanical model.