3 * @author Alexander Hansen
4 * @date Wed Mar 23 12:11:33 2011
8 * @ingroup pwg2_forward_scripts_makers
11 //====================================================================
13 * Script to analyse AOD input for flow
15 * Takes either a single (AOD) .root file as input or a .txt
16 * The .txt file is expected to contain the path to the files
17 * from the current directory or the absolute path.
25 * @param name Name of train
26 * @param options Options @see RunTrain
27 * @param runs Options @see RunTrain
28 * @param nEvents Number of events to process, negative for all
30 * @ingroup pwglf_forward_flow
32 void MakeFlow(TString name = "flow",
33 TString options = "help",
34 TString mode = "lite",
35 TString datadir = "/mnt/Disk2/LHC10h_pass2_flowNoSecCorr/",
36 TString urlOpts = "workers=10&recursive")
38 if (name.IsNull()) Fatal("MakeFlow", "Must specify a name");
40 gROOT->LoadMacro("$ALICE_ROOT/PWGLF/FORWARD/trains/RunTrain.C");
42 if (!datadir.EndsWith("/")) datadir.Append("/");
44 TUrl url(datadir.Data());
45 url.SetProtocol(mode.Data());
46 url.SetAnchor("aodTree");
47 url.SetOptions(urlOpts.Data());
49 RunTrain(name, "MakeFlowTrain", url, options);
51 //--------------------------------------------------------------------