Go to the documentation of this file.
12 #include "FairTrackParam.h"
13 #include "TClonesArray.h"
18 #include "TClonesArray.h"
28 const FairTrackParam* par,
30 lpar->
X = par->GetX();
31 lpar->
Y = par->GetY();
32 lpar->
Tx = par->GetTx();
33 lpar->
Ty = par->GetTy();
34 lpar->
Qp = par->GetQp();
35 lpar->
Z = par->GetZ();
57 FairTrackParam* par) {
80 par->SetCovMatrix(cov);
89 lhit->
X = hit->
GetX();
90 lhit->
Y = hit->
GetY();
91 lhit->
Z = hit->
GetZ();
107 const TClonesArray*
hits,
108 vector<lit::parallel::LitScalPixelHit*>& lhits) {
109 Int_t nofHits =
hits->GetEntriesFast();
110 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
114 lhits.push_back(lhit);
120 const vector<lit::parallel::LitScalPixelHit*>& lhits,
124 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
131 ltrack->
AddHit(lhits[hitId]);
148 const TClonesArray*
tracks,
149 const vector<lit::parallel::LitScalPixelHit*>& lhits,
150 vector<lit::parallel::LitScalTrack*>& ltracks) {
151 Int_t nofTracks =
tracks->GetEntriesFast();
152 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
156 ltracks.push_back(ltrack);
165 for (Int_t iHit = 0; iHit < nofHits; iHit++) {
182 const vector<lit::parallel::LitScalTrack*>& ltracks,
184 Int_t nofTracks = ltracks.size();
185 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
193 const vector<lit::parallel::LitScalTrack*>& ltracks,
195 Int_t nofTracks = ltracks.size();
196 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
Double_t GetChiSq() const
Base class for scalar pixel hits.
const FairTrackParam * GetParamLast() const
unsigned short GetNDF() const
Returns number of degrees of freedom.
virtual Int_t GetNofHits() const
fscal GetChiSq() const
Returns chi square of the track.
const LitScalPixelHit * GetHit(unsigned short index) const
Returns pointer to the hit.
virtual ~CbmLitConverterParallel()
Destructor.
void SetPreviousTrackId(Int_t previousTrackId)
static void LitScalTrackToCbmTrack(const lit::parallel::LitScalTrack *ltrack, CbmTrack *track)
Convert LitScalTrack to CbmTrack.
CbmLitConverterParallel()
Constructor.
Track parameters data class.
void SetParamLast(const FairTrackParam *par)
unsigned short GetNofHits() const
Returns number of hits in track.
void SetPreviousTrackId(unsigned short previousTrackId)
Sets previous trackId.
virtual Int_t GetPlaneId() const
void AddHit(const LitScalPixelHit *hit)
Adds hit to track.
static void CbmTrackToLitScalTrack(const CbmTrack *track, const vector< lit::parallel::LitScalPixelHit * > &lhits, lit::parallel::LitScalTrack *ltrack)
Convert CbmTrack to LitScalTrack.
static void FairTrackParamToLitTrackParamScal(const FairTrackParam *par, lit::parallel::LitTrackParamScal *lpar)
Convert FairTrackParam to LitTrackParamScal.
bool IsGood() const
Returns true if track is good.
void SetParamFirst(const LitTrackParamScal ¶m)
Sets first track parameter.
static void LitScalTrackArrayToCbmMuchTrackArray(const vector< lit::parallel::LitScalTrack * > <racks, TClonesArray *tracks)
Convert array of LitScalTrack to array of CbmTrack.
Int_t GetHitIndex(Int_t iHit) const
void SetNofMissingHits(unsigned short nofMissingHits)
Sets number of missing hits.
static void LitScalTrackArrayToCbmTrdTrackArray(const vector< lit::parallel::LitScalTrack * > <racks, TClonesArray *tracks)
Convert array of LitScalTrack to array of CbmTrack.
Base class for scalar pixel hits.
void SetChiSq(Double_t chiSq)
unsigned short GetPreviousTrackId() const
Return Previous track index.
Int_t GetPreviousTrackId() const
HitType GetHitType(Int_t iHit) const
static void CbmPixelHitArrayToLitScalPixelHitArray(const TClonesArray *hits, vector< lit::parallel::LitScalPixelHit * > &lhits)
Convert CbmPixelHit array to LitScalPixelHit arra.
const FairTrackParam * GetParamFirst() const
static void CbmPixelHitToLitScalPixelHit(const CbmPixelHit *hit, lit::parallel::LitScalPixelHit *lhit)
Convert CbmPixelHit to LitScalPixelHit.
Class for conversion between CBMROOT data classes and littrack parallel data classes.
const LitTrackParamScal & GetParamFirst() const
Returns first parameter of the track.
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.
static void LitTrackParamScalToFairTrackParam(const lit::parallel::LitTrackParamScal *lpar, FairTrackParam *par)
Convert LitTrackParamScal to FairTrackParam.
void SetChiSq(fscal chiSq)
Sets chi square.
const LitTrackParamScal & GetParamLast() const
Returns last parameter of the track.
void SetParamFirst(const FairTrackParam *par)
static vector< vector< QAHit > > hits
void AddHit(Int_t index, HitType type)
void SetNDF(unsigned short NDF)
Sets number of degrees of freedom.