1 #ifndef __JACOUSTICS__JMECHANICS__ 
    2 #define __JACOUSTICS__JMECHANICS__ 
   27 namespace JACOUSTICS {}
 
   28 namespace JPP { 
using namespace JACOUSTICS; }
 
   30 namespace JACOUSTICS {
 
   70       return height  +  this->
b * 
log(1.0 - this->
a * height);
 
   83       return in >> parameters.
a >> parameters.
b;
 
   96       return out << 
FIXED(7,5) << parameters.
a << 
' ' 
   97                  << 
FIXED(7,3) << parameters.
b;
 
  131       const string file_name = 
MAKE_STRING(
"mechanics_" << 
FILL(8,
'0') << 
id << 
".txt");
 
  144       std::ifstream 
in(file_name.c_str());
 
  175       if      ((p = this->find(
string))    != this->end())
 
  177       else if ((p = this->find(
WILD_CARD)) != this->end())
 
  195       JStringStream 
is(in);
 
  203       is >> 
object.comment;
 
  208       while (is >> 
string >> mechanics) {
 
  209         object[
string] = mechanics;
 
  227       out << 
object.comment;
 
  229       for (JDetectorMechanics::const_iterator i = 
object.begin(); i != 
object.end(); ++i) {
 
  230         out << setw(4) << i->first << 
' ' << i->second << endl;
 
Auxiliary data structure for mechanical model parameters of strings in a given detector. 
 
static JDetectorMechanics getMechanics
Function object to get string mechanics. 
 
static const char *const LD_LIBRARY_PATH
Nick names of environment variables. 
 
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
 
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. 
 
wild card for string number. 
 
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. 
 
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. 
 
std::string getFullFilename(const std::string &variable, const std::string &file_name)
Get full file name (see JEEP::getPath). 
 
then cat $TRIPOD_INITIAL<< EOF1 256877.5 4743716.7-2438.42 256815.5 4743395.0-2435.53 257096.2 4743636.0-2439.5EOFfiif[[!-f $DETECTOR]];then JEditDetector-a $DETECTOR_INITIAL-s"-1 addz -6.9"-o $DETECTOR--!eval`JPrintDetector-a $DETECTOR-O SUMMARY`for STRING in ${STRINGS[*]};do set_variable MODULE`getModule-a $DETECTOR-L"$STRING 0"`JEditDetector-a $DETECTOR-M"$MODULE setz -2.9"-o $DETECTOR--!donefiif[[!-f $TRIPOD]];then cp-p $TRIPOD_INITIAL $TRIPODfiJAcoustics.sh $DETECTOR_IDcat > acoustics_trigger_parameters txt<< EOFQ=0.0;TMax_s=0.020;numberOfHits=90;EOFJAcousticsEventBuilder.sh $DETECTOR $RUNS[*]INPUT_FILES=(`ls KM3NeT_ ${(l:8::0::0:) DETECTOR_ID}_0 *${^RUNS}_event.root`) cd $WORKDIRif[!$HOMEDIR-ef $WORKDIR];then cp-p $HOMEDIR/$DETECTOR $WORKDIR cp-p $HOMEDIR/${^ACOUSTICS_KEYS}.txt $WORKDIR cp-p $HOMEDIR/${^INPUT_FILES}$WORKDIRfisource $JPP_DIR/examples/JAcoustics/acoustics-fit-toolkit.shtimer_startinitialise stage_b 1 0 100.0e-6 0.002 0.1 0 > &stage log
 
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
 
Auxiliary data structure for parameters of mechanical model.