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.
 
  
  
      
        
          | 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.
 
 
  
  
      
        
          | 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.
   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);
 
   77         return max(first.first, first.second) < max(second.first, second.second);
 
double getDot(const pair_type &pair) const 
Get cosine of space angle between PMT axes. 
 
 
 
 
  
  
      
        
          | 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.
double getDot(const JFirst_t &first, const JSecond_t &second)
Get dot product of objects. 
 
const JPMT & getPMT(const int index) const 
Get PMT. 
 
 
 
 
  
  
      
        
          | const JModule& JCALIBRATE::JPairwiseComparator::__module | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | const double JCALIBRATE::JPairwiseComparator::__epsilon | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this struct was generated from the following file: