]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/trains/MakeFMDEventPlaneTrain.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / trains / MakeFMDEventPlaneTrain.C
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  */
21 class MakeFMDEventPlaneTrain : public TrainSetup
22 {
23 public:
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   }
34 protected:
35   /** 
36    * Create the tasks 
37    * 
38    */
39   void CreateTasks(AliAnalysisManager*)
40   {
41     // --- Output file name ------------------------------------------
42     AliAnalysisManager::SetCommonFileName("AnalysisResults.root");
43
44     // --- Load libraries/pars ---------------------------------------
45     fRailway->LoadLibrary("PWGLFforward2)");
46     
47     Bool_t mc = HasMCHandler();
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 ----------------------------------------------
55     CoupleCar("AddTaskFMDEventPlane.C", Form("%d", mc));
56   }
57   /** 
58    * Do not the centrality selection
59    */
60   void CreateCentralitySelection(Bool_t) {}
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 //