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 mode Which execution environment
28 * @param datadir Data directory
29 * @param urlOpts URL options
31 * @ingroup pwglf_forward_flow
33 void MakeFlow(TString name = "flow",
34 TString options = "help",
35 TString mode = "lite",
36 TString datadir = "/mnt/Disk2/LHC10h_pass2_flowNoSecCorr/",
37 TString urlOpts = "workers=10&recursive")
39 if (name.IsNull()) Fatal("MakeFlow", "Must specify a name");
40 gROOT->SetMacroPath(Form("%s:$ALICE_ROOT/PWGLF/FORWARD/analysis2/trains",
41 gROOT->GetMacroPath()));
43 gROOT->LoadMacro("$ALICE_ROOT/PWGLF/FORWARD/trains/RunTrain.C");
45 if (!datadir.EndsWith("/")) datadir.Append("/");
47 TUrl url(datadir.Data());
48 url.SetProtocol(mode.Data());
49 url.SetAnchor("aodTree");
50 url.SetOptions(urlOpts.Data());
52 RunTrain(name, "MakeFlowTrain", url, options);
54 //--------------------------------------------------------------------