String parameters.  
 More...
#include <JModel.hh>
 | 
| std::istream &  | operator>> (std::istream &in, JString &string) | 
|   | Read string parameters from input stream.  
  | 
|   | 
| std::ostream &  | operator<< (std::ostream &out, const JString &string) | 
|   | Write string parameters to output stream.  
  | 
|   | 
String parameters. 
Definition at line 59 of file JAcoustics/JModel.hh.
 
◆ JString() [1/2]
  
  
      
        
          | JACOUSTICS::JMODEL::JString::JString  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JString() [2/2]
  
  
      
        
          | JACOUSTICS::JMODEL::JString::JString  | 
          ( | 
          const double |           tx,  | 
         
        
           | 
           | 
          const double |           ty,  | 
         
        
           | 
           | 
          const double |           tx2 = 0.0,  | 
         
        
           | 
           | 
          const double |           ty2 = 0.0,  | 
         
        
           | 
           | 
          const double |           vs = 0.0 ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | tx | slope dx/dz  | 
    | ty | slope dy/dz  | 
    | tx2 | 2nd order correction of slope dx/dz  | 
    | ty2 | 2nd order correction of slope dy/dz  | 
    | vs | stretching factor  | 
  
   
Definition at line 84 of file JAcoustics/JModel.hh.
 
 
◆ getN()
Get number of fit parameters. 
- Parameters
 - 
  
  
 
- Returns
 - number of parameters 
 
Definition at line 103 of file JAcoustics/JModel.hh.
  104      {
  105        switch (option) {
  106 
  109          return 0;
  110          
  112          return 2;
  113          
  115          return 4;
  116          
  118          return 5;
  119 
  120        default:
  121          THROW(JValueOutOfRange, 
"Invalid option " << option);
 
  122        }
  123      }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
@ FIT_EMITTERS_AND_STRINGS_1st_ORDER_t
fit times of emission of emitters and tilt angles of strings
 
@ FIT_EMITTERS_AND_STRINGS_2nd_ORDER_t
fit times of emission of emitters and tilt angles of strings with second order correction
 
@ FIT_UNDEFINED_t
fit undefined
 
@ FIT_EMITTERS_ONLY_t
fit only times of emission of emitters
 
@ FIT_EMITTERS_AND_STRINGS_2nd_ORDER_AND_STRETCHING_t
fit times of emission of emitters and tilt angles of strings with second order correction and stretch...
 
 
 
 
◆ negate()
  
  
      
        
          | JString & JACOUSTICS::JMODEL::JString::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Negate string. 
- Returns
 - this string 
 
Definition at line 131 of file JAcoustics/JModel.hh.
  132      {
  138 
  139        return *this;
  140      }
 
 
 
◆ add()
Add string. 
- Parameters
 - 
  
  
 
- Returns
 - this string 
 
Definition at line 149 of file JAcoustics/JModel.hh.
  150      {
  156 
  157        return *this;
  158      }
 
 
 
◆ sub()
Subtract string. 
- Parameters
 - 
  
  
 
- Returns
 - this string 
 
Definition at line 167 of file JAcoustics/JModel.hh.
  168      {
  174 
  175        return *this;
  176      }
 
 
 
◆ mul() [1/2]
  
  
      
        
          | JString & JACOUSTICS::JMODEL::JString::mul  | 
          ( | 
          const double |           factor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Scale string. 
- Parameters
 - 
  
    | factor | multiplication factor  | 
  
   
- Returns
 - this string 
 
Definition at line 185 of file JAcoustics/JModel.hh.
  186      {
  192 
  193        return *this;
  194      }
 
 
 
◆ div()
  
  
      
        
          | JString & JACOUSTICS::JMODEL::JString::div  | 
          ( | 
          const double |           factor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Scale string. 
- Parameters
 - 
  
  
 
- Returns
 - this string 
 
Definition at line 203 of file JAcoustics/JModel.hh.
  204      {
  210 
  211        return *this;
  212      }
 
 
 
◆ equals()
  
  
      
        
          | bool JACOUSTICS::JMODEL::JString::equals  | 
          ( | 
          const JString & |           string,  | 
         
        
           | 
           | 
          const double |           precision = std::numeric_limits<double>::min() ) const | 
         
       
   | 
  
inline   | 
  
 
Check equality. 
- Parameters
 - 
  
    | string | string  | 
    | precision | precision  | 
  
   
- Returns
 - true if strings are equal; else false 
 
Definition at line 222 of file JAcoustics/JModel.hh.
  224      {
  225        return (fabs(
tx  - 
string.
tx)  <= precision &&
 
  226                fabs(
ty  - 
string.
ty)  <= precision &&
 
  227                fabs(
tx2 - 
string.
tx2) <= precision &&
 
  228                fabs(
ty2 - 
string.
ty2) <= precision &&
 
  229                fabs(
vs  - 
string.
vs)  <= precision);
 
  230      }
 
 
 
◆ getLengthSquared()
  
  
      
        
          | double JACOUSTICS::JMODEL::JString::getLengthSquared  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getLength()
  
  
      
        
          | double JACOUSTICS::JMODEL::JString::getLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get length. 
- Returns
 - length 
 
Definition at line 249 of file JAcoustics/JModel.hh.
  250      { 
  252      }
double getLengthSquared() const
Get length squared.
 
 
 
 
◆ getAngle()
  
  
      
        
          | double JACOUSTICS::JMODEL::JString::getAngle  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getDot()
  
  
      
        
          | double JACOUSTICS::JMODEL::JString::getDot  | 
          ( | 
          const JString & |           string | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 272 of file JAcoustics/JModel.hh.
  273      {
  274        return (
tx  * 
string.
tx   +
 
  279      }
 
 
 
◆ mul() [2/2]
template<class JFirst_t , class JSecond_t > 
  
  
      
        
          | JFirst_t & JMATH::JMath< JFirst_t, JSecond_t >::mul  | 
          ( | 
          const JSecond_t & |           object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Multiply with object. 
- Parameters
 - 
  
  
 
- Returns
 - result object 
 
Definition at line 354 of file JMath.hh.
  355    {
  356      return static_cast<JFirst_t&>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*this), object);
  357    }
 
 
 
◆ operator>>
  
  
      
        
          | std::istream & operator>>  | 
          ( | 
          std::istream & |           in,  | 
         
        
           | 
           | 
          JString & |           string ) | 
         
       
   | 
  
friend   | 
  
 
Read string parameters from input stream. 
- Parameters
 - 
  
    | in | input stream  | 
    | string | string  | 
  
   
- Returns
 - input stream 
 
Definition at line 289 of file JAcoustics/JModel.hh.
  290      {
  291        return in >> string.tx >> string.ty >> string.tx2 >> string.ty2 >> string.vs;
  292      }
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JString & |           string ) | 
         
       
   | 
  
friend   | 
  
 
Write string parameters to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | string | string  | 
  
   
- Returns
 - output stream 
 
Definition at line 302 of file JAcoustics/JModel.hh.
  303      {
  306 
  307        return out << 
FIXED(10,7)      << 
string.tx  << 
' ' 
  308                   << 
FIXED(10,7)      << 
string.ty  << 
' ' 
  311                   << 
FIXED(8,5)       << 
string.vs;
 
  312      }
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 floating point format specification.
 
 
 
 
◆ tx
      
        
          | double JACOUSTICS::JMODEL::JString::tx | 
        
      
 
 
◆ ty
      
        
          | double JACOUSTICS::JMODEL::JString::ty | 
        
      
 
 
◆ tx2
      
        
          | double JACOUSTICS::JMODEL::JString::tx2 | 
        
      
 
 
◆ ty2
      
        
          | double JACOUSTICS::JMODEL::JString::ty2 | 
        
      
 
 
◆ vs
      
        
          | double JACOUSTICS::JMODEL::JString::vs | 
        
      
 
 
The documentation for this struct was generated from the following file: