Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | 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:
std::vector< double >

Public Member Functions

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

Friends

std::ostream & operator<< (std::ostream &out, const JVectorNZ &Y)
 Print ASCII formatted output. More...
 

Detailed Description

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

Definition at line 25 of file JVectorNZ.hh.

Constructor & Destructor Documentation

JFIT::JVectorNZ::JVectorNZ ( )
inline

Default contructor.

Definition at line 32 of file JVectorNZ.hh.

template<class T >
JFIT::JVectorNZ::JVectorNZ ( const JLine1Z track,
__begin,
__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 51 of file JVectorNZ.hh.

53  :
55  {
56  set(track, __begin, __end);
57  }
void set(const JLine1Z &track, T __begin, T __end)
Set time residual vector.
Definition: JVectorNZ.hh:74

Member Function Documentation

template<class T >
void JFIT::JVectorNZ::set ( const JLine1Z track,
__begin,
__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 74 of file JVectorNZ.hh.

77  {
79 
80  this->clear();
81 
82  for (T hit = __begin; hit != __end; ++hit) {
83  this->push_back(hit->getT() - track.getT(JVector3D(hit->getX(),
84  hit->getY(),
85  hit->getZ())));
86  }
87  }
Data structure for vector in three dimensions.
Definition: JVector3D.hh:32
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
Definition: JLine1Z.hh:114

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JVectorNZ Y 
)
friend

Print ASCII formatted output.

Parameters
outoutput stream
YY vector
Returns
output stream

Definition at line 97 of file JVectorNZ.hh.

98  {
99  using namespace std;
100 
101  JFlags flags(out);
102 
103  for (JVectorNZ::const_iterator i = Y.begin(); i != Y.end(); ++i) {
104  out << showpos << SCIENTIFIC(10,2) << *i << ' ';
105  }
106 
107  out << endl;
108 
109  return out;
110  }
Auxiliary data structure for floating point format specification.
Definition: JPrint.hh:498
Auxiliary class to temporarily modify format specifications.
Definition: JPrint.hh:535

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