]>
Commit | Line | Data |
---|---|---|
970b1a8a | 1 | /** |
5e4ba1bb | 2 | * Make the repository for corrections |
970b1a8a | 3 | * |
4 | * | |
bd6f5206 | 5 | * @ingroup pwglf_forward_scripts_corr |
970b1a8a | 6 | */ |
ab0f914c | 7 | void |
8 | MakeCorrRepository() | |
9 | { | |
10 | AliForwardCorrectionManager& mgr = AliForwardCorrectionManager::Instance(); | |
11 | ||
12 | UInt_t what[] = { | |
13 | AliForwardCorrectionManager::kSecondaryMap, | |
14 | AliForwardCorrectionManager::kELossFits, | |
15 | AliForwardCorrectionManager::kVertexBias, | |
16 | AliForwardCorrectionManager::kMergingEfficiency, | |
17 | AliForwardCorrectionManager::kDoubleHit, | |
18 | 0 | |
19 | }; | |
20 | UInt_t* ptr = what; | |
21 | while (*ptr) { | |
22 | TString dir(gSystem->ExpandPathName(mgr.GetFileDir(*ptr))); | |
23 | if (dir.IsNull()) { | |
24 | ptr++; | |
25 | continue; | |
26 | } | |
27 | ||
28 | Info("MakeCorrRepository", "Making directory %s", dir.Data()); | |
29 | gSystem->MakeDirectory(dir.Data()); | |
30 | ptr++; | |
31 | } | |
32 | } | |
33 | ||
5e4ba1bb | 34 | /* |
35 | * EOF | |
36 | */ |