Fix some documentation issues
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / trains / MakeRespMatrTrain.C
CommitLineData
4f09623b 1/**
671df6c9 2 * @file MakeRespMatrTrain.C
4f09623b 3 * @author Valentina Zaccolo
4 * @date Fri Jan 11 14:47:26 2013
5 *
6 * @brief
7 *
8 * @ingroup pwglf_forward_trains_specific
9 *
671df6c9 10 * @ingroup pwglf_forward_multdist
4f09623b 11 */
4f09623b 12#include "TrainSetup.C"
13
14//====================================================================
15/**
16 * Analysis train to make @f$ Response Matrices@f$
17 *
18 *
671df6c9 19 * @ingroup pwglf_forward_multdist
4f09623b 20 * @ingroup pwglf_forward_trains_specific
21 */
22class MakeRespMatrTrain : public TrainSetup
23{
24public:
25 /**
26 * Constructor.
27 *
28 * @param name Name of train (free form)
4f09623b 29 */
671df6c9 30 MakeRespMatrTrain(const char* name)
31 : TrainSetup(name)
4f09623b 32 {
33 fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
34 fOptions.Add("vzMin", "CENTIMETER", "Min Ip Z", -4);
35 fOptions.Add("vzMax", "CENTIMETER", "Max Ip Z", +4);
36 }
37protected:
38 /**
39 * Make the tasks
40 *
4f09623b 41 */
42 void CreateTasks(AliAnalysisManager*)
43 {
44 // --- Output file name ------------------------------------------
45 AliAnalysisManager::SetCommonFileName("forward_response.root");
46
47 // --- Load libraries/pars ---------------------------------------
48 fHelper->LoadLibrary("PWGLFforward2");
49
50 // --- Set load path ---------------------------------------------
51 gROOT->SetMacroPath(Form("%s:$(ALICE_ROOT)/PWGLF/FORWARD/analysis2",
52 gROOT->GetMacroPath()));
53
54 // --- Get parameters --------------------------------------------
55 TString trig = fOptions.Get("trig");
56 Double_t vzMin = fOptions.AsDouble("vzmin", -4);
57 Double_t vzMax = fOptions.AsDouble("vzmax", +4);
58
59 // --- Form arguments --------------------------------------------
60 TString args;
61 args.Form("\"%s\",%f,%f",
62 trig.Data(), vzMin, vzMax);
63 // --- Add the task ----------------------------------------------
64 gROOT->Macro(Form("AddTaskCreateRespMatr.C(%s);", args.Data()));
65 }
66 //__________________________________________________________________
67 /**
68 * Do not the centrality selection
69 */
70 void CreateCentralitySelection(Bool_t, AliAnalysisManager*) {}
71 //__________________________________________________________________
72 /**
73 * Crete output handler - we don't want one here.
74 *
75 * @return 0
76 */
77 AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
78 /**
79 * Never ever make an MC input handler! (we're working on AODs,
80 * right?)
81 */
82 AliVEventHandler* CreateMCHandler(UShort_t type, bool mc) { return 0; }
83 //__________________________________________________________________
84 const char* ClassName() const { return "MakeRespMatrTrain"; }
85 //__________________________________________________________________
86
87};
88//
89// EOF
90//