17#include "FairTrackParam.h"
18#include "TClonesArray.h"
33 lpar->
X = par->GetX();
34 lpar->
Y = par->GetY();
35 lpar->
Tx = par->GetTx();
36 lpar->
Ty = par->GetTy();
37 lpar->
Qp = par->GetQp();
38 lpar->
Z = par->GetZ();
83 par->SetCovMatrix(cov);
90 lhit->
X = hit->
GetX();
91 lhit->
Y = hit->
GetY();
92 lhit->
Z = hit->
GetZ();
110 vector<lit::parallel::LitScalPixelHit*>& lhits)
112 Int_t nofHits =
hits->GetEntriesFast();
113 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
117 lhits.push_back(lhit);
122 const vector<lit::parallel::LitScalPixelHit*>& lhits,
127 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
133 ltrack->
AddHit(lhits[hitId]);
150 const vector<lit::parallel::LitScalPixelHit*>& lhits,
151 vector<lit::parallel::LitScalTrack*>& ltracks)
153 Int_t nofTracks =
tracks->GetEntriesFast();
154 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
158 ltracks.push_back(ltrack);
166 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
185 Int_t nofTracks = ltracks.size();
186 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
196 Int_t nofTracks = ltracks.size();
197 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
Class for conversion between CBMROOT data classes and littrack parallel data classes.
static vector< vector< QAHit > > hits
Base class for scalar pixel hits.
Track parameters data class.
virtual int32_t GetPlaneId() const
static void CbmTrackArrayToLitScalTrackArray(const TClonesArray *tracks, const vector< lit::parallel::LitScalPixelHit * > &lhits, vector< lit::parallel::LitScalTrack * > <racks)
Convert array of CbmTrack to array of LitScalTrack.
CbmLitConverterParallel()
Constructor.
static void LitTrackParamScalToFairTrackParam(const lit::parallel::LitTrackParamScal *lpar, FairTrackParam *par)
Convert LitTrackParamScal to FairTrackParam.
static void CbmTrackToLitScalTrack(const CbmTrack *track, const vector< lit::parallel::LitScalPixelHit * > &lhits, lit::parallel::LitScalTrack *ltrack)
Convert CbmTrack to LitScalTrack.
static void CbmPixelHitToLitScalPixelHit(const CbmPixelHit *hit, lit::parallel::LitScalPixelHit *lhit)
Convert CbmPixelHit to LitScalPixelHit.
static void LitScalTrackArrayToCbmTrdTrackArray(const vector< lit::parallel::LitScalTrack * > <racks, TClonesArray *tracks)
Convert array of LitScalTrack to array of CbmTrack.
static void FairTrackParamToLitTrackParamScal(const FairTrackParam *par, lit::parallel::LitTrackParamScal *lpar)
Convert FairTrackParam to LitTrackParamScal.
static void CbmPixelHitArrayToLitScalPixelHitArray(const TClonesArray *hits, vector< lit::parallel::LitScalPixelHit * > &lhits)
Convert CbmPixelHit array to LitScalPixelHit arra.
virtual ~CbmLitConverterParallel()
Destructor.
static void LitScalTrackArrayToCbmMuchTrackArray(const vector< lit::parallel::LitScalTrack * > <racks, TClonesArray *tracks)
Convert array of LitScalTrack to array of CbmTrack.
static void LitScalTrackToCbmTrack(const lit::parallel::LitScalTrack *ltrack, CbmTrack *track)
Convert LitScalTrack to CbmTrack.
void AddHit(int32_t index, HitType type)
const FairTrackParam * GetParamLast() const
virtual int32_t GetNofHits() const
void SetParamFirst(const FairTrackParam *par)
int32_t GetPreviousTrackId() const
const FairTrackParam * GetParamFirst() const
void SetChiSq(double chiSq)
int32_t GetHitIndex(int32_t iHit) const
HitType GetHitType(int32_t iHit) const
void SetPreviousTrackId(int32_t previousTrackId)
void SetParamLast(const FairTrackParam *par)
Base class for scalar pixel hits.
void SetPreviousTrackId(unsigned short previousTrackId)
Sets previous trackId.
void SetChiSq(fscal chiSq)
Sets chi square.
const LitTrackParamScal & GetParamFirst() const
Returns first parameter of the track.
void SetNofMissingHits(unsigned short nofMissingHits)
Sets number of missing hits.
unsigned short GetPreviousTrackId() const
Return Previous track index.
void SetNDF(unsigned short NDF)
Sets number of degrees of freedom.
fscal GetChiSq() const
Returns chi square of the track.
unsigned short GetNofHits() const
Returns number of hits in track.
const LitTrackParamScal & GetParamLast() const
Returns last parameter of the track.
bool IsGood() const
Returns true if track is good.
const LitScalPixelHit * GetHit(unsigned short index) const
Returns pointer to the hit.
void SetParamFirst(const LitTrackParamScal ¶m)
Sets first track parameter.
void AddHit(const LitScalPixelHit *hit)
Adds hit to track.
unsigned short GetNDF() const
Returns number of degrees of freedom.