]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/transform/AliHLTTPCFastTransform.h
- Speedup of cluster transformation in two times by the use of Vc library
[u/mrichter/AliRoot.git] / HLT / TPCLib / transform / AliHLTTPCFastTransform.h
index 45d9a588f057807e23421deea7ec60d09715fcc6..bd7f0d9787e3c09f3d5400ab785f5ec4065e9b3f 100644 (file)
@@ -93,16 +93,14 @@ class AliHLTTPCFastTransform{
 };
 
 inline Int_t AliHLTTPCFastTransform::Transform( Int_t iSec, Int_t iRow, Float_t Pad, Float_t Time, Float_t XYZ[] ){
-  if( !fOrigTransform || iSec<0 || iSec>=72 || iRow<0 || iRow>=100 ) return 1;
-  if( !fRows[iSec][iRow] && InitRow(iSec, iRow) ) return 1;
+  if( iSec<0 || iSec>=72 || iRow<0 || iRow>=100 || !fRows[iSec][iRow] ) return 1;
   Int_t iTime = ( Time>=fTimeBorder2 ) ?2 :( ( Time>fTimeBorder1 ) ?1 :0 );
   fRows[iSec][iRow]->fSpline[iTime].GetValue(Pad, Time, XYZ);              
   return 0; 
 }
 
 inline Int_t  AliHLTTPCFastTransform::Transform( Int_t iSec, Int_t iRow, Float_t Pad, Float_t Time, Double_t XYZ[] ){
-  if( !fOrigTransform || iSec<0 || iSec>=72 || iRow<0 || iRow>=100 ) return 1;
-  if( !fRows[iSec][iRow] && InitRow(iSec, iRow) ) return 1;
+  if( iSec<0 || iSec>=72 || iRow<0 || iRow>=100 || !fRows[iSec][iRow] ) return 1;
   Int_t iTime = ( Time>=fTimeBorder2 ) ?2 :( ( Time>fTimeBorder1 ) ?1 :0 );
   fRows[iSec][iRow]->fSpline[iTime].GetValue(Pad, Time, XYZ);              
   return 0;