Go to the documentation of this file. 1 #ifndef CBMLITCONVERTERFAIRTRACKPARAM_H_
2 #define CBMLITCONVERTERFAIRTRACKPARAM_H_
30 #include "TClonesArray.h"
51 std::vector<litfloat> covVec(21);
52 for (UInt_t
i = 0;
i < 5; ++
i) {
55 for (UInt_t
i = 5;
i < 9; ++
i) {
58 for (UInt_t
i = 9;
i < 12; ++
i) {
61 for (UInt_t
i = 12;
i < 14; ++
i) {
86 std::vector<litfloat> covVec(21);
87 for (UInt_t
i = 0;
i < 5; ++
i) {
90 for (UInt_t
i = 5;
i < 9; ++
i) {
93 for (UInt_t
i = 9;
i < 12; ++
i) {
96 for (UInt_t
i = 12;
i < 14; ++
i) {
111 FairTrackParam* par) {
112 par->SetX(litPar->
GetX());
113 par->SetY(litPar->
GetY());
114 par->SetZ(litPar->
GetZ());
115 par->SetTx(litPar->
GetTx());
116 par->SetTy(litPar->
GetTy());
117 par->SetQp(litPar->
GetQp());
120 for (UInt_t
i = 0;
i < 5; ++
i) {
121 cov[
i] = (Double_t) covVec[
i];
123 for (UInt_t
i = 5;
i < 9; ++
i) {
124 cov[
i] = (Double_t) covVec[
i + 1];
126 for (UInt_t
i = 9;
i < 12; ++
i) {
127 cov[
i] = (Double_t) covVec[
i + 2];
129 for (UInt_t
i = 12;
i < 14; ++
i) {
130 cov[
i] = (Double_t) covVec[
i + 3];
132 cov[14] = (Double_t) covVec[18];
133 par->SetCovMatrix(cov);
Data class for track parameters.
Data class for track parameters.
static void CbmLitTrackParamToFairTrackParam(const CbmLitTrackParam *litPar, FairTrackParam *par)
static void FairTrackParamToCbmLitTrackParam(const CbmTrackParam *par, CbmLitTrackParam *litPar)
Define enumerations used in littrack.
Double_t GetDTime() const
void SetCovMatrix(const vector< litfloat > &C)
Typedefs for data structures used in littrack.
const vector< litfloat > & GetCovMatrix() const
static void FairTrackParamToCbmLitTrackParam(const FairTrackParam *par, CbmLitTrackParam *litPar)