]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackGTU.h
Fix compiler warning (operator=)
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackGTU.h
index c799207ac6d7c0a26b49e62907579a39cba486e1..302aa7694c44302386c0e972ffb789f2b3aa776f 100644 (file)
@@ -14,7 +14,7 @@
 #include "TClonesArray.h"
 
 #include "AliTRDtrackletGTU.h"
-#include "AliESDTrdTrack.h"
+class AliESDTrdTrack;
 
 class AliTRDtrackGTU : public TObject {
  public:
@@ -27,6 +27,7 @@ class AliTRDtrackGTU : public TObject {
   Int_t    GetPID() const { return fPID; }
   Int_t    GetSector() const { return fSector; }
   Int_t    GetStack() const { return fStack; }
+  Int_t GetLabel() const { return fLabel; }
 
   AliESDTrdTrack* CreateTrdTrack() const;
 
@@ -47,7 +48,7 @@ class AliTRDtrackGTU : public TObject {
   Int_t GetYapprox();
 
 
-  void AddTracklet(AliTRDtrackletGTU *tracklet, Int_t layer);
+  void AddTracklet(const AliTRDtrackletGTU * const tracklet, Int_t layer);
 
   void SetStack(Int_t stack) { fStack = stack; }
   void SetSector(Int_t sector) { fSector = sector; }
@@ -60,25 +61,29 @@ class AliTRDtrackGTU : public TObject {
 //  void SetOuterIntPoint(Float_t *x);
   void SetFitParams(Float_t a, Float_t b, Float_t c);
 
+  Bool_t CookLabel();
+
  protected:
 
-  Int_t fStack;
-  Int_t fSector;
+  Int_t fStack; // TRD stack to which this track belongs
+  Int_t fSector; // sector in which the track was found
 
   Int_t fPt; // pt in integer representation
-  Int_t fPID;
+  Int_t fPID; // PID calculated from tracklet PID
+
+  TClonesArray *fTracklets; // array holding the tracklets composing this track
+  Int_t fTrackletMask; // mask in which layers tracklets have been assigned
+  Int_t fNTracklets; // number of tracklets in this track
 
-  TClonesArray *fTracklets;
-  Int_t fTrackletMask;
-  Int_t fNTracklets;
+  Int_t fRefLayerIdx; // index of the reference layer in which this track was found
+  Int_t fZChannel; // z-channel unit in which this track was found
+  Int_t fZSubChannel; // z-subchannel of the assigned tracklets
 
-  Int_t fRefLayerIdx;
-  Int_t fZChannel;
-  Int_t fZSubChannel; 
+  Float_t fA; // fit parameter of y' = a + b*x + c*z
+  Float_t fB; // fit parameter of y' = a + b*x + c*z
+  Float_t fC; // fit parameter of y' = a + b*x + c*z
 
-  Float_t fA; 
-  Float_t fB; 
-  Float_t fC; 
+  Int_t fLabel; // MC label
 
  private:
   AliTRDtrackGTU(const AliTRDtrackGTU &rhs); // not implemented