]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- removed ITS options
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 13:46:15 +0000 (13:46 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 13:46:15 +0000 (13:46 +0000)
- added the centrality task for the case of Pb-Pb data
- modified the names of macros and scripts created while submitting a job to contain the name of the task
- updated ROOT and AliRoot versions for running on the GRID

HLT/QA/tasks/macros/CreateAlienHandler.C
HLT/QA/tasks/macros/compare-HLT-offline-grid.C

index ec296aa33dcaf0b89007500113f1521b3c75323e..4e70e94d383e4bd349d6f1233d4e89a00d2a425c 100755 (executable)
@@ -23,8 +23,8 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
   
   // check the versions available on alien with the command 'packages'
   plugin->SetAPIVersion("V1.1x");
-  plugin->SetROOTVersion("v5-27-06d");
-  plugin->SetAliROOTVersion("v4-21-16-AN");
+  plugin->SetROOTVersion("v5-28-00a");
+  plugin->SetAliROOTVersion("v4-21-18-AN");
   
   cout << "===========================================================================================" << endl;
   cout << "  " << endl;
@@ -50,7 +50,7 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
   plugin->SetGridOutputDir(gridOutputDir);   // relative to working dir
   plugin->SetOverwriteMode();                // overwrites the contents of the working and output directory
   
-  Bool_t bTPC=kFALSE, bPHOS=kFALSE, bEMCAL=kFALSE, bITS=kFALSE, bGLOBAL=kFALSE, bD0=kFALSE, bCB=kFALSE;
+  Bool_t bTPC = kFALSE, bPHOS = kFALSE, bEMCAL = kFALSE, bGLOBAL = kFALSE, bD0 = kFALSE, bCB = kFALSE;
  
   TString allArgs = detectorTask;
   TString argument;
@@ -73,10 +73,6 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
            bEMCAL = kTRUE;
            continue;
          }         
-        if(argument.CompareTo("its", TString::kIgnoreCase)==0){
-           bITS = kTRUE;
-           continue;
-         }     
         if(argument.CompareTo("global", TString::kIgnoreCase)==0){
            bGLOBAL = kTRUE;
            continue;
@@ -89,16 +85,6 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
            bCB = kTRUE;
            continue;
          }  
-        if(argument.CompareTo("all",TString::kIgnoreCase)==0){
-           bTPC    = kTRUE;
-           bPHOS   = kTRUE;
-           bEMCAL  = kTRUE;
-           bITS    = kTRUE;
-           bGLOBAL = kTRUE;
-           bD0     = kTRUE;
-           bCB     = kTRUE;
-           continue;
-         }
          else break;
     }
   }
@@ -109,11 +95,6 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
     plugin->SetAdditionalLibs("AliAnalysisTaskHLTTPC.h AliAnalysisTaskHLTTPC.cxx");
     plugin->SetOutputFiles("HLT-OFFLINE-TPC-comparison.root");    
   }
-  if(bITS){  
-    plugin->SetAnalysisSource("AliAnalysisTaskHLTITS.cxx");  
-    plugin->SetAdditionalLibs("AliAnalysisTaskHLTITS.h AliAnalysisTaskHLTITS.cxx");
-    plugin->SetOutputFiles("HLT-OFFLINE-ITS-comparison.root");    
-  }
   if(bPHOS && bEMCAL) {
     plugin->AddIncludePath("-I$ROOTSYS -I$ROOTSYS/include -I$ALICE_ROOT/include -I$ALICE_ROOT -I$ALICE_ROOT/RAW -I$ALICE_ROOT/STEER -I$ALICE_ROOT/PHOS -I$ALICE_ROOT/HLT/BASE -I$ALICE_ROOT/HLT/BASE/util -I$ALICE_ROOT/HLT/global/physics");
     plugin->SetAnalysisSource("AliAnalysisTaskHLTCalo.cxx AliAnalysisTaskHLTPHOS.cxx AliAnalysisTaskHLTEMCAL.cxx");  
@@ -155,8 +136,10 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
   plugin->SetOutputArchive("log_archive.zip:stdout,stderr");
   
   // Optionally set a name for the generated analysis macro (default MyAnalysis.C)
-  plugin->SetAnalysisMacro("runComparison.C");
-  plugin->SetExecutable("comparison.sh");
+  plugin->SetAnalysisMacro(Form("%s.C",detectorTask));
+  
+  //plugin->SetExecutable("comparison.sh");
+  plugin->SetExecutable(Form("%s.sh",detectorTask));
 
   plugin->SetSplitMaxInputFileNumber(100);
   
@@ -172,7 +155,7 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
   plugin->SetInputFormat("xml-single");
  
   // Optionally modify the name of the generated JDL (default analysis.jdl)
-  plugin->SetJDLName("analysis.jdl");
+  plugin->SetJDLName(Form("%s.jdl",detectorTask));
  
   // Optionally modify job price (default 1)
   plugin->SetPrice(1);
@@ -180,5 +163,12 @@ AliAnalysisGrid* CreateAlienHandler(TString runNumber, TString dataDir, TString
   // Optionally modify split mode (default 'se')
   plugin->SetSplitMode("se");
   
+  // comment out the next line when using the "terminate" option, unless
+  // you want separate merged files for each run
+  //plugin->SetMergeViaJDL();
+
+  //plugin->SetOneStageMerging(kFALSE);
+  //plugin->SetMaxMergeStages(2);
+
   return plugin;
 }
index 4abd6eecd1137d6203ecbfc31086d4dd43434cf9..67f45ebb2771d0b417f5d6eb04cc752ee717e195 100644 (file)
  * @author Hege.Erdal@student.uib.no, Kalliopi.Kanaki@ift.uib.no
  */
 
-void compare_HLT_offline_grid(TString runNumber, 
-                              TString dataDir, 
-                             TString gridWorkingDir, 
-                             TString gridOutputDir, 
-                             const char* mode = "full", 
-                             const char* detectorTask="global",
-                             TString taskFolder="$ALICE_ROOT/HLT/QA/tasks/",
-                             TString beamType="p-p",
-                             bool fUseHLTTrigger=kFALSE,
-                             Long64_t nEvents=1234567890
+void compare_HLT_offline_grid( TString runNumber
+                              ,TString dataDir
+                             ,TString gridWorkingDir
+                             ,TString gridOutputDir
+                             ,const char* mode = "full"
+                             ,const char* detectorTask="global"
+                             ,TString taskFolder="$ALICE_ROOT/HLT/QA/tasks/"
+                             ,TString beamType="p-p"
+                             ,TString options="event-off event-hlt track-off track-hlt"
+                             ,bool fUseHLTTrigger=kFALSE
+                             ,Long64_t nEvents=1234567890
                             )
 {
  
@@ -59,7 +60,7 @@ void compare_HLT_offline_grid(TString runNumber,
   //gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
 
   
-  Bool_t bAll=kFALSE, bTPC=kFALSE, bPHOS=kFALSE, bEMCAL=kFALSE, bITS=kFALSE, bGLOBAL=kFALSE, bD0=kFALSE, bCB=kFALSE;
+  Bool_t bTPC=kFALSE, bPHOS=kFALSE, bEMCAL=kFALSE, bGLOBAL=kFALSE, bD0=kFALSE, bCB=kFALSE;
  
   TString allArgs = detectorTask;
   TString argument;
@@ -90,13 +91,6 @@ void compare_HLT_offline_grid(TString runNumber,
           bCB = kTRUE;
           continue;
         }  
-        if(argument.CompareTo("all",TString::kIgnoreCase)==0){
-           bPHOS   = kTRUE;
-           bEMCAL  = kTRUE;
-           bGLOBAL = kTRUE;
-           bAll    = kTRUE;
-           continue;
-         }
          else break;
     }
   }
@@ -209,7 +203,8 @@ void compare_HLT_offline_grid(TString runNumber,
      if(beamType.Contains("Pb-Pb")){
         gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskCentrality.C");
         AliCentralitySelectionTask *taskCentrality = AddTaskCentrality(); 
-     }   
+     }  
+     taskCB->SetOptions(options); 
      AliAnalysisDataContainer *coutputCB =  mgr->CreateContainer("esd_thnsparse",TList::Class(), AliAnalysisManager::kOutputContainer, "HLT-OFFLINE-CentralBarrel-comparison.root");       
      mgr->ConnectInput(taskCB,0,mgr->GetCommonInputContainer());
      mgr->ConnectOutput(taskCB,1,coutputCB);