Auxiliary data structure for storing and calculating baselines.  
 More...
#include <JBaselineComputer.hh>
 | 
| double  | Lmin | 
|   | Minimum baseline [km].  
  | 
|   | 
| double  | Lmax | 
|   | Maximum baseline [km].  
  | 
|   | 
Auxiliary data structure for storing and calculating baselines. 
Definition at line 31 of file JBaselineComputer.hh.
 
◆ JBaselineComputer() [1/2]
  
  
      
        
          | JOSCPROB::JBaselineComputer::JBaselineComputer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 38 of file JBaselineComputer.hh.
   38                        :
   41    {}
double Lmax
Maximum baseline [km].
 
double Lmin
Minimum baseline [km].
 
 
 
 
◆ JBaselineComputer() [2/2]
  
  
      
        
          | JOSCPROB::JBaselineComputer::JBaselineComputer  | 
          ( | 
          const double |           Lmin,  | 
         
        
           | 
           | 
          const double |           Lmax ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | Lmin | Minimum baseline [km]  | 
    | Lmax | Maximum baseline [km]  | 
  
   
Definition at line 50 of file JBaselineComputer.hh.
 
 
◆ getMinimumBaseline()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getMinimumBaseline  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getMaximumBaseline()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getMaximumBaseline  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getInnerRadius()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getInnerRadius  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getOuterRadius()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getOuterRadius  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getCosth()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getCosth  | 
          ( | 
          const double |           L | ) | 
           const | 
         
       
   | 
  
inlinefinaloverridevirtual   | 
  
 
Get cosine zenith angle for a given baseline. 
- Parameters
 - 
  
  
 
- Returns
 - cosine zenith angle 
 
Implements JOSCPROB::JBaselineComputerInterface.
Definition at line 107 of file JBaselineComputer.hh.
  108    {
  111      
  112      return (R*R - r*r - L*L) / (2*L*r);
  113    }
double getInnerRadius() const
Get inner radius.
 
double getOuterRadius() const
Get outer radius.
 
 
 
 
◆ getBaseline()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::getBaseline  | 
          ( | 
          const double |           costh | ) | 
           const | 
         
       
   | 
  
inlinefinaloverridevirtual   | 
  
 
Get baseline for a given cosine zenith angle. 
- Parameters
 - 
  
  
 
- Returns
 - baseline [km] 
 
Implements JOSCPROB::JBaselineComputerInterface.
Definition at line 122 of file JBaselineComputer.hh.
  123    {
  126 
  127      const double ct = (fabs(costh) < 1.0 ? costh : (costh < 0 ? -1.0 : 1.0));
  128    
  129      return (-r * ct + sqrt(R*R - r*r * (1 - ct) * (1 + ct)));
  130    }
 
 
 
◆ operator()()
  
  
      
        
          | double JOSCPROB::JBaselineComputer::operator()  | 
          ( | 
          const double |           costh | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get baseline for a given cosine zenith angle. 
- Parameters
 - 
  
  
 
- Returns
 - baseline [km] 
 
Definition at line 139 of file JBaselineComputer.hh.
  140    {
  142    }
double getBaseline(const double costh) const override final
Get baseline for a given cosine zenith angle.
 
 
 
 
◆ read()
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ write()
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ operator>>
Stream input of baseline calculator. 
- Parameters
 - 
  
    | in | input stream  | 
    | object | object  | 
  
   
- Returns
 - input stream 
 
Definition at line 176 of file JBaselineComputer.hh.
  177    {
  178      return in >> object.Lmin >> object.Lmax;
  179    }
 
 
 
◆ operator<<
Stream output of baseline calculator. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | object  | 
  
   
- Returns
 - output stream 
 
Definition at line 189 of file JBaselineComputer.hh.
  190    {
  192      
  193      return out << 
FIXED(15,5) << 
object.Lmin << 
FIXED(15,5) << 
object.Lmax;
 
  194    }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for floating point format specification.
 
 
 
 
◆ Lmin
  
  
      
        
          | double JOSCPROB::JBaselineComputer::Lmin | 
         
       
   | 
  
protected   | 
  
 
 
◆ Lmax
  
  
      
        
          | double JOSCPROB::JBaselineComputer::Lmax | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this struct was generated from the following file: