]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackletGTU.h
Coding rule violations (Raphaelle)
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackletGTU.h
index 9ea7997bbc197beed278db863249ea0601ac5290..6ac20092cfb46b77b2fd5417280d679f94831388 100644 (file)
 #include "AliTRDtrackletBase.h"
 #include "AliLog.h"
 
-class AliTRDmcmTracklet;
 class AliTRDgtuParam;
 
 class AliTRDtrackletGTU : public AliTRDtrackletBase {
  public:
   AliTRDtrackletGTU();
-//  AliTRDtrackletGTU(UInt_t tracklet_word = 0);
   AliTRDtrackletGTU(AliTRDtrackletBase *tracklet); 
   AliTRDtrackletGTU(const AliTRDtrackletGTU& trk);
 
@@ -36,14 +34,14 @@ class AliTRDtrackletGTU : public AliTRDtrackletBase {
   Int_t GetYbin() const { return fTracklet->GetYbin(); }
   Int_t GetdY() const { return fTracklet->GetdY(); }
   Int_t GetZbin() const { return fTracklet->GetZbin(); }
-  Double_t GetPID() const { return fTracklet->GetPID(); }
+  Int_t GetPID() const { return ((Int_t) (255 * fTracklet->GetPID())); }
   Double_t GetPID(Int_t is) const { return fTracklet->GetPID(is); }
 
   // ----- Getters for calculated properties -----
   Int_t GetYProj() const { return fYProj; }
   Int_t GetAlpha() const { return fAlpha; }
   Int_t GetYPrime() const { return fYPrime; }
-  Int_t GetSubChannel(Int_t zch);
+  Int_t GetSubChannel(Int_t zch) const;
 
   // ----- Getters for offline corresponding values -----
   Bool_t CookPID() { return kFALSE; }
@@ -60,6 +58,8 @@ class AliTRDtrackletGTU : public AliTRDtrackletBase {
 
   Int_t GetSide() const { return GetYbin() < 0 ? 0 : 1; } 
 
+  Int_t GetLabel() const; // { return fLabel; }
+
   // ----- Setters -----
   void SetAlpha(Int_t alpha) { fAlpha = alpha; }
   void SetYProj(Int_t yproj) { fYProj = yproj; }
@@ -73,7 +73,7 @@ class AliTRDtrackletGTU : public AliTRDtrackletBase {
 
  protected:
   AliTRDgtuParam *fGtuParam;    //!
-  const AliTRDtrackletBase *fTracklet; // always points to a valid tracklet
+  AliTRDtrackletBase *fTracklet; // pointer to the underlying tracklet
 
   Int_t *fSubChannel;          //! [AliTRDgtuParam::GetNZChannels()]
   Bool_t fAssignedZ;           // tracklet assigned to a Z-channel
@@ -81,9 +81,9 @@ class AliTRDtrackletGTU : public AliTRDtrackletBase {
   Int_t fAlpha;                        // calculated value for alpha
   Int_t fYProj;                        // calculated value for y_proj
   Int_t fYPrime;               // calculated value for y'
-  Int_t fIndex;
+  Int_t fIndex;                 // index of tracklet in the sequence after the input units
 
-  static AliTRDtrackletBase* fgkDummyTracklet;
+  static AliTRDtrackletBase* fgkDummyTracklet; // dummy tracklet, used in case no tracklet is given
 
  private: