]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/macros/test/AliRsnTrain.C
Made a general review to fix as possible most coding conventions violations.
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / macros / test / AliRsnTrain.C
CommitLineData
5eb970a4 1#ifndef __CINT__
2#endif
3AliAnalysisManager *AliRsnTrain()
4{
5
6 // debug for ANALYSIS manager
7 Int_t debugAnalysisMgr = 0;
8
9 // debug level for RESONANCE package
10 AliLog::EType_t debugRsnType = AliLog::kInfo;
11 Int_t debugRsn = 0;
12// debugRsnType = AliLog::kDebug+debugRsn;
13
14 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
15 if (!mgr)
16 mgr = new AliAnalysisManager ( "RSN Train" );
17
18 // setting AnalysisManager debug level
19 mgr->SetDebugLevel ( debugAnalysisMgr );
20
21 // if runESDMCFilter.C is commented then runRsnAnalysis*.C has ESD and MC input
22 // if it is included then runRsnAnalysis*.C has aod (without MC) which is produced by runESDMCFilter.C
23 // do the ESD and MC filter (you can comment it if you want)
24// AddOneTask("runESDMCFilter.C",debugRsnType);
25
26 // do Resonance analysis
27 AddOneTask("runRsnAnalysisSE.C",debugRsnType);
28
29 // ME is not supported yet
30 // AddOneTask("runRsnAnalysisME.C",debugRsnType);
31
32 return mgr;
33}
34
35void AddOneTask(TString macro,AliLog::EType_t debugRsn)
36{
37 gROOT->LoadMacro(Form("%s",macro.Data()));
38 macro.ReplaceAll(".C","");
39 gROOT->ProcessLine(Form("%s((AliLog::EType_t)%d)",macro.Data(),debugRsn));
40}