CbmRoot
Loading...
Searching...
No Matches
LitTrackParam.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
11#ifndef LITTRACKPARAM_H_
12#define LITTRACKPARAM_H_ 1
13
14#include "LitTypes.h"
15#include "LitUtils.h"
16
17#include <sstream>
18#include <string>
19using std::ostream;
20using std::string;
21using std::stringstream;
22
23namespace lit
24{
25 namespace parallel
26 {
27
39 template<class T>
41 public:
46 : X(0.)
47 , Y(0.)
48 , Z(0.)
49 , Tx(0.)
50 , Ty(0.)
51 , Qp(0.)
52 , C0(0.)
53 , C1(0.)
54 , C2(0.)
55 , C3(0.)
56 , C4(0.)
57 , C5(0.)
58 , C6(0.)
59 , C7(0.)
60 , C8(0.)
61 , C9(0.)
62 , C10(0.)
63 , C11(0.)
64 , C12(0.)
65 , C13(0.)
66 , C14(0.)
67 {
68 }
69
73 virtual ~LitTrackParam() {}
74
79 string ToString() const
80 {
81 stringstream ss;
82 ss << "LitTrackParam: X=" << X << " Y=" << Y << " Z=" << Z << " Tx=" << Tx << " Ty=" << Ty << " Qp=" << Qp
83 << "\n"
84 << " cov matrix[0-14]: " << C0 << " " << C1 << " " << C2 << " " << C3 << " " << C4 << " " << C5 << " " << C6
85 << " " << C7 << " " << C8 << " " << C9 << " " << C10 << " " << C11 << " " << C12 << " " << C13 << " " << C14
86 << "\n";
87 return ss.str();
88 }
89
94 friend ostream& operator<<(ostream& strm, const LitTrackParam& par)
95 {
96 strm << par.ToString();
97 return strm;
98 }
99
100 public:
101 T X; // X position of the track
102 T Y; // Y position of the track
103 T Z; // Z position of the track
104 T Tx; // Slope which equals to dx/dz
105 T Ty; // Slope which equals to dy/dz
106 T Qp; // Charge (+1 or -1) over momentum
107
108 // Symetric covariance matrix
109 T C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14;
111
117
123
124 } // namespace parallel
125} // namespace lit
126#endif /* LITTRACKPARAM_H_ */
Header files for SSE operations.
Useful classes and functions.
Track parameters data class.
virtual ~LitTrackParam()
Destructor.
friend ostream & operator<<(ostream &strm, const LitTrackParam &par)
Operator << for convenient output to ostream.
string ToString() const
Returns string representation of the class.
LitTrackParam< fscal > LitTrackParamScal
Scalar version of LitTrackParam.
class lit::parallel::LitDetectorLayout _fvecalignment
LitTrackParam< fvec > LitTrackParamVec
Vector version of LitTrackParam.