Determination of the time residual vector of hits for a track along z-axis (JFIT::JLine1Z).
More...
#include <JVectorNZ.hh>
Determination of the time residual vector of hits for a track along z-axis (JFIT::JLine1Z).
Definition at line 28 of file JVectorNZ.hh.
◆ JVectorNZ() [1/2]
JFIT::JVectorNZ::JVectorNZ |
( |
| ) |
|
|
inline |
◆ 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
-
track | track |
__begin | begin of data |
__end | end of data |
Definition at line 53 of file JVectorNZ.hh.
57 set(track, __begin, __end);
◆ 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
-
track | track |
__begin | begin of data |
__end | end of data |
Definition at line 75 of file JVectorNZ.hh.
83 for (T hit = __begin; hit != __end; ++hit) {
84 this->push_back(hit->getT() - track.
getT(JVector3D(hit->getX(),
◆ getDot()
double JMATH::JVectorND::getDot |
( |
const JVectorND & |
vector | ) |
const |
|
inlineinherited |
Get dot product.
- Parameters
-
- Returns
- dot product
Definition at line 41 of file JVectorND.hh.
45 const double* p = this-> data();
46 const double* q = vector.data();
48 for (
size_t i = this->size(); i != 0; --i, ++p, ++q) {
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JVectorNZ & |
Y |
|
) |
| |
|
friend |
Print ASCII formatted output.
- Parameters
-
out | output stream |
Y | Y vector |
- Returns
- output stream
Definition at line 98 of file JVectorNZ.hh.
104 for (JVectorNZ::const_iterator i = Y.begin(); i != Y.end(); ++i) {
105 out << showpos <<
SCIENTIFIC(10,2) << *i <<
' ';
The documentation for this class was generated from the following file: