]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/totEt/macros/CreateAlienHandlerHadEtSim.C
Minor tweaks to get calo jobs running on the grid
[u/mrichter/AliRoot.git] / PWG4 / totEt / macros / CreateAlienHandlerHadEtSim.C
CommitLineData
4998bf42 1 AliAnalysisGrid* CreateAlienHandlerHadEtSim()
2{
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();
8
9// Overwrite all generated files, datasets and output results from a previous session
10 plugin->SetOverwriteMode();
ea331c5d 11// Set the run modSoon a picture of Kim Jong-un (sitting far left) flashed around the world, the first known image of him since his school dayse (can be "full", "test", "offline", "submit" or "terminate")
4998bf42 12 plugin->SetRunMode("full"); // VERY IMPORTANT - DECRIBED BELOW
ea331c5d 13 //plugin->SetRunMode("test"); // VERY IMPORTANT - DECRIBED BELOW
14 //plugin->SetCheckCopy(kFALSE);
15// Set versions of used packages
4998bf42 16 plugin->SetAPIVersion("V1.1x");
ea331c5d 17 plugin->SetROOTVersion("v5-27-06b");
18 plugin->SetAliROOTVersion("v4-21-10-AN");
4998bf42 19// Declare input data to be processed.
20
21// Method 1: Create automatically XML collections using alien 'find' command.
22// Define production directory LFN
ea331c5d 23// plugin->SetGridDataDir("/alice/data/2010/LHC10d");
4998bf42 24// Set data search pattern
25// plugin->SetDataPattern("*ESDs.root"); // simulated, tags not used
ea331c5d 26// plugin->SetDataPattern("*ESDs/pass2/*ESDs.root"); // real data check reco pass and data base directory
4998bf42 27// plugin->SetRunPrefix("000"); // real data
28// plugin->SetDataPattern("*tag.root"); // Use ESD tags (same applies for AOD's)
29// ...then add run numbers to be considered
30// plugin->AddRunNumber(125020); // simulated
ea331c5d 31// plugin->AddRunNumber(126403); // real data
32// plugin->AddRunNumber(126404); // real data
33// plugin->AddRunNumber(126405); // real data
34
35 plugin->SetGridDataDir("/alice/sim/LHC10d4");
36 plugin->SetDataPattern("*ESDs.root");
37 plugin->AddRunNumber(120741);//smallest of the above
38// plugin->AddRunNumber(120750);
39// plugin->AddRunNumber(120758);
40// plugin->AddRunNumber(120820);
41// plugin->AddRunNumber(120821);
42// plugin->AddRunNumber(120822);
43// plugin->AddRunNumber(120823);
44// plugin->AddRunNumber(120824);
45// plugin->AddRunNumber(120825);
46// plugin->AddRunNumber(120829);
4998bf42 47
48// Method 2: Declare existing data files (raw collections, xml collections, root file)
49// If no path mentioned data is supposed to be in the work directory (see SetGridWorkingDir())
50// XML collections added via this method can be combined with the first method if
51// the content is compatible (using or not tags)
ea331c5d 52// plugin->AddDataFile("tag.xml");
4998bf42 53// plugin->AddDataFile("/alice/data/2008/LHC08c/000057657/raw/Run57657.Merged.RAW.tag.root");
54
55// Define alien work directory where all files will be copied. Relative to alien $HOME.
56 plugin->SetGridWorkingDir("et");
57// Declare alien output directory. Relative to working directory.
58 plugin->SetGridOutputDir("output"); // In this case will be $HOME/work/output
59// Declare the analysis source files names separated by blancs. To be compiled runtime IN THE SAME ORDER THEY ARE LISTED
60// using ACLiC on the worker nodes.
61 //plugin->SetAnalysisSource("AliAnalysisTaskHadEt.cxx");
62 //plugin->SetAnalysisSource("AliAnalysisEt.cxx AliAnalysisEtMonteCarlo.cxx AliAnalysisEtMonteCarloPhos.cxx AliAnalysisEtReconstructed.cxx AliAnalysisEtReconstructedPhos.cxx AliAnalysisHadEt.cxx AliAnalysisHadEtMonteCarlo.cxx AliAnalysisHadEtReconstructed.cxx AliAnalysisTaskHadEt.cxx AliAnalysisTaskTotEt.cxx");
904048b2 63 plugin->SetAnalysisSource("AliAnalysisEtCuts.cxx AliAnalysisHadEtCorrections.cxx AliAnalysisEtCommon.cxx AliAnalysisHadEt.cxx AliAnalysisHadEtMonteCarlo.cxx AliAnalysisHadEtReconstructed.cxx AliAnalysisEtSelectionContainer.cxx AliAnalysisEtSelectionHandler.cxx AliAnalysisTaskTransverseEnergy.cxx AliAnalysisTaskHadEt.cxx");
4998bf42 64// Declare all libraries (other than the default ones for the framework. These will be
65// loaded by the generated analysis macro. Add all extra files (task .cxx/.h) here.
ea331c5d 66 plugin->SetAdditionalLibs("AliAnalysisEtCuts.h AliAnalysisEtCuts.cxx AliAnalysisHadEtCorrections.h AliAnalysisHadEtCorrections.cxx AliAnalysisEtCommon.h AliAnalysisEtCommon.cxx AliAnalysisHadEt.cxx AliAnalysisHadEtMonteCarlo.cxx AliAnalysisHadEtReconstructed.cxx AliAnalysisEtSelectionContainer.cxx AliAnalysisEtSelectionHandler.cxx AliAnalysisTaskTransverseEnergy.cxx AliAnalysisTaskHadEt.cxx AliAnalysisHadEt.h AliAnalysisHadEtMonteCarlo.h AliAnalysisHadEtReconstructed.h AliAnalysisEtSelectionContainer.h AliAnalysisEtSelectionHandler.h AliAnalysisTaskTransverseEnergy.h AliAnalysisTaskHadEt.h physicsSelections.root corrections.root ConfigHadEtAnalysis.C ConfigHadEtMonteCarlo.C ConfigHadEtReconstructed.C");
4998bf42 67// No need for output file names. Procedure is automatic. <-- not true
68 plugin->SetDefaultOutputs(kFALSE);
ea331c5d 69 plugin->SetOutputFiles("Et.ESD.new.sim.root event_stat.root");
4998bf42 70// No need define the files to be archived. Note that this is handled automatically by the plugin.
71// plugin->SetOutputArchive("log_archive.zip:stdout,stderr");
72// Set a name for the generated analysis macro (default MyAnalysis.C) Make this unique !
73 plugin->SetAnalysisMacro("ChristinesEtAnalysis.C");
74// Optionally set maximum number of input files/subjob (default 100, put 0 to ignore). The optimum for an analysis
75// is correlated with the run time - count few hours TTL per job, not minutes !
76 plugin->SetSplitMaxInputFileNumber(100);
77// Optionally set number of failed jobs that will trigger killing waiting sub-jobs.
78 plugin->SetMaxInitFailed(5);
79// Optionally resubmit threshold.
80 plugin->SetMasterResubmitThreshold(90);
81// Optionally set time to live (default 30000 sec)
82 plugin->SetTTL(20000);
83// Optionally set input format (default xml-single)
84 plugin->SetInputFormat("xml-single");
85// Optionally modify the name of the generated JDL (default analysis.jdl)
86 plugin->SetJDLName("TaskEt.jdl");
87// Optionally modify job price (default 1)
88 plugin->SetPrice(1);
89// Optionally modify split mode (default 'se')
90 plugin->SetSplitMode("se");
91 return plugin;
92}