Updated macros for lego train (mavala)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / macros / lego_train / RsnPrivateTrainBaseSettings.C
1 TList *RsnPrivateTrainBaseSettings() {
2
3    Bool_t valid;
4    TString legoTrainPath = AliAnalysisManager::GetGlobalStr("RsnLegoTrainPath",valid);
5    Int_t usePhysSel        = -1;
6 //   usePhysSel              = AliVEvent::kMB;
7    
8    Int_t usePIDResponseTask      = 1;
9    Int_t useCentralityTask       = 0;
10    Int_t useEventPlaneTask       = 1;
11    Int_t useVZEROEPSelectionTask = 1;
12    Int_t usePIDqa                = 0;
13
14    Int_t useEventMixPar    = 0;
15    Int_t useRsnPar         = 0;
16    Int_t useRsnParDev      = -1;
17 //   useRsnParDev            = 1;
18
19    TString rootver = "v5-34-02-1";
20    TString alirootver = "";
21 //      alirootver = "v5-03-07-AN";
22
23    //============= ONLY for GRID ====================
24    TString dsConfig = "datasets-grid/LHC11e3a_AOD074.txt";
25    Int_t globalTrainID=0;
26    Int_t numRuns = 1000;
27    Int_t numRunsSkip = 0;
28
29    //================================================
30
31    ///////////////////////////////////////////
32    // don't edit next lines (EXPERTS ONLY)
33    ///////////////////////////////////////////
34
35    AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
36    if (!mgr) {
37       Printf("Error[RsnManager] mgr is null !!!");
38       return;
39    }
40
41    // use parfiles instead of libs
42    AliAnalysisManager::SetGlobalInt("rsnUseEventMixingPar",useEventMixPar);
43    AliAnalysisManager::SetGlobalInt("rsnUseRSNPar",useRsnPar);
44    AliAnalysisManager::SetGlobalInt("rsnUseRSNParDev",useRsnParDev);
45
46    // common options
47    AliAnalysisManager::SetGlobalInt("rsnUsePIDResponse",usePIDResponseTask);
48    AliAnalysisManager::SetGlobalInt("rsnUsePhysSel",usePhysSel);
49    AliAnalysisManager::SetGlobalInt("rsnUseCentralityTask",useCentralityTask);
50    AliAnalysisManager::SetGlobalInt("rsnUseEventPlaneTask",useEventPlaneTask);
51    AliAnalysisManager::SetGlobalInt("rsnUseVZEROEPSelection",useVZEROEPSelectionTask);
52
53    AliAnalysisManager::SetGlobalInt("rsnUsePIDqa",usePIDqa);
54
55    // RSN train settings for GRID
56    AliAnalysisManager::SetGlobalStr("rsnTrainDSConfig",dsConfig.Data());
57    AliAnalysisManager::SetGlobalInt("rsnGlobalTrainID",globalTrainID);
58    AliAnalysisManager::SetGlobalInt("rsnGridNumRuns",numRuns);
59    AliAnalysisManager::SetGlobalInt("rsnGridNumRunsSkip",numRunsSkip);
60
61    // root and aliroot version
62    AliAnalysisManager::SetGlobalStr("rsnLegoTrainROOTversion",rootver.Data());
63    AliAnalysisManager::SetGlobalStr("rsnLegoTrainAliROOTversion",alirootver.Data());
64
65 }