Auxiliary class to sort pairs of PMT addresses within optical module.  
 More...
#include <JCalibrateK40.hh>
Auxiliary class to sort pairs of PMT addresses within optical module. 
Definition at line 47 of file JCalibrateK40.hh.
 
◆ JPairwiseComparator()
  
  
      
        
          | JCALIBRATE::JPairwiseComparator::JPairwiseComparator  | 
          ( | 
          const JModule & |           module,  | 
         
        
           | 
           | 
          const double |           epsilon = 1.0e-5 ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | module | detector module  | 
    | epsilon | precision  | 
  
   
Definition at line 54 of file JCalibrateK40.hh.
 
 
◆ operator()()
  
  
      
        
          | bool JCALIBRATE::JPairwiseComparator::operator()  | 
          ( | 
          const pair_type & |           first,  | 
         
        
           | 
           | 
          const pair_type & |           second ) const | 
         
       
   | 
  
inline   | 
  
 
Comparison of two pairs of PMT addresses. 
- Parameters
 - 
  
    | first | first pair of PMT addresses  | 
    | second | second pair of PMT addresses  | 
  
   
- Returns
 - true if first pair has larger space angle; else false 
 
Definition at line 68 of file JCalibrateK40.hh.
   69    {
   71 
   74      else if (max(first.first, first.second) == max(second.first, second.second))
   75        return min(first.first, first.second) < min(second.first, second.second);
   76      else
   77        return max(first.first, first.second) < max(second.first, second.second);
   78    }
double getDot(const pair_type &pair) const
Get cosine of space angle between PMT axes.
 
 
 
 
◆ getDot()
  
  
      
        
          | double JCALIBRATE::JPairwiseComparator::getDot  | 
          ( | 
          const pair_type & |           pair | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get cosine of space angle between PMT axes. 
- Parameters
 - 
  
    | pair | pair of PMT addresses  | 
  
   
- Returns
 - cosine 
 
Definition at line 87 of file JCalibrateK40.hh.
   88    {
   91    }
const JPMT & getPMT(const int index) const
Get PMT.
 
const JDirection3D & getDirection() const
Get direction.
 
double getDot(const JFirst_t &first, const JSecond_t &second)
Get dot product of objects.
 
 
 
 
◆ module
  
  
      
        
          | const JModule& JCALIBRATE::JPairwiseComparator::module | 
         
       
   | 
  
protected   | 
  
 
 
◆ epsilon
  
  
      
        
          | const double JCALIBRATE::JPairwiseComparator::epsilon | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this struct was generated from the following file: