#include "AliTPCtrack.h"
#include "AliTPCreco.h"
#include "AliTPCcluster.h"
+#include "AliBarrelTrack.h"
class TFile;
+class TTree;
+class TBranch;
class AliTPCParam;
class TObjArray;
+class TClonesArray;
+class AliESD;
class AliTPCtracker : public AliTracker {
public:
Int_t ReadSeeds(const TFile *in);
- Int_t LoadClusters();
+ Int_t LoadClusters(TTree *c);
void UnloadClusters();
AliCluster *GetCluster(Int_t index) const;
- Int_t Clusters2Tracks(const TFile *in, TFile *out);
- Int_t PropagateBack(const TFile *in, TFile *out);
- Int_t PropagateBack(const TFile *in, const TFile *in2, TFile *out);
- Int_t RefitInward(TFile *outTracks, TFile *inTracks);
+ Int_t Clusters2Tracks(AliESD *event);
+ Int_t PropagateBack(AliESD *event);
+ Int_t RefitInward(AliESD *event);
virtual void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
}
~AliTPCRow() {delete[] fClusterArray;}
void InsertCluster(const AliTPCcluster *c, Int_t sec, Int_t row);
- void ResetClusters() {fN=0;}
+ void ResetClusters() {fN=0; delete[] fClusterArray; fClusterArray=0;}
operator int() const {return fN;}
const AliTPCcluster *operator[](Int_t i) const {return fClusters[i];}
const AliTPCcluster *GetUnsortedCluster(Int_t i) const {
+ if ((i < 0) || (i >= fN)) return NULL;
return fClusterArray+i;
}
UInt_t GetIndex(Int_t i) const {return fIndex[i];}
AliTPCParam *fParam; //! TPC parameters for outer reference plane [SR, GSI, 18.02.2003]
TObjArray *fSeeds; //array of track seeds
+
+ // [SR, 01.04.2003]
+ void SetBarrelTree(const char *mode);
+ void StoreBarrelTrack(AliTPCtrack *ps, Int_t refPlane, Int_t isIn);
+
+ // [SR, 01.04.2003]
+ TFile *fBarrelFile; // file with "barrel" tracks
+ TTree *fBarrelTree; // tree with "barrel" tracks
+ TBranch *fBarrelBranch;
+ TClonesArray *fBarrelArray;
+ AliBarrelTrack *fBarrelTrack;
+
+ ClassDef(AliTPCtracker,1) // Time Projection Chamber tracker
};
#endif