1 /// \file makeOCDBTPC.C
4 Make OCDB entries for the calibration using tracks:
5 The specific storage is set in the STEERING macro.
8 void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root",TString ocdbStorage)
12 makeOCDBTPC(0, AliCDBRunRange::Infinity(), "CalibObjects.root","");
19 void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root", TString ocdbStorage=""){
22 gSystem->Load("libSTEER");
23 gSystem->Load("libANALYSIS");
24 gSystem->Load("libSTAT");
25 gSystem->Load("libTPCcalib");
26 gROOT->LoadMacro("CalibTimeVdrift.C");
27 gROOT->LoadMacro("CalibTimeGain.C");
28 if (ocdbStorage.Length()==0) ocdbStorage+="local://"+gSystem->GetFromPipe("pwd")+"/OCDB";
30 // Make gain calibration
32 TFile fcalib(inputFile.Data());
36 CalibTimeGain(inputFile.Data(), startRun,endRun,ocdbStorage);
38 // Make vdrift calibration
40 CalibTimeVdrift(inputFile.Data(),startRun,AliCDBRunRange::Infinity(),ocdbStorage);