Added some more scripts
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / scripts / MakeCorrRepository.C
1 void
2 MakeCorrRepository()
3 {
4  AliForwardCorrectionManager& mgr = AliForwardCorrectionManager::Instance();
5  
6  UInt_t what[] = { 
7    AliForwardCorrectionManager::kSecondaryMap,
8    AliForwardCorrectionManager::kELossFits,
9    AliForwardCorrectionManager::kVertexBias,
10    AliForwardCorrectionManager::kMergingEfficiency,
11    AliForwardCorrectionManager::kDoubleHit,
12    0
13  };
14  UInt_t* ptr = what;
15  while (*ptr) { 
16    TString dir(gSystem->ExpandPathName(mgr.GetFileDir(*ptr)));
17    if (dir.IsNull()) { 
18      ptr++;
19      continue;
20    }
21
22    Info("MakeCorrRepository", "Making directory %s", dir.Data());
23    gSystem->MakeDirectory(dir.Data());
24    ptr++;
25  }
26 }
27