]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/MakeFlow.C
Update of forward flow tasks to include the option of using an etagap. Macros updated...
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / MakeFlow.C
1 /**
2  * @file   MakeFlow.C
3  * @author Alexander Hansen 
4  * @date   Wed Mar 23 12:11:33 2011
5  * 
6  * @brief  
7  * 
8  * @ingroup pwg2_forward_scripts_makers
9  * 
10  */
11 //====================================================================
12 /**
13  * Script to analyse AOD input for flow
14  * 
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.
18  * 
19  * @par Inputs: 
20  *  
21  * 
22  * @par Outputs: 
23  * - 
24  *
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 
29  *
30  * @ingroup pwglf_forward_flow
31  */
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") 
37 {
38   if (name.IsNull()) Fatal("MakeFlow", "Must specify a name");
39   
40   gROOT->LoadMacro("$ALICE_ROOT/PWGLF/FORWARD/trains/RunTrain.C");
41
42   if (!datadir.EndsWith("/")) datadir.Append("/");
43   
44   TUrl url(datadir.Data());
45   url.SetProtocol(mode.Data());
46   url.SetAnchor("aodTree");
47   url.SetOptions(urlOpts.Data());
48
49   RunTrain(name, "MakeFlowTrain", url, options);
50 }
51 //--------------------------------------------------------------------
52 //
53 // EOF
54 //