]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PWGLF/FORWARD/analysis2/corrs/MakeCorrRepository.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / MakeCorrRepository.C
... / ...
CommitLineData
1/**
2 * Make the repository for corrections
3 *
4 *
5 * @ingroup pwglf_forward_scripts_corr
6 */
7void
8MakeCorrRepository()
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
34/*
35 * EOF
36 */