From: shahoian Date: Tue, 15 May 2012 23:27:31 +0000 (+0000) Subject: Aux.getter for weights X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=ca7f226bbf3a3962824fc6c3be8663dcdb282f92;p=u%2Fmrichter%2FAliRoot.git Aux.getter for weights --- diff --git a/STEER/STEER/AliMillePedeRecord.cxx b/STEER/STEER/AliMillePedeRecord.cxx index fc07b161e2e..e68f60468fa 100644 --- a/STEER/STEER/AliMillePedeRecord.cxx +++ b/STEER/STEER/AliMillePedeRecord.cxx @@ -197,6 +197,26 @@ Double_t AliMillePedeRecord::GetResidual(Int_t pnt) const // } +//_____________________________________________________________________________________________ +Double_t AliMillePedeRecord::GetWeight(Int_t pnt) const +{ + // get weight of point pnt + if (!fSize) {AliError("No data"); return 0;} + int cnt=0,point=0; + // + while(cnt