]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/macros/test/CreateAlienHandlerAODPbPb.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGHF / hfe / macros / test / CreateAlienHandlerAODPbPb.C
CommitLineData
785288a1 1
2AliAnalysisGrid* CreateAlienHandlerAODPbPb()
3{
4// Check if user has a valid token, otherwise make one. This has limitations.
5// One can always follow the standard procedure of calling alien-token-init then
6// source /tmp/gclient_env_$UID in the current shell.
7// if (!AliAnalysisGrid::CreateToken()) return NULL;
8 AliAnalysisAlien *plugin = new AliAnalysisAlien();
9 plugin->SetOverwriteMode();
10 // Set the run mode (can be "full", "test", "offline", "submit" or "terminate")
11 plugin->SetRunMode("test");
12 // plugin->SetRunMode("full");
13 // plugin->SetRunMode("terminate");
14 // plugin->SetRunMode("offline");
15 // plugin->SetRunMode("submit");
16 // Set versions of used packages
17 plugin->SetNtestFiles(2);
18
19 plugin->SetAPIVersion("V1.1x");
20 plugin->SetROOTVersion("v5-33-02b");
21 plugin->SetAliROOTVersion("v5-03-23-AN");
22 // Declare input data to be processed.
23 // Method 1: Create automatically XML collections using alien 'find' command.
24 // Define production directory LFN
25 // plugin->SetGridDataDir("/alice/cern.ch/user/k/kleinb/analysisESD/LHC10b/output_pwg4train_LHC10b_pass2_100910a");
26 // On real reconstructed data:
27 plugin->SetGridDataDir("/alice/data/2011/LHC11h_2/");
28 // Set data search pattern
29 //plugin->SetDataPattern("*/pass2/AOD043/*/AliAOD.root");
30 //plugin->SetDataPattern("*/pass2/AOD039/*/AliAOD.root");
3203bacc 31 plugin->SetDataPattern("*/pass2/AOD145/*/AliAOD.root");
785288a1 32 // Data pattern for reconstructed data
33 // plugin->SetDataPattern("*AliAOD.root"); //esta linea sirve para pruebas
34 plugin->SetRunPrefix("000"); // real data
35 // ...then add run numbers to be considered
36
37 //Use Evas RCT-Good-RUN-list splitter:
38 //LHC10eAOD43
39 //TString runs="130850 130848 130844 130834 130803 130799 130795 130793 130704 130696 130628 130623 130621 130601 130526 130524 130520 130519 130517 130481 130480 130375 130369 130358 130356 130343 130178 130158 130157 130151 130149 130148 129983 129966 129962 129961 129738 129736 129735 129729 129667 129654 129641 129540 129536 129520 129042 128912 128855 128853 128850 128843 128836 128833 128824 128820 128777 128621 128615 128609 128596 128592 128504 128503 128498 128486 128452 128366 128260 128257 128189 128186 128185 128182 128180 128175 127942 127941 127937 127936 127935 127933 127932 127931 127822 127817 127815 127814 127729 127724 127719 127718 127714";
40 // TString runs="130848 130844 130834 130803 130799 130795 130793 130704 130696 130628 130623 130621 130601 130526 130524 130520 130519 130517 130481 130480 130375 130369 130358 130356 130343 130178 130158 130157 130151 130149 130148 129983 129966 129962 129961 129738 129736 129735 129729 129667 129654 129641 129540 129536 129520 129042 128912 128855 128853 128850 128843 128836 128833 128824 128820 128777 128621 128615 128609 128596 128592 128504 128503 128498 128486 128452 128366 128260 128257 128189 128186 128185 128182 128180 128175 127942 127941 127937 127936 127935 127933 127932 127931 127822 127817 127815 127814 127729 127724 127719 127718 127714";
41
42 //LHC10dAOD39:
43 //TString runs="126437 126432 126425 126424 126422 126409 126408 126407 126406 126404 126359 126352 126351 126284 126283 126168 126160 126158 126097 126090 126088 126082 126081 126078 126073 126008 126007 125855 125851 125850 125849 125842 125632 125630 125628 125186 125140 125139 125134 125101 125097 125085 122374";
44 //LHC10dAOD57:
45 //TString runs="122374 124358 124360 124371 124374 124378 124380 124381 124383 124385 124388 124600 124606 125085 125097 125101 125134 125139 125140 125186 125295 125632 125842 125849 125850 125851 125855 126007 126073 126078 126081 126082 126088 126090 126097 126158 126160 126167 126168 126177 126283 126284 126351 126352 126359 126404 126406 126407 126408 126409 126422 126424 126425 126432 126437";
46 // TString runs=" 124358 124360 124371 124374 124378 124380 124381 124383 124385 124600 124606 125085 125097 125101 125134 125139 125140 125186 125295 125632 125842 125849 125850 125851 125855 126007 126073 126078 126081 126082 126088 126090 126097 126158 126160 126167 126168 126177 126283 126284 126351 126352 126359 126404 126406 126407 126408 126409 126422 126425 126432 126437";
47 //Taken out: 125296
48/*
49 TObjArray* array = runs.Tokenize ( " " );
50 TObjString *str;
51 TString strr;
52 for ( Int_t i = 0;i < array->GetEntriesFast();i++ ) {
53 str = ( TObjString * ) array->At ( i );
54 strr = str->GetString();
55 if ( !strr.IsNull() ) {
56 plugin->AddRunNumber(strr.Atoi());
57 }
58 }
59
60*/
61
62
63 plugin->AddRunNumber(168464); //sim data
64
65 plugin->SetOutputToRunNo();
66// Method 2: Declare existing data files (raw collections, xml collections, root file)
67// If no path mentioned data is supposed to be in the work directory (see SetGridWorkingDir())
68// XML collections added via this method can be combined with the first method if
69// the content is compatible (using or not tags)
70// plugin->AddDataFile("tag.xml");
71// plugin->AddDataFile("/alice/data/2008/LHC08c/000057657/raw/Run57657.Merged.RAW.tag.root");
72// Define alien work directory where all files will be copied. Relative to alien $HOME.
73 plugin->SetGridWorkingDir("work");
74// Declare alien output directory. Relative to working directory.
75 plugin->SetGridOutputDir("output"); // In this case will be $HOME/work/output
76// Declare the analysis source files names separated by blancs. To be compiled runtime
77// using ACLiC on the worker nodes.
78// plugin->SetAnalysisSource("AliAnalysisHelperJetTasks.cxx AliAnalysisTaskPartonDisc.cxx");
79 plugin->AddIncludePath("-I. -I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT/ANALYSIS -I$ALICE_ROOT/Tender -I$ALICE_ROOT/TenderSupplies -I$ALICE_ROOT/PWGHF/ -I$ALICE_ROOT/PWGHF/hfe/macros -I$ALICE_ROOT/PWGHF/hfe -I$ALICE_ROOT/PWG/ -I$ALICE_ROOT/PWG/FLOW -I$ALICE_ROOT/PWG/Base -I$ALICE_ROOT/PWG/Tasks");
af472fff 80 plugin->SetAdditionalLibs("libGui.so libXMLParser.so libSTEERBase.so libAOD.so libCDB.so libANALYSIS.so libANALYSISalice.so libCORRFW.so libTender.so libProof.so libRAWDatabase.so libSTEER.so libTOFbase.so libPWGflowBase.so libPWGflowTasks.so libPWGHFhfe.so");// ConfigLowMassDiE.C")
785288a1 81
82// Declare all libraries (other than the default ones for the framework. These will be
83// loaded by the generated analysis macro. Add all extra files (task .cxx/.h) here.
84// plugin->SetAdditionalLibs("AliAnalysisHelperJetTasks.h AliAnalysisHelperJetTasks.cxx AliAnalysisTaskPartonDisc.h AliAnalysisTaskPartonDisc.cxx");
85// Declare the output file names separated by blancs.
86// (can be like: file.root or file.root@ALICE::Niham::File)
87// plugin->SetOutputFiles("Output.root");
88
89 // plugin->SetDefaultOutputs();
90 plugin->SetDefaultOutputs(kFALSE);
91 plugin->SetOutputFiles("AnalysisResults.root");
92
93
94// Optionally define the files to be archived.
95// plugin->SetOutputArchive("log_archive.zip:stdout,stderr@disk=2 root_archive.zip:*.root@disk=2");
96// plugin->SetOutputArchive("log_archive.zip:stdout,stderr");
97// Optionally set a name for the generated analysis macro (default MyAnalysis.C)
98 plugin->SetAnalysisMacro("Tpctofv2aod.C");
99// Optionally modify the executable name (default analysis.sh)
100 plugin->SetExecutable("Tpctofv2aod.sh");
101 plugin->SetExecutableCommand("aliroot -b -q");
102// Optionally set number of failed jobs that will trigger killing waiting sub-jobs.
103// plugin->SetMaxInitFailed(5);
104// Optionally resubmit threshold.
105// plugin->SetMasterResubmitThreshold(90);
106
107// Optionally set maximum number of input files/subjob (default 100, put 0 to ignore)
108 plugin->SetSplitMaxInputFileNumber(100);
109 // Optionally set number of failed jobs that will trigger killing waiting sub-jobs.
110 plugin->SetMaxInitFailed(5);
111 // Optionally resubmit threshold.
112 plugin->SetMasterResubmitThreshold(90);
113 // Optionally set time to live (default 30000 sec)
114 plugin->SetTTL(30000);
115
116
117// Optionally set input format (default xml-single)
118 plugin->SetInputFormat("xml-single");
119// Optionally modify the name of the generated JDL (default analysis.jdl)
120// plugin->SetJDLName("DielAnalysis.jdl");
121// Optionally modify job price (default 1)
122 plugin->SetPrice(1);
123// Optionally modify split mode (default 'se')
124 plugin->SetSplitMode("se");
125
126// Enable Merging on the GRID:
127// plugin->SetMergeViaJDL(kTRUE);
128
129
130
131 return plugin;
132}