]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/trains/MakeFMDEventPlaneTrain.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / trains / MakeFMDEventPlaneTrain.C
CommitLineData
39fd42ed 1/**
2 * @file MakeFMDEventPlaneTrain.C
3 * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4 * @date Fri Jun 1 13:52:39 2012
5 *
6 * @brief
7 *
8 *
9 * @ingroup pwglf_forward_trains_specific
10 */
11#include "TrainSetup.C"
12
13//====================================================================
14/**
15 * Analysis train to make @f$ \Psi_R@f$
16 *
17 *
18 * @ingroup pwglf_forward_flow
19 * @ingroup pwglf_forward_trains_specific
20 */
21class MakeFMDEventPlaneTrain : public TrainSetup
22{
23public:
24 /**
25 * Constructor.
26 *
27 * @param name Name of train (free form)
28 */
29 MakeFMDEventPlaneTrain(const char* name)
30 : TrainSetup(name)
31 {
32 fOptions.Set("type", "AOD");
33 }
34protected:
35 /**
36 * Create the tasks
37 *
39fd42ed 38 */
39 void CreateTasks(AliAnalysisManager*)
40 {
41 // --- Output file name ------------------------------------------
42 AliAnalysisManager::SetCommonFileName("AnalysisResults.root");
43
44 // --- Load libraries/pars ---------------------------------------
78ac7e09 45 fRailway->LoadLibrary("PWGLFforward2)");
39fd42ed 46
78ac7e09 47 Bool_t mc = HasMCHandler();
39fd42ed 48
49 // --- Set load path ---------------------------------------------
50 gROOT->SetMacroPath(Form("%s:$(ALICE_ROOT)/PWGLF/FORWARD/analysis2:"
51 "$ALICE_ROOT/ANALYSIS/macros",
52 gROOT->GetMacroPath()));
53
54 // --- Add the task ----------------------------------------------
78ac7e09 55 CoupleCar("AddTaskFMDEventPlane.C", Form("%d", mc));
39fd42ed 56 }
57 /**
58 * Do not the centrality selection
59 */
78ac7e09 60 void CreateCentralitySelection(Bool_t) {}
39fd42ed 61 /**
62 * Crete output handler - we don't want one here.
63 *
64 * @return 0
65 */
66 AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
67 //__________________________________________________________________
68 const char* ClassName() const { return "MakeFMDEventPlaneTrain"; }
69};
70//
71// EOF
72//