Auxiliary class to find solution(s) to 
 of the square root expression:  
 More...
#include <JPDF.hh>
 | 
|   | JRoot (const double R, const double n, const double t) | 
|   | Determine solution(s) of quadratic equation.  More...
  | 
|   | 
| double  | operator[] (const int i) const | 
|   | Get result by index.  More...
  | 
|   | 
Auxiliary class to find solution(s) to 
 of the square root expression: 
 where 
 is the index of refraction. 
Definition at line 1793 of file JPDF.hh.
 
◆ JRoot()
  
  
      
        
          | JPHYSICS::JPDF::JRoot::JRoot  | 
          ( | 
          const double  | 
          R,  | 
         
        
           | 
           | 
          const double  | 
          n,  | 
         
        
           | 
           | 
          const double  | 
          t  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Determine solution(s) of quadratic equation. 
- Parameters
 - 
  
    | R | minimal distance of approach [m]  | 
    | n | index of refraction  | 
    | t | time at z = 0 [ns]  | 
  
   
Definition at line 1802 of file JPDF.hh.
 1811         const double a  =  
n*
n        -  1.0;
 
 1812         const double b  =  2*
C*t;
 
 1813         const double c  =  R*
n * R*
n  -  
C*t * 
C*t;
 
 1815         const double q  =  b*b - 4*a*c;
 
 1819           first    = (-b - sqrt(q)) / (2*a);
 
 1820           second   = (-b + sqrt(q)) / (2*a);
 
 
 
 
◆ operator[]()
  
  
      
        
          | double JPHYSICS::JPDF::JRoot::operator[]  | 
          ( | 
          const int  | 
          i | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get result by index. 
- Parameters
 - 
  
  
 
- Returns
 - i == 0, first; i == 1, second; else throws exception 
 
Definition at line 1833 of file JPDF.hh.
 1844           throw JException(
"JRoot::operator[] invalid index");
 
 
 
 
◆ is_valid
      
        
          | bool JPHYSICS::JPDF::JRoot::is_valid | 
        
      
 
validity of solutions 
Definition at line 1848 of file JPDF.hh.
 
 
◆ first
      
        
          | double JPHYSICS::JPDF::JRoot::first | 
        
      
 
most upstream solution 
Definition at line 1849 of file JPDF.hh.
 
 
◆ second
      
        
          | double JPHYSICS::JPDF::JRoot::second | 
        
      
 
most downstream solution 
Definition at line 1850 of file JPDF.hh.
 
 
The documentation for this class was generated from the following file: