Getting transformation parameters from the OCDB
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Oct 2010 18:01:22 +0000 (18:01 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Oct 2010 18:01:22 +0000 (18:01 +0000)
(Marian)

TPC/AliTPCclustererKr.cxx

index 1154f92..3150a0e 100644 (file)
@@ -885,8 +885,9 @@ Int_t AliTPCclustererKr::FindClusterKrIO()
                //GetXY(iSec,iRow,iPad,xCord,yCord);\r
                Double_t x[]={iRow,iPad,iTimeBin};\r
                Int_t i[]={iSec};\r
-               AliTPCTransform trafo;\r
-               trafo.Transform(x,i,0,1);\r
+               AliTPCTransform *transform     = AliTPCcalibDB::Instance()->GetTransform() ;\r
+\r
+               transform->Transform(x,i,0,1);\r
                \r
                AliPadMax *oneMaximum = new AliPadMax(AliTPCvtpr(valueMaximum,\r
                                                                 timeBinMax,\r
@@ -933,8 +934,13 @@ Int_t AliTPCclustererKr::FindClusterKrIO()
              //GetXY(iSec,iRow,iPad,xCord,yCord);\r
              Double_t x[]={iRow,iPad,iTimeBin};\r
              Int_t i[]={iSec};\r
-             AliTPCTransform trafo;\r
-             trafo.Transform(x,i,0,1);\r
+             //AliTPCTransform trafo;\r
+             //trafo.Transform(x,i,0,1);\r
+\r
+               AliTPCTransform *transform     = AliTPCcalibDB::Instance()->GetTransform() ;\r
+\r
+               transform->Transform(x,i,0,1);\r
+\r
              AliPadMax *oneMaximum = new AliPadMax(AliTPCvtpr(valueMaximum,\r
                                                               timeBinMax,\r
                                                               iPad,\r