]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/trains/MakeFMDEventPlaneTrain.C
Various minor fixes
[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
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
20  */
21 class MakeFMDEventPlaneTrain : public TrainSetup
22 {
23 public:
24   /** 
25    * Constructor.  Date and time must be specified when running this
26    * in Termiante mode on Grid
27    * 
28    * @param name     Name of train (free form)
29    */
30   MakeFMDEventPlaneTrain(const char* name) 
31   : TrainSetup(name)
32   {
33     SetType(kAOD);
34   }
35 protected:
36   /** 
37    * Create the tasks 
38    * 
39    * @param par  Whether to use par files 
40    */
41   void CreateTasks(EMode /*mode*/, Bool_t par, AliAnalysisManager*)
42   {
43     // --- Output file name ------------------------------------------
44     AliAnalysisManager::SetCommonFileName("AnalysisResults.root");
45
46     // --- Load libraries/pars ---------------------------------------
47     LoadLibrary("PWGLFforward2", par, true);
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     gROOT->Macro(Form("AddTaskFMDEventPlane.C(%d)", fMC));
56   }
57   /** 
58    * Do not the centrality selection
59    */
60   void CreateCentralitySelection(Bool_t, AliAnalysisManager*) {}
61   /** 
62    * Crete output handler - we don't want one here. 
63    * 
64    * @return 0
65    */
66   AliVEventHandler* CreateOutputHandler(EType) { return 0; }
67   //__________________________________________________________________
68   const char* ClassName() const { return "MakeFMDEventPlaneTrain"; }
69 };
70 //
71 // EOF
72 //