From: richterm Date: Mon, 24 Sep 2007 10:10:24 +0000 (+0000) Subject: bugfix: calculate correct time bin width after setting of time bin range X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=42a3bb889228a0d3eb9d83ab60dd4f790593359e bugfix: calculate correct time bin width after setting of time bin range --- diff --git a/HLT/TPCLib/AliHLTTPCTransform.cxx b/HLT/TPCLib/AliHLTTPCTransform.cxx index 339dda2dafc..bc015fa4cde 100644 --- a/HLT/TPCLib/AliHLTTPCTransform.cxx +++ b/HLT/TPCLib/AliHLTTPCTransform.cxx @@ -1823,6 +1823,10 @@ Bool_t AliHLTTPCTransform::Sector2Slice(Int_t & slice, Int_t & slicerow, Int_t s Double_t AliHLTTPCTransform::GetMaxY(Int_t slicerow) { //get maximum y value (for slice 0) + if (slicerow>=fgNRow) { + LOG(AliHLTTPCLog::kError,"AliHLTTPCTransform::GetMaxY","Slicerow") + <=fgNRow) { + LOG(AliHLTTPCLog::kError,"AliHLTTPCTransform::GetMaxY","Slicerow") + <0) {fgZWidth = fgZLength / (Double_t)fgNTimeBins;}} static void SetNRowLow(Int_t i){fgNRowLow = i;} static void SetNRowUp(Int_t i){fgNRowUp = i;} static void SetNRowUp1(Int_t i){fgNRowUp1 = i;} @@ -117,7 +117,10 @@ class AliHLTTPCTransform { static void SetNSectorUp(Int_t i){fgNSectorUp = i;} static void SetPadPitchWidthLow(Double_t f){fgPadPitchWidthLow = f;} static void SetPadPitchWidthUp(Double_t f){fgPadPitchWidthUp = f;} - static void SetZWidth(Double_t f){fgZWidth = f;} + // Matthias 21.09.2007 + // zwidth is given by zlength and no of timebins and should not be set + // otherwise. Was never used + //static void SetZWidth(Double_t f){fgZWidth = f;} static void SetZSigma(Double_t f){fgZSigma = f;} static void SetZLength(Double_t f){fgZLength = f;} static void SetZOffset(Double_t f){fgZOffset = f;}