]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/corrs/MakeCorrRepository.C
Fixed references from PWG2 -> PWGLF - very efficiently done using ETags.
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / MakeCorrRepository.C
1 /** 
2  * 
3  * 
4  *
5  * @ingroup pwglf_forward_scripts_corr
6  */
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