]>
Commit | Line | Data |
---|---|---|
bade7d8d | 1 | /* |
2 | Make OCDB entries for the calibration using tracks: | |
3 | The specific storage is set in the STEERING macro. | |
4 | ||
5 | ||
6 | void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root",TString ocdbStorage) | |
7 | Example: | |
8 | ||
9 | .L makeOCDBTPC.C | |
10 | makeOCDBTPC(0, AliCDBRunRange::Infinity(), "CalibObjects.root",""); | |
11 | ||
12 | ||
13 | */ | |
14 | ||
15 | ||
16 | ||
17 | void makeOCDBTPC(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjects.root", TString ocdbStorage=""){ | |
18 | // | |
19 | // | |
20 | // | |
21 | gSystem->Load("libSTEER"); | |
22 | gSystem->Load("libANALYSIS"); | |
23 | gSystem->Load("libSTAT"); | |
24 | gSystem->Load("libTPCcalib"); | |
25 | gROOT->LoadMacro("CalibTimeVdrift.C"); | |
26 | gROOT->LoadMacro("CalibTimeGain.C"); | |
27 | if (ocdbStorage.Length()==0) ocdbStorage+="local://"+gSystem->GetFromPipe("pwd")+"/OCDB"; | |
28 | // | |
29 | // Make gain calibration | |
30 | // | |
31 | TFile fcalib(inputFile.Data()); | |
32 | // | |
33 | // | |
34 | // | |
35 | CalibTimeGain(inputFile.Data(), startRun,endRun,ocdbStorage); | |
36 | // | |
37 | // Make vdrift calibration | |
38 | // | |
39 | CalibTimeVdrift(inputFile.Data(),startRun,AliCDBRunRange::Infinity(),ocdbStorage); | |
40 | } |