Model.  
 More...
#include <JModel.hh>
Model. 
Definition at line 32 of file JCompass/JModel.hh.
 
◆ JModel() [1/3]
  
  
      
        
          | JCOMPASS::JModel::JModel  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 38 of file JCompass/JModel.hh.
static const JQuaternion3D & getIdentity()
Get identity quaternion.
 
 
 
 
◆ JModel() [2/3]
◆ JModel() [3/3]
template<class T > 
  
  
      
        
          | JCOMPASS::JModel::JModel  | 
          ( | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
The data type corresponding to the hits should provide for the following policy methods. 
   double        getZ();             // get z-position
   JQuaternion3D getQuaternion();    // get quaternion
 Note that the input data should be ordered with increasing z-positions.
- Parameters
 - 
  
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
Definition at line 71 of file JCompass/JModel.hh.
   79       const int N = 
distance(__begin, __end);
 
   85         for (T q = __begin, p = q++; q != __end; ++p, ++q) {
 
   87           const double dz = q->getZ() - p->getZ();
 
   94             Q.mul(q->getQuaternion());
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
 
Data structure for unit quaternion in three dimensions.
 
const JQuaternion3D & getQuaternion() const
Get quaternion.
 
Exception for accessing a value in a collection that is outside of its range.
 
static const JVector3D JVector3Z_t(0, 0, 1)
unit z-vector
 
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
 
T pow(const T &x, const double y)
Power .
 
std::iterator_traits< T >::value_type getAverage(T __begin, T __end)
Get average.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
double getZ() const
Get z-position.
 
static const int NUMBER_OF_PARAMETERS
number of parameters of fit per quaternion
 
Auxiliary data structure for decomposition of quaternion in twist and swing quaternions.
 
JQuaternion3D twist
rotation around parallel axis
 
 
 
 
◆ add()
Add model. 
- Parameters
 - 
  
  
 
- Returns
 - this model 
 
Definition at line 121 of file JCompass/JModel.hh.
JQuaternion3D & normalise()
Normalise quaternion.
 
 
 
 
◆ sub()
◆ mul() [1/2]
  
  
      
        
          | JModel& JCOMPASS::JModel::mul  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Scale model. 
- Parameters
 - 
  
    | factor | multiplication factor  | 
  
   
- Returns
 - this model 
 
Definition at line 157 of file JCompass/JModel.hh.
JQuaternion3D & pow(const double y)
Raise quaternion to given power.
 
 
 
 
◆ operator()()
  
  
      
        
          | JQuaternion3D JCOMPASS::JModel::operator()  | 
          ( | 
          const double  | 
          z | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get quaternion at given z-position. 
- Parameters
 - 
  
  
 
- Returns
 - quaternion 
 
Definition at line 172 of file JCompass/JModel.hh.
 
 
◆ mul() [2/2]
template<class JFirst_t , class JSecond_t > 
  
  
      
        
          | JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul  | 
          ( | 
          const JSecond_t &  | 
          object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Multiply with object. 
- Parameters
 - 
  
  
 
- Returns
 - result object 
 
Definition at line 354 of file JMath.hh.
  356       return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(
static_cast<const JFirst_t&
>(*
this), 
object);
 
 
 
 
◆ NUMBER_OF_PARAMETERS
  
  
      
        
          | const int JCOMPASS::JModel::NUMBER_OF_PARAMETERS = 4 | 
         
       
   | 
  
static   | 
  
 
 
◆ Q0
◆ Q1
The documentation for this struct was generated from the following file: