Use the drift velocity calibration using the TOF
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 9 Sep 2012 20:08:08 +0000 (20:08 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 9 Sep 2012 20:08:08 +0000 (20:08 +0000)
in case the calibration using ITS was not available.

In future I think the best will be the weighted mean of
3 methods (ITS-TPC, TOF-TPC,TRD-TPC) - to be checked with the old data.

TPC/AliTPCcalibDB.cxx
TPC/AliTPCcalibDButil.cxx

index 1032025..765926b 100644 (file)
@@ -2048,6 +2048,7 @@ Double_t AliTPCcalibDB::GetVDriftCorrectionGy(Int_t timeStamp, Int_t run, Int_t
 
   // use TPC-ITS if present
   TGraphErrors *gr= (TGraphErrors*)array->FindObject("ALIGN_ITSB_TPC_VDGY");
+  if (!gr) gr = (TGraphErrors*)array->FindObject("ALIGN_TOFB_TPC_VDGY");
   if(gr) { 
     result = AliTPCcalibDButil::EvalGraphConst(gr,timeStamp);
 
index f762174..01df712 100644 (file)
@@ -2068,6 +2068,7 @@ Double_t  AliTPCcalibDButil::GetVDriftTPCITS(Double_t &dist, Int_t run, Int_t ti
   if (!array) return 0;
   //array->ls();
   graph = (TGraphErrors*)array->FindObject("ALIGN_ITSB_TPC_DRIFTVD");
+  if (!graph) graph = (TGraphErrors*)array->FindObject("ALIGN_TOFB_TPC_DRIFTVD");
   if (!graph) return 0;
   Double_t deltaY;
   AliTPCcalibDButil::GetNearest(graph,timeStamp,dist,deltaY); 
@@ -2088,7 +2089,8 @@ Double_t AliTPCcalibDButil::GetTime0TPCITS(Double_t &dist, Int_t run, Int_t time
   TGraphErrors *graph=0;
   dist=0;
   if (!array) return 0;
-  graph = (TGraphErrors*)array->FindObject("ALIGN_ITSM_TPC_T0");
+  graph = (TGraphErrors*)array->FindObject("ALIGN_ITSB_TPC_T0");
+  if (!graph) graph = (TGraphErrors*)array->FindObject("ALIGN_ITSB_TPC_T0");
   if (!graph) return 0;
   Double_t deltaY;
   AliTPCcalibDButil::GetNearest(graph,timeStamp,dist,deltaY);