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 10320259f61026858acc79424059328163f295a4..765926b5b874974ea040bb2e4471e60d56c708e7 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 f762174d3217677878cbb6eb1b49180a5132fe91..01df712bf3b9e07505c99d37b738c116dc77a356 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);