// ----- Getters for offline corresponding values -----
Bool_t CookPID() { return kFALSE; }
- Double_t GetPID(Int_t /* is */) const { return 0; }
+ Double_t GetPID(Int_t /* is */) const { return (Double_t) GetPID()/256.; }
Int_t GetDetector() const { return fHCId / 2; }
Int_t GetHCId() const { return fHCId; }
Float_t GetdYdX() const { return (GetdY() * 140e-4 / 3.); }
Float_t GetX() const { return fgGeo->GetTime0((fHCId%12)/2); }
Float_t GetY() const { return (GetYbin() * 160e-4); }
Float_t GetZ() const { return fgGeo->GetPadPlane((fHCId % 12) / 2, (fHCId/12) % 5)->GetRowPos(GetZbin()) -
- fgGeo->GetPadPlane((fHCId % 12) / 2, (fHCId/12) % 5)->GetRowSize(GetZbin()); }
- Float_t GetLocalZ() const { return GetZ() - fgGeo->GetPadPlane((fHCId % 12) / 2, (fHCId/12) % 5)->GetRowPos(8); }
+ fgGeo->GetPadPlane((fHCId % 12) / 2, (fHCId/12) % 5)->GetRowSize(GetZbin()) * .5; }
+ Float_t GetLocalZ() const { return GetZ() - fgGeo->GetPadPlane((fHCId % 12) / 2, (fHCId/12) % 5)->GetRowPos((((fHCId/12) % 5) != 2) ? 8 : 6); }
UInt_t GetTrackletWord() const { return fTrackletWord; }
void SetTrackletWord(UInt_t trackletWord) { fTrackletWord = trackletWord; }
protected:
Int_t fHCId; // half-chamber ID
UInt_t fTrackletWord; // tracklet word: PID | Z | deflection length | Y
- // bits: 12 4 7 13
+ // bits: 8 4 7 13
static AliTRDgeometry *fgGeo; // pointer to TRD geometry for coordinate calculations
private: