]>
Commit | Line | Data |
---|---|---|
402a4145 | 1 | void CreateLookup(const char* spaceChargeFile, const char* outputFile, Int_t phiBin) { |
2 | TFile fn(spaceChargeFile); | |
3 | gROOT->cd(); | |
4 | fSpaceCharge=(AliTPCSpaceCharge3D*)fn.Get("map"); | |
5 | fn.Close(); | |
6 | ||
7 | AliTPCCorrectionLookupTable l; | |
8 | l.SetupDefaultLimits(); | |
9 | l.CreateLookupTableSinglePhi(*fSpaceCharge, phiBin, 1); | |
10 | ||
11 | // TString outFile(gSystem->BaseName(spaceChargeFile)); | |
12 | // outFile.ReplaceAll(".root",""); | |
13 | // outFile.Append(Form("_%03d",phiBin)); | |
14 | // outFile.Append(".root"); | |
15 | // outFile.Prepend("/"); | |
16 | // outFile.Prepend(outputDir); | |
17 | ||
18 | TFile fout(outputFile,"recreate"); | |
19 | l.Write("map"); | |
20 | fout.Close(); | |
21 | } |