PMT combinatorics for optical module.  
 More...
#include <JCalibrateK40.hh>
PMT combinatorics for optical module. 
Definition at line 102 of file JCalibrateK40.hh.
 
  
  
      
        
          | JCALIBRATE::JCombinatorics_t::JCombinatorics_t  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JCALIBRATE::JCombinatorics_t::JCombinatorics_t  | 
          ( | 
          const JModule &  | 
          module | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 117 of file JCalibrateK40.hh.
Auxiliary class to sort pairs of PMT addresses within optical module. 
 
 
 
 
  
  
      
        
          | const JCombinatorics& JTOOLS::JCombinatorics::getCombinatorics  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
  
  
      
        
          | void JTOOLS::JCombinatorics::configure  | 
          ( | 
          const int  | 
          numberOfIndices | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Configure. 
- Parameters
 - 
  
    | numberOfIndices | number of indices  | 
  
   
Definition at line 100 of file JCombinatorics.hh.
  104       zbuf2D.resize(numberOfIndices);
 
  106       for (
int i = 0; 
i != numberOfIndices; ++
i) {
 
  107         zbuf2D[
i].resize(numberOfIndices);
 
  110       for (
int i = 0; 
i != numberOfIndices; ++
i) {
 
  114         for (
int j = 
i; ++
j != numberOfIndices; ) {
 
JCombinatorics::pair_type pair_type
 
 
 
 
  
  
      
        
          | size_t JTOOLS::JCombinatorics::getNumberOfIndices  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
  
  
      
        
          | size_t JTOOLS::JCombinatorics::getNumberOfPairs  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
  
  
      
        
          | int JTOOLS::JCombinatorics::getIndex  | 
          ( | 
          const int  | 
          first,  | 
         
        
           | 
           | 
          const int  | 
          second  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get index of pair of indices. 
- Parameters
 - 
  
    | first | first address  | 
    | second | second address  | 
  
   
- Returns
 - index (-1 if first and second address are equal) 
 
Definition at line 154 of file JCombinatorics.hh.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
 
 
 
  
  
      
        
          | int JTOOLS::JCombinatorics::getIndex  | 
          ( | 
          const pair_type &  | 
          pair | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get index of pair. 
- Parameters
 - 
  
  
 
- Returns
 - index (-1 if first and second address are equal) 
 
Definition at line 166 of file JCombinatorics.hh.
  168       return getIndex(pair.first, pair.second);
 
 
 
 
  
  
      
        
          | const pair_type& JTOOLS::JCombinatorics::getPair  | 
          ( | 
          const int  | 
          index | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get pair of indices for given index. 
- Parameters
 - 
  
  
 
- Returns
 - pair of indices 
 
Definition at line 178 of file JCombinatorics.hh.
 
 
template<class JComparator_t > 
  
  
      
        
          | void JTOOLS::JCombinatorics::sort  | 
          ( | 
          JComparator_t  | 
          comparator | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Sort address pairs. 
- Parameters
 - 
  
    | comparator | comparator for pairs  | 
  
   
Definition at line 190 of file JCombinatorics.hh.
  192       std::stable_sort(
zbuf1D.begin(), 
zbuf1D.end(), comparator);
 
  194       for (
int i = 0; 
i != (int) 
zbuf1D.size(); ++
i) {
 
  198         zbuf2D[pair.first][pair.second] = 
i;
 
  199         zbuf2D[pair.second][pair.first] = 
i;
 
  202       for (
int i = 0; 
i != (int) 
zbuf2D.size(); ++
i) {
 
JCombinatorics::pair_type pair_type
 
 
 
 
  
  
      
        
          | static int JTOOLS::JCombinatorics::getSign  | 
          ( | 
          const int  | 
          first,  | 
         
        
           | 
           | 
          const int  | 
          second  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Sign of pair of indices. 
- Parameters
 - 
  
    | first | first address  | 
    | second | second address  | 
  
   
- Returns
 - +1 if second >= first; else -1 
 
Definition at line 215 of file JCombinatorics.hh.
  217       return (second >= 
first ? +1 : -1);
 
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
 
 
 
  
  
      
        
          | static int JTOOLS::JCombinatorics::getSign  | 
          ( | 
          const pair_type &  | 
          pair | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Sign of pair of indices. 
- Parameters
 - 
  
  
 
- Returns
 - +1 if second >= first; else -1 
 
Definition at line 227 of file JCombinatorics.hh.
  229       return getSign(pair.first, pair.second);
 
 
 
 
The documentation for this struct was generated from the following file: