15#include "FairRootManager.h"
16#include "FairTrackParam.h"
17#include "TClonesArray.h"
42 , fMuchPixelHits(NULL)
43 , fMuchStrawHits(NULL)
62 static Int_t eventNo = 0;
63 std::cout <<
"CbmLitFitTracks::Exec: eventNo=" << eventNo++ << std::endl;
72 FairRootManager* ioman = FairRootManager::Instance();
73 assert(ioman != NULL);
75 fGlobalTracks = (TClonesArray*) ioman->GetObject(
"GlobalTrack");
76 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
77 fMuchTracks = (TClonesArray*) ioman->GetObject(
"MuchTrack");
78 fTrdTracks = (TClonesArray*) ioman->GetObject(
"TrdTrack");
81 fTrdHits = (TClonesArray*) ioman->GetObject(
"TrdHit");
86 static Bool_t firstTime =
true;
102 Int_t nofTracks = ltracks.size();
103 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
116 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
123 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
126 FairTrackParam firstParam, lastParam;
134 for_each(ltracks.begin(), ltracks.end(),
DeleteObject());
144 cout <<
"CbmLitFitTracks::PrintStopwatchStatistics: " << endl;
ClassImp(CbmLitFitTracks)
Task for testing of standard track fit algorithms.
Typedefs for algorithm interfaces.
Base data class for track.
Typedefs for data structures used in littrack.
Data class for STS tracks.
boost::shared_ptr< CbmLitTrackFitter > TrackFitterPtr
std::vector< CbmTofTrack * > TrackPtrVector
std::vector< CbmTofHit * > HitPtrVector
static void FairTrackParamToCbmLitTrackParam(const FairTrackParam *par, CbmLitTrackParam *litPar)
static void CbmLitTrackParamToFairTrackParam(const CbmLitTrackParam *litPar, FairTrackParam *par)
static void HitArrayToHitVector(CbmEvent *event, ECbmDataType hitDataType, const TClonesArray *hits, HitPtrVector &litHits)
static void CbmTrackArrayToCbmLitTrackArray(const TClonesArray *tracks, const HitPtrVector &lhits, TrackPtrVector <racks)
CbmLitFitTracks()
Constructor.
virtual ~CbmLitFitTracks()
Destructor.
TClonesArray * fMuchTracks
virtual InitStatus Init()
Derived from FairTask.
virtual void Finish()
Derived from FairTask.
TClonesArray * fGlobalTracks
TClonesArray * fStsTracks
virtual void Exec(Option_t *opt)
Derived from FairTask.
TStopwatch fFitWithIOWatch
TClonesArray * fMuchPixelHits
void ReadDataBranches()
Read data branches.
void PrintStopwatchStatistics()
Print stopwatch statistics.
TClonesArray * fTrdTracks
TClonesArray * fMuchStrawHits
void DoFit()
Performs track fit.
Data class for track parameters.
Base data class for track.
Int_t GetPreviousTrackId() const
void SetParamFirst(const CbmLitTrackParam *par)
const CbmLitTrackParam * GetParamFirst() const
const CbmLitTrackParam * GetParamLast() const
void Set(const FairTrackParam &ftp, double time=0., double timeError=0.)
double GetLastHitTime() const
const FairTrackParam * GetParamLast() const
double GetLastHitTimeError() const
void SetParamFirst(const FairTrackParam *par)
void SetParamLast(const FairTrackParam *par)