AliPhysics  c923f52 (c923f52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MakeFlow.C
Go to the documentation of this file.
1 
10 //====================================================================
22 void MakeFlow(TString name = "flow",
23  TString options = "help",
24  TString mode = "lite",
25  TString datadir = "",
26  TString urlOpts = "workers=10&recursive")
27 {
28  if (name.IsNull()) Fatal("MakeFlow", "Must specify a name");
29  gROOT->SetMacroPath(Form("%s:$ALICE_PHYSICS/PWGLF/FORWARD/analysis2/trains",
30  gROOT->GetMacroPath()));
31 
32  gROOT->LoadMacro("$ALICE_PHYSICS/PWGLF/FORWARD/trains/RunTrain.C");
33 
34  if (!datadir.EndsWith("/") && !mode.Contains("proof")) datadir.Append("/");
35 
36  TUrl url(datadir.Data());
37  url.SetProtocol(mode.Data());
38  url.SetAnchor("aodTree");
39  url.SetOptions(urlOpts.Data());
40 
41  RunTrain(name, "MakeFlowTrain", url, options);
42 }
43 //--------------------------------------------------------------------
44 //
45 // EOF
46 //
void MakeFlow(TString name="flow", TString options="help", TString mode="lite", TString datadir="", TString urlOpts="workers=10&recursive")
Definition: MakeFlow.C:22
const char * url
Bool_t RunTrain(const TString &name, const TString &cls, const TUrl &uri, const TString &opts)
Definition: RunTrain.C:111
Definition: External.C:92
Int_t mode
Definition: anaM.C:40