2 * @file MakeMultTrain.C
3 * @author Valentina Zaccolo
4 * @date Wed Nov 21 12:47:26 2012
8 * @ingroup pwglf_forward_trains_specific
12 #include "TrainSetup.C"
14 //====================================================================
16 * Analysis train to make @f$ Multiplicity Distributions@f$
19 * @ingroup pwglf_forward_mult
20 * @ingroup pwglf_forward_trains_specific
22 class MakeMultTrain : public TrainSetup
28 * @param name Name of train (free form)
29 * @param aoddir Any file matching *AliAODs.root* is added
30 * @param nEvents If 0 or less -> all events are analysed
31 * @param trig "NSD" for Non-Single-Diffractive, "INEL" for inelastic
32 * @param lowCent Set 0 for pp
33 * @param nBins For pp set 500, for central PbPb set 30000
35 MakeMultTrain(const char* name)
38 fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
39 fOptions.Add("vzMin", "CENTIMETER", "Min Ip Z", -4);
40 fOptions.Add("vzMax", "CENTIMETER", "Max Ip Z", +4);
41 fOptions.Add("lowCent", "%", "Min Centrality", 0);
42 fOptions.Add("highCent","%", "Max Centrality", 0);
43 fOptions.Add("nBins", "N", "Max Multiplicity", 500);
49 * @param par Whether to use par files
51 void CreateTasks(AliAnalysisManager*)
53 // --- Output file name ------------------------------------------
54 AliAnalysisManager::SetCommonFileName("forward_multiplicity.root");
56 // --- Load libraries/pars ---------------------------------------
57 fHelper->LoadLibrary("PWGLFforward2");
59 // --- Set load path ---------------------------------------------
60 gROOT->SetMacroPath(Form("%s:$(ALICE_ROOT)/PWGLF/FORWARD/analysis2",
61 gROOT->GetMacroPath()));
63 // --- Get parameters --------------------------------------------
64 TString trig = fOptions.Get("trig");
65 Double_t vzMin = fOptions.AsDouble("vzmin", -4);
66 Double_t vzMax = fOptions.AsDouble("vzmax", +4);
67 Int_t lowCent = fOptions.AsInt("lowCent", 0);
68 Int_t highCent = fOptions.AsInt("highCent", 0);
69 Int_t nBins = fOptions.AsInt("nBins", 500);
71 // --- Form arguments --------------------------------------------
73 args.Form("\"%s\",%f,%f,%d,%d,%d",
74 trig.Data(), vzMin, vzMax, lowCent, highCent, nBins);
75 // --- Add the task ----------------------------------------------
76 gROOT->Macro(Form("AddTaskMultDists.C(%s);", args.Data()));
78 //__________________________________________________________________
80 * Do not the centrality selection
82 void CreateCentralitySelection(Bool_t, AliAnalysisManager*) {}
83 //__________________________________________________________________
85 * Crete output handler - we don't want one here.
89 AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
90 //__________________________________________________________________
91 const char* ClassName() const { return "MakeMultTrain"; }