Go to the documentation of this file.
10 #include "FairRootManager.h"
11 #include "FairTrackParam.h"
20 #include "TClonesArray.h"
38 , fMuchPixelHits(NULL)
39 , fMuchStrawHits(NULL)
54 static Int_t eventNo = 0;
55 std::cout <<
"CbmLitFitTracks::Exec: eventNo=" << eventNo++ << std::endl;
63 FairRootManager* ioman = FairRootManager::Instance();
64 assert(ioman != NULL);
66 fGlobalTracks = (TClonesArray*) ioman->GetObject(
"GlobalTrack");
67 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
68 fMuchTracks = (TClonesArray*) ioman->GetObject(
"MuchTrack");
69 fTrdTracks = (TClonesArray*) ioman->GetObject(
"TrdTrack");
72 fTrdHits = (TClonesArray*) ioman->GetObject(
"TrdHit");
76 static Bool_t firstTime =
true;
93 Int_t nofTracks = ltracks.size();
94 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
110 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
117 for (Int_t iTrack = 0; iTrack < nofTracks; iTrack++) {
120 FairTrackParam firstParam, lastParam;
130 for_each(ltracks.begin(), ltracks.end(),
DeleteObject());
139 cout <<
"CbmLitFitTracks::PrintStopwatchStatistics: " << endl;
140 cout <<
"fit without IO: counts=" <<
fFitWatch.Counter()
const FairTrackParam * GetParamLast() const
virtual void Exec(Option_t *opt)
Derived from FairTask.
TClonesArray * fMuchStrawHits
Data class for track parameters.
void SetParamFirst(const CbmLitTrackParam *par)
Task for testing of standard track fit algorithms.
static void HitArrayToHitVector(CbmEvent *event, ECbmDataType hitDataType, const TClonesArray *hits, HitPtrVector &litHits)
void SetParamLast(const FairTrackParam *par)
void Set(const FairTrackParam &ftp, Double_t time=0., Double_t timeError=0.)
static void CbmLitTrackParamToFairTrackParam(const CbmLitTrackParam *litPar, FairTrackParam *par)
virtual void Finish()
Derived from FairTask.
Data class for STS tracks.
CbmLitFitTracks()
Constructor.
Int_t GetPreviousTrackId() const
std::vector< CbmTofTrack * > TrackPtrVector
void ReadDataBranches()
Read data branches.
Base data class for track.
boost::shared_ptr< CbmLitTrackFitter > TrackFitterPtr
TStopwatch fFitWithIOWatch
const CbmLitTrackParam * GetParamLast() const
TClonesArray * fTrdTracks
TClonesArray * fMuchPixelHits
void PrintStopwatchStatistics()
Print stopwatch statistics.
const CbmLitTrackParam * GetParamFirst() const
Typedefs for data structures used in littrack.
TClonesArray * fGlobalTracks
Base data class for track.
void SetParamFirst(const FairTrackParam *par)
void DoFit()
Performs track fit.
virtual ~CbmLitFitTracks()
Destructor.
Typedefs for algorithm interfaces.
Double_t GetTimeError() const
TClonesArray * fStsTracks
ClassImp(CbmLitFitTracks)
TClonesArray * fMuchTracks
virtual InitStatus Init()
Derived from FairTask.
static void FairTrackParamToCbmLitTrackParam(const FairTrackParam *par, CbmLitTrackParam *litPar)
std::vector< CbmTofHit * > HitPtrVector
static void CbmTrackArrayToCbmLitTrackArray(const TClonesArray *tracks, const HitPtrVector &lhits, TrackPtrVector <racks)