]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/CalibMacros/makeOCDBTPC.C
Update master to aliroot
[u/mrichter/AliRoot.git] / TPC / CalibMacros / makeOCDBTPC.C
1 /// \file makeOCDBTPC.C
2
3 /*
4     Make OCDB entries for the calibration using tracks:
5     The specific storage is set in the STEERING macro.
6
7
8     void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root",TString ocdbStorage)
9     Example:
10
11     .L makeOCDBTPC.C 
12     makeOCDBTPC(0, AliCDBRunRange::Infinity(), "CalibObjects.root","");
13  
14
15 */
16
17
18
19 void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root", TString ocdbStorage=""){
20   ///
21
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";
29   //
30   // Make gain calibration
31   //
32   TFile fcalib(inputFile.Data());
33   //
34   //
35   //
36   CalibTimeGain(inputFile.Data(), startRun,endRun,ocdbStorage);
37   //
38   // Make vdrift calibration
39   //
40   CalibTimeVdrift(inputFile.Data(),startRun,AliCDBRunRange::Infinity(),ocdbStorage);
41 }