Direction set covering (part of) circle.  
 More...
#include <JOmega2D.hh>
Direction set covering (part of) circle. 
Definition at line 60 of file JOmega2D.hh.
 
  
  
      
        
          | JGEOMETRY2D::JOmega2D::JOmega2D  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 67 of file JOmega2D.hh.
Base class for direction set. 
 
 
 
 
  
  
      
        
          | JGEOMETRY2D::JOmega2D::JOmega2D  | 
          ( | 
          const double  | 
          grid | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | grid | angular spacing [rad]  | 
  
   
Definition at line 77 of file JOmega2D.hh.
Data structure for angle in two dimensions. 
 
static const double PI
Mathematical constants. 
 
Base class for direction set. 
 
void configure(const JAngle2D &dir, const double phiMax, const double grid)
Configure direction set. 
 
 
 
 
  
  
      
        
          | JGEOMETRY2D::JOmega2D::JOmega2D  | 
          ( | 
          const JAngle2D &  | 
          dir,  | 
         
        
           | 
           | 
          const double  | 
          phiMax,  | 
         
        
           | 
           | 
          const double  | 
          grid  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | dir | principal direction  | 
    | phiMax | maximal angle [rad]  | 
    | grid | angular spacing [rad]  | 
  
   
Definition at line 92 of file JOmega2D.hh.
Base class for direction set. 
 
void configure(const JAngle2D &dir, const double phiMax, const double grid)
Configure direction set. 
 
 
 
 
  
  
      
        
          | void JGEOMETRY2D::JOmega2D::configure  | 
          ( | 
          const JAngle2D &  | 
          dir,  | 
         
        
           | 
           | 
          const double  | 
          phiMax,  | 
         
        
           | 
           | 
          const double  | 
          grid  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Configure direction set. 
- Parameters
 - 
  
    | dir | principal direction  | 
    | phiMax | maximal angle [rad]  | 
    | grid | angular spacing [rad]  | 
  
   
Definition at line 108 of file JOmega2D.hh.
  116       double phi_min = 0.0;
 
  117       double phi_max = phiMax;
 
  119       if (phi_max < 0.0) phi_max = 0.0;
 
  120       if (phi_max > 
PI)  phi_max = 
PI;
 
  122       if (phi_max > phi_min) {
 
  124         const double rad = phi_max - phi_min; 
 
  125         const double bin = rad / floor(rad/grid + 0.5);             
 
  127         for (
double phi = phi_min; phi < phi_max + 0.5*bin; phi += bin) {
 
  131           } 
else if (
PI - phi < 0.5*bin) {
 
  134             push_back(dir + phi);
 
  135             push_back(dir - phi);
 
static const double PI
Mathematical constants. 
 
 
 
 
  
  
      
        
          | int JGEOMETRY2D::JOmega2D_t::find  | 
          ( | 
          const JAngle2D &  | 
          dir | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get index of direction closest to given direction. 
- Parameters
 - 
  
  
 
- Returns
 - index (-1 if error) 
 
Definition at line 37 of file JOmega2D.hh.
   42       for (const_iterator 
i = this->begin(); 
i != this->end(); ++
i) {
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
double getDot(const JAngle2D &angle) const 
Get dot product. 
 
 
 
 
The documentation for this class was generated from the following file: