#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);
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; }
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; }
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
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: