2 * @file CreateRespMatrTrain.C
3 * @author Valentina Zaccolo
4 * @date Fri Jan 11 14:47:26 2013
8 * @ingroup pwglf_forward_trains_specific
12 #include "TrainSetup.C"
14 //====================================================================
16 * Analysis train to make @f$ Response Matrices@f$
19 * @ingroup pwglf_forward_mult
20 * @ingroup pwglf_forward_trains_specific
22 class MakeRespMatrTrain : public TrainSetup
28 * @param name Name of train (free form)
29 * @param trig "NSD" for Non-Single-Diffractive, "INEL" for inelastic
30 * @param nBins For pp set 500, for central PbPb set 30000
32 MakeRespMatrTrain(const char* name)
35 fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
36 fOptions.Add("vzMin", "CENTIMETER", "Min Ip Z", -4);
37 fOptions.Add("vzMax", "CENTIMETER", "Max Ip Z", +4);
43 * @param par Whether to use par files
45 void CreateTasks(AliAnalysisManager*)
47 // --- Output file name ------------------------------------------
48 AliAnalysisManager::SetCommonFileName("forward_response.root");
50 // --- Load libraries/pars ---------------------------------------
51 fHelper->LoadLibrary("PWGLFforward2");
53 // --- Set load path ---------------------------------------------
54 gROOT->SetMacroPath(Form("%s:$(ALICE_ROOT)/PWGLF/FORWARD/analysis2",
55 gROOT->GetMacroPath()));
57 // --- Get parameters --------------------------------------------
58 TString trig = fOptions.Get("trig");
59 Double_t vzMin = fOptions.AsDouble("vzmin", -4);
60 Double_t vzMax = fOptions.AsDouble("vzmax", +4);
62 // --- Form arguments --------------------------------------------
64 args.Form("\"%s\",%f,%f",
65 trig.Data(), vzMin, vzMax);
66 // --- Add the task ----------------------------------------------
67 gROOT->Macro(Form("AddTaskCreateRespMatr.C(%s);", args.Data()));
69 //__________________________________________________________________
71 * Do not the centrality selection
73 void CreateCentralitySelection(Bool_t, AliAnalysisManager*) {}
74 //__________________________________________________________________
76 * Crete output handler - we don't want one here.
80 AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
82 * Never ever make an MC input handler! (we're working on AODs,
85 AliVEventHandler* CreateMCHandler(UShort_t type, bool mc) { return 0; }
86 //__________________________________________________________________
87 const char* ClassName() const { return "MakeRespMatrTrain"; }
88 //__________________________________________________________________