Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JFIT::JVectorNZ Class Reference

Determination of the time residual vector of hits for a track along z-axis (JFIT::JLine1Z). More...

#include <JVectorNZ.hh>

Inheritance diagram for JFIT::JVectorNZ:

Public Member Functions

 JVectorNZ ()
 Default contructor.
 
template<class T >
 JVectorNZ (const JLine1Z &track, T __begin, T __end)
 Constructor.
 
template<class T >
void set (const JLine1Z &track, T __begin, T __end)
 Set time residual vector.
 

Detailed Description

Determination of the time residual vector of hits for a track along z-axis (JFIT::JLine1Z).

Definition at line 21 of file JVectorNZ.hh.

Constructor & Destructor Documentation

◆ JVectorNZ() [1/2]

JFIT::JVectorNZ::JVectorNZ ( )
inline

Default contructor.

Definition at line 28 of file JVectorNZ.hh.

29 {}

◆ JVectorNZ() [2/2]

template<class T >
JFIT::JVectorNZ::JVectorNZ ( const JLine1Z & track,
T __begin,
T __end )
inline

Constructor.

The template argument T refers to an iterator of a data structure which should have the following member methods:

  • double getX(); // [m]
  • double getY(); // [m]
  • double getZ(); // [m]
  • double getT(); // [ns]
Parameters
tracktrack
__beginbegin of data
__endend of data

Definition at line 46 of file JVectorNZ.hh.

49 {
50 set(track, __begin, __end);
51 }
void set(const JLine1Z &track, T __begin, T __end)
Set time residual vector.
Definition JVectorNZ.hh:68

Member Function Documentation

◆ set()

template<class T >
void JFIT::JVectorNZ::set ( const JLine1Z & track,
T __begin,
T __end )
inline

Set time residual vector.

The template argument T refers to an iterator of a data structure which should have the following member methods:

  • double getX(); // [m]
  • double getY(); // [m]
  • double getZ(); // [m]
  • double getT(); // [ns]
Parameters
tracktrack
__beginbegin of data
__endend of data

Definition at line 68 of file JVectorNZ.hh.

71 {
72 using JGEOMETRY3D::JVector3D;
73
74 this->clear();
75
76 for (T hit = __begin; hit != __end; ++hit) {
77 this->push_back(hit->getT() - track.getT(JVector3D(hit->getX(),
78 hit->getY(),
79 hit->getZ())));
80 }
81 }

The documentation for this class was generated from the following file: