]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/trains/MakeTrain.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / trains / MakeTrain.C
1 /**
2  * @file   MakeTrain.C
3  * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4  * @date   Fri Nov 23 02:23:03 2012
5  * 
6  * @brief  Run a train
7  * 
8  * 
9  * @ingroup pwglf_forward_scripts_makers
10  */
11 //====================================================================
12 /** 
13  * Run a train
14  * 
15  * @param name       Name of train - free form.  This will be the name
16  *                   of the output directory if the plug-in is used 
17  * @param cls        Class name
18  * @param options    Options string
19  * @param url        Execution and input URL
20  *
21  * @ingroup pwglf_forward_aod
22  */
23 void MakeTrain(TString     name       = "aod", 
24                TString     cls        = "",
25                TString     url        = "help",
26                TString     options    = "help")
27 {
28   if (cls.IsNull())  Fatal("MakeTrain", "Must specify a class name");
29   if (name.IsNull()) Fatal(cls, "Must specify a name");
30   gROOT->LoadMacro("$ALICE_ROOT/PWGLF/FORWARD/trains/RunTrain.C");
31   gROOT->SetMacroPath(Form("%s:$ALICE_ROOT/PWGLF/FORWARD/analysis2/trains",
32                            gROOT->GetMacroPath()));
33
34   RunTrain(name, cls, uri, options);
35 }
36 //
37 // EOF
38 //