1 AliAnalysisGrid* CreateAlienHandlerCaloEtSim()
3 // Check if user has a valid token, otherwise make one. This has limitations.
4 // One can always follow the standard procedure of calling alien-token-init then
5 // source /tmp/gclient_env_$UID in the current shell.
6 if (!AliAnalysisGrid::CreateToken()) return NULL;
7 AliAnalysisAlien *plugin = new AliAnalysisAlien();
9 // Overwrite all generated files, datasets and output results from a previous session
10 plugin->SetOverwriteMode();
11 // Set the run mode (can be "full", "test", "offline", "submit" or "terminate")
12 //plugin->SetRunMode("full"); // VERY IMPORTANT - DECRIBED BELOW
13 plugin->SetRunMode("full"); // VERY IMPORTANT - DECRIBED BELOW
14 // Set versions of used packages
15 plugin->SetAPIVersion("V1.1x");
16 plugin->SetROOTVersion("v5-26-00b-6");
17 plugin->SetAliROOTVersion("v4-20-04-AN");
18 // Declare input data to be processed.
20 // Method 1: Create automatically XML collections using alien 'find' command.
21 // Define production directory LFN
22 // plugin->SetGridDataDir("/alice/sim/LHC10a18");
23 // Set data search pattern
24 // plugin->SetDataPattern("*ESDs.root"); // simulated, tags not used
25 // plugin->SetDataPattern("*ESDs/pass4/*ESDs.root"); // real data check reco pass and data base directory
26 // plugin->SetRunPrefix("000"); // real data
27 // plugin->SetDataPattern("*tag.root"); // Use ESD tags (same applies for AOD's)
28 // ...then add run numbers to be considered
29 // plugin->AddRunNumber(125020); // simulated
30 // plugin->AddRunNumber(104065); // real data
32 // Method 2: Declare existing data files (raw collections, xml collections, root file)
33 // If no path mentioned data is supposed to be in the work directory (see SetGridWorkingDir())
34 // XML collections added via this method can be combined with the first method if
35 // the content is compatible (using or not tags)
36 plugin->AddDataFile("tag.xml");
37 // plugin->AddDataFile("/alice/data/2008/LHC08c/000057657/raw/Run57657.Merged.RAW.tag.root");
39 // Define alien work directory where all files will be copied. Relative to alien $HOME.
40 plugin->SetGridWorkingDir("etOystein");
41 // Declare alien output directory. Relative to working directory.
42 plugin->SetGridOutputDir("output"); // In this case will be $HOME/work/output
43 // Declare the analysis source files names separated by blancs. To be compiled runtime IN THE SAME ORDER THEY ARE LISTED
44 // using ACLiC on the worker nodes.
45 //plugin->SetAnalysisSource("AliAnalysisTaskHadEt.cxx");
46 //plugin->SetAnalysisSource("AliAnalysisEt.cxx AliAnalysisEtMonteCarlo.cxx AliAnalysisEtMonteCarloPhos.cxx AliAnalysisEtReconstructed.cxx AliAnalysisEtReconstructedPhos.cxx AliAnalysisHadEt.cxx AliAnalysisHadEtMonteCarlo.cxx AliAnalysisHadEtReconstructed.cxx AliAnalysisTaskHadEt.cxx AliAnalysisTaskTotEt.cxx");
47 plugin->SetAnalysisSource("AliAnalysisEt.cxx AliAnalysisEtMonteCarlo.cxx AliAnalysisEtMonteCarloPhos.cxx AliAnalysisEtMonteCarloEmcal.cxx AliAnalysisEtReconstructed.cxx AliAnalysisEtReconstructedPhos.cxx AliAnalysisEtReconstructedEmcal.cxx AliAnalysisTaskTotEt.cxx");
48 // Declare all libraries (other than the default ones for the framework. These will be
49 // loaded by the generated analysis macro. Add all extra files (task .cxx/.h) here.
50 plugin->SetAdditionalLibs("AliAnalysisEtCuts.h AliAnalysisEt.h AliAnalysisEtMonteCarlo.h AliAnalysisEtMonteCarloPhos.h AliAnalysisEtMonteCarloEmcal.h AliAnalysisEtReconstructed.h AliAnalysisEtReconstructedPhos.h AliAnalysisEtReconstructedEmcal.h AliAnalysisTaskTotEt.h AliAnalysisEt.cxx AliAnalysisEtMonteCarlo.cxx AliAnalysisEtMonteCarloPhos.cxx AliAnalysisEtMonteCarloEmcal.cxx AliAnalysisEtReconstructed.cxx AliAnalysisEtReconstructedPhos.cxx AliAnalysisEtReconstructedEmcal.cxx AliAnalysisTaskTotEt.cxx");
51 // No need for output file names. Procedure is automatic. <-- not true
52 plugin->SetDefaultOutputs(kFALSE);
53 plugin->SetOutputFiles("Et.ESD.sim.root");
54 // No need define the files to be archived. Note that this is handled automatically by the plugin.
55 // plugin->SetOutputArchive("log_archive.zip:stdout,stderr");
56 // Set a name for the generated analysis macro (default MyAnalysis.C) Make this unique !
57 plugin->SetAnalysisMacro("OysteinsEtAnalysis.C");
58 // Optionally set maximum number of input files/subjob (default 100, put 0 to ignore). The optimum for an analysis
59 // is correlated with the run time - count few hours TTL per job, not minutes !
60 plugin->SetSplitMaxInputFileNumber(100);
61 // Optionally set number of failed jobs that will trigger killing waiting sub-jobs.
62 plugin->SetMaxInitFailed(5);
63 // Optionally resubmit threshold.
64 plugin->SetMasterResubmitThreshold(90);
65 // Optionally set time to live (default 30000 sec)
66 plugin->SetTTL(20000);
67 // Optionally set input format (default xml-single)
68 plugin->SetInputFormat("xml-single");
69 // Optionally modify the name of the generated JDL (default analysis.jdl)
70 plugin->SetJDLName("TaskEt.jdl");
71 // Optionally modify job price (default 1)
73 // Optionally modify split mode (default 'se')
74 plugin->SetSplitMode("se");