X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDtrackletMCM.h;h=3b4251a26a08fc4f53a53146391106adcbe75209;hb=bdf0b2e92765ffda690cdeb849301a0bc4ec2fd1;hp=118ce76792e339cdc36f3e9a0d2f98d02221a5eb;hpb=f061fb9d37ad345826bb8bf2bd4e1461977fb674;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDtrackletMCM.h b/TRD/AliTRDtrackletMCM.h index 118ce76792e..3b4251a26a0 100644 --- a/TRD/AliTRDtrackletMCM.h +++ b/TRD/AliTRDtrackletMCM.h @@ -25,15 +25,17 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase { ~AliTRDtrackletMCM(); // ----- Getters for contents of tracklet word ----- - Int_t GetYbin() const; - Int_t GetdY() const; + Int_t GetYbin() const; + Int_t GetdY() const; Int_t GetZbin() const { return ((fTrackletWord >> 20) & 0xf); } Int_t GetPID() const { return ((fTrackletWord >> 24) & 0xff); } // ----- Getters for MCM-tracklet information ----- Int_t GetMCM() const { return fMCM; } Int_t GetROB() const { return fROB; } - Int_t GetLabel() const { return fLabel; } + Int_t GetLabel() const { return fLabel[0]; } + Int_t GetLabel(const Int_t i) const { return fLabel[i]; } + Bool_t HasLabel(const Int_t label) const { return (fLabel[0] == label || fLabel[1] == label || fLabel[2] == label); } // ----- Getters for offline corresponding values ----- Bool_t CookPID() { return kFALSE; } @@ -43,9 +45,10 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase { Float_t GetdYdX() const { return (GetdY() * 140e-4 / 3.); } Float_t GetX() const { return fGeo->GetTime0((fHCId % 12) / 2); } Float_t GetY() const { return (GetYbin() * 160e-4); } - Float_t GetZ() const { return fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRowPos( 4 * (fROB / 2) + fMCM / 4) - + Float_t GetZ() const { return fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRowPos( 4 * (fROB / 2) + fMCM / 4) - fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId /12) % 5)->GetRowSize(4 * (fROB / 2) + fMCM / 4) * .5; } - Float_t GetLocalZ() const { return GetZ() - fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRowPos(8); } + Float_t GetLocalZ() const { return GetZ() - + (fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRow0()+fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRowEnd())/2.; } Int_t GetQ0() const { return fQ0; } Int_t GetQ1() const { return fQ1; } @@ -60,7 +63,7 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase { void SetHCId(Int_t id) { fHCId = id; } void SetMCM(Int_t mcm) { fMCM = mcm; } void SetROB(Int_t rob) { fROB = rob; } - void SetLabel(Int_t label) { fLabel = label; } + void SetLabel(Int_t label[]); void SetQ0(Int_t charge) { fQ0 = charge; } void SetQ1(Int_t charge) { fQ1 = charge; } void SetNHits(Int_t nhits) { fNHits = nhits; } @@ -83,7 +86,7 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase { AliTRDgeometry *fGeo; //! TRD geometry Int_t fHCId; // half-chamber ID (only transient) - UInt_t fTrackletWord; // tracklet word: PID | Z | deflection length | Y + UInt_t fTrackletWord; // tracklet word: PID | Z | deflection length | Y // bits: 12 4 7 13 Int_t fMCM; // MCM no. in which the tracklet was found Int_t fROB; // ROB no. on which the tracklet was found @@ -95,8 +98,8 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase { Int_t fNHits0; // no. of contributing clusters in window 0 Int_t fNHits1; // no. of contributing clusters in window 1 - Int_t fLabel; // label for MC track - + Int_t fLabel[3]; // up to 3 labels for MC track + Float_t fSlope; // tracklet slope Float_t fOffset; // tracklet offset Float_t fError; // tracklet error