Auxiliary class for start or end point evaluation.  
 More...
#include <JStart.hh>
 | 
| double  | Pmin1 | 
|   | minimal probability single observation  More...
  | 
|   | 
| double  | Pmin2 | 
|   | minimal probability each of two consecutive observations  More...
  | 
|   | 
Auxiliary class for start or end point evaluation. 
Definition at line 21 of file JStart.hh.
 
◆ JStart() [1/2]
Default constructor. 
Definition at line 25 of file JStart.hh.
 
 
◆ JStart() [2/2]
  
  
      
        
          | JFIT::JStart::JStart  | 
          ( | 
          const double  | 
          Pmin1,  | 
         
        
           | 
           | 
          const double  | 
          Pmin2  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | Pmin1 | minimal probability single observation  | 
    | Pmin2 | minimal probability each of two consecutive observations  | 
  
   
Definition at line 37 of file JStart.hh.
 
 
◆ is_valid()
  
  
      
        
          | bool JFIT::JStart::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check validity of start or end point conditions. 
- Returns
 - true if valid; else false 
 
Definition at line 50 of file JStart.hh.
 
 
◆ operator()() [1/2]
template<class JHit_t > 
  
  
      
        
          | bool JFIT::JStart::operator()  | 
          ( | 
          const JHit_t &  | 
          observation | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Evaluate start or end point conditions. 
The template parameter should correspond to a data type which has the member method: 
    double getP() const;    // return probability
- Parameters
 - 
  
  
 
- Returns
 - true if start or end point; else false 
 
Definition at line 68 of file JStart.hh.
   70       return observation.getP() < 
Pmin1;
 
 
 
 
◆ operator()() [2/2]
template<class JHit_t > 
  
  
      
        
          | bool JFIT::JStart::operator()  | 
          ( | 
          const JHit_t &  | 
          first,  | 
         
        
           | 
           | 
          const JHit_t &  | 
          second  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Evaluate start or end point conditions. 
The template parameter should correspond to a data type which has the member method: 
    double getP() const;    // return probability
- Parameters
 - 
  
    | first | first observation  | 
    | second | second observation  | 
  
   
- Returns
 - true if start or end point; else false 
 
Definition at line 87 of file JStart.hh.
   90       return ((first.getP() < 
Pmin1) ||
 
   91               (first.getP() < 
Pmin2 && second.getP() < 
Pmin2));
 
 
 
 
◆ find()
template<class T > 
  
  
      
        
          | T JFIT::JStart::find  | 
          ( | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Get start or end point of muon trajectory. 
The template parameter should correspond to a data type which has the member method: 
    double getP() const;    // return probability
 The input data should have been sorted along the muon path.
- Parameters
 - 
  
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
Definition at line 108 of file JStart.hh.
  110       if (__begin != __end) {
 
  111         for (T q = __begin, p = q++; q != __end; ++p, ++q) {
 
  112           if ((*
this)(*p,*q)) {
 
 
 
 
◆ operator>>
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JStart &  | 
          parameters  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read parameters from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | parameters | parameters  | 
  
   
- Returns
 - input stream 
 
Definition at line 129 of file JStart.hh.
 
 
◆ operator<<
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JStart &  | 
          parameters  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write parameters to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | parameters | parameters  | 
  
   
- Returns
 - output stream 
 
Definition at line 144 of file JStart.hh.
  146       out << parameters.
Pmin1 << 
' ' << parameters.
Pmin2;
 
 
 
 
◆ Pmin1
      
        
          | double JFIT::JStart::Pmin1 | 
        
      
 
minimal probability single observation 
Definition at line 152 of file JStart.hh.
 
 
◆ Pmin2
      
        
          | double JFIT::JStart::Pmin2 | 
        
      
 
minimal probability each of two consecutive observations 
Definition at line 153 of file JStart.hh.
 
 
The documentation for this struct was generated from the following file: