ea9adc6f154c1e48f901502690be24e51ea75041
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AddD2HTrain.C
1 void AddD2HTrain() {
2   // 
3   // Task of the D2H subgroup of PWG3 that can run in the Official Train
4   //
5   // They all use AOD+AOD.VertexingHF as input. 
6   // They need to read the cuts from the macro 
7   // $ALICE_ROOT/PWG3/vertexingHF/ConfigVertexingHF.C (trunk version).
8   // This macro is loaded in the Init(), so it should be enough to have it 
9   // in the local dir when the train is launched with the alien plugin.
10   // They all produce only histos in the output. 
11   //
12   // andrea.dainese@pd.infn.it
13   //
14
15   TString taskName="",loadMacroPath="$ALICE_ROOT/PWG3/vertexingHF/";
16   
17   //taskName="AddTaskCompareHF.C"; taskName.Prepend(loadMacroPath.Data());
18   //gROOT->LoadMacro(taskName.Data());
19   //AliAnalysisTaskSECompareHF *cmpTask = AddTaskCompareHF();
20   
21   taskName="AddTaskD0Mass.C"; taskName.Prepend(loadMacroPath.Data());
22   gROOT->LoadMacro(taskName.Data());
23   AliAnalysisTaskSED0Mass *d0massTask = AddTaskD0Mass();
24   AliAnalysisTaskSED0Mass *d0massLikeSignTask = AddTaskD0Mass(1); 
25   
26   taskName="AddTaskDplus.C"; taskName.Prepend(loadMacroPath.Data());
27   gROOT->LoadMacro(taskName.Data());
28   AliAnalysisTaskSEDplus *dplusTask = AddTaskDplus();
29   
30   //taskName="AddTaskSelectHF.C"; taskName.Prepend(loadMacroPath.Data());
31   //gROOT->LoadMacro(taskName.Data());
32   //AliAnalysisTaskSESelectHF *seleTask = AddTaskSelectHF();
33   
34   taskName="AddTaskBkgLikeSignD0.C"; taskName.Prepend(loadMacroPath.Data());
35   gROOT->LoadMacro(taskName.Data());
36   AliAnalysisTaskSEBkgLikeSignD0 *lsD0Task = AddTaskBkgLikeSignD0();
37   
38   taskName="AddTaskBkgLikeSignJPSI.C"; taskName.Prepend(loadMacroPath.Data());
39   gROOT->LoadMacro(taskName.Data());
40   AliAnalysisTaskSEBkgLikeSignJPSI *lsJPSITask = AddTaskBkgLikeSignJPSI();
41   
42   //taskName="AddTaskBtoJPSItoEle.C"; taskName.Prepend(loadMacroPath.Data());
43   //gROOT->LoadMacro(taskName.Data());
44   //AliAnalysisTaskSEBtoJPSItoEle *jpsiTask = AddTaskBtoJPSItoEle();
45   
46   taskName="AddTaskCFMultiVarMultiStep.C"; taskName.Prepend(loadMacroPath.Data());
47   gROOT->LoadMacro(taskName.Data());
48   AliCFHeavyFlavourTaskMultiVarMultiStep *cfmvmsTask = AddTaskCFMultiVarMultiStep();
49   
50   taskName="AddTaskCharmFraction.C"; taskName.Prepend(loadMacroPath.Data());
51   gROOT->LoadMacro(taskName.Data());
52   Int_t switchMC[5]={1,1,1,1,1};
53   AliAnalysisTaskSECharmFraction *cFractTask = AddTaskCharmFraction("d0D0.root",switchMC);
54   
55
56   return;
57 }