Test tasks for official train
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Oct 2009 13:24:04 +0000 (13:24 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Oct 2009 13:24:04 +0000 (13:24 +0000)
PWG3/vertexingHF/RunAnalysisAODVertexingHF.C

index 5e391f1..19184b8 100644 (file)
@@ -18,13 +18,13 @@ void RunAnalysisAODVertexingHF()
 \r
   gSystem->SetIncludePath("-I. -I$ROOTSYS/include -I$ALICE_ROOT -I$ALICE_ROOT/include -I$ALICE_ROOT/ITS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS -I$ALICE_ROOT/STEER -I$ALICE_ROOT/TRD -I$ALICE_ROOT/macros -I$ALICE_ROOT/ANALYSIS -I$ALICE_ROOT/PWG3 -I$ALICE_ROOT/PWG3/vertexingHF -g"); \r
   //\r
-  TString trainName = "Test";\r
+  TString trainName = "D2H";\r
   TString analysisMode = "grid"; // "local", "grid", or "proof"\r
   TString inputMode    = "list"; // "list", "xml", or "dataset"\r
-  Long64_t nentries=1234567890,firstentry=0;\r
+  Long64_t nentries=1000,firstentry=0;\r
   Bool_t useParFiles=kFALSE;\r
   Bool_t useAlienPlugin=kTRUE;\r
-  TString pluginmode="test";\r
+  TString pluginmode="full";\r
   Bool_t saveProofToAlien=kFALSE;\r
   TString proofOutdir = "";\r
   TString loadMacroPath="$ALICE_ROOT/PWG3/vertexingHF/";\r
@@ -155,6 +155,7 @@ void RunAnalysisAODVertexingHF()
       gROOT->LoadMacro(makeAODInputChain.Data());\r
       chainAOD = MakeAODInputChain();// with this it reads ./AliAOD.root and ./AliAOD.VertexingHF.root\r
       //chainAOD = MakeAODInputChain("alien:///alice/cern.ch/user/r/rbala/newtrain/out_lhc08x/180100/",1,1);\r
+      printf("ENTRIES %d\n",chainAOD->GetEntries());\r
     } else if(inputMode=="xml") {\r
       // xml\r
       gROOT->LoadMacro(makeAODInputChain.Data());\r
@@ -168,7 +169,7 @@ void RunAnalysisAODVertexingHF()
 \r
   // Create the analysis manager\r
   AliAnalysisManager *mgr  = new AliAnalysisManager("My Manager","My Manager");\r
-  mgr->SetDebugLevel(0);\r
+  mgr->SetDebugLevel(10);\r
   // Connect plug-in to the analysis manager\r
   if(useAlienPlugin) mgr->SetGridHandler(alienHandler);\r
 \r
@@ -186,15 +187,15 @@ void RunAnalysisAODVertexingHF()
   // Analysis tasks (wagons of the train)   \r
   //\r
   TString taskName;\r
-\r
-  taskName="AddTaskCompareHF.C"; taskName.Prepend(loadMacroPath.Data());\r
-  gROOT->LoadMacro(taskName.Data());\r
-  AliAnalysisTaskSECompareHF *cmpTask = AddTaskCompareHF();\r
+  \r
+  //taskName="AddTaskCompareHF.C"; taskName.Prepend(loadMacroPath.Data());\r
+  //gROOT->LoadMacro(taskName.Data());\r
+  //AliAnalysisTaskSECompareHF *cmpTask = AddTaskCompareHF();\r
   \r
   taskName="AddTaskD0Mass.C"; taskName.Prepend(loadMacroPath.Data());\r
   gROOT->LoadMacro(taskName.Data());\r
   AliAnalysisTaskSED0Mass *d0massTask = AddTaskD0Mass();\r
-\r
+  AliAnalysisTaskSED0Mass *d0massLikeSignTask = AddTaskD0Mass(1); \r
   \r
   taskName="AddTaskDplus.C"; taskName.Prepend(loadMacroPath.Data());\r
   gROOT->LoadMacro(taskName.Data());\r
@@ -203,7 +204,7 @@ void RunAnalysisAODVertexingHF()
   //taskName="AddTaskSelectHF.C"; taskName.Prepend(loadMacroPath.Data());\r
   //gROOT->LoadMacro(taskName.Data());\r
   //AliAnalysisTaskSESelectHF *seleTask = AddTaskSelectHF();\r
-\r
+  \r
   taskName="AddTaskBkgLikeSignD0.C"; taskName.Prepend(loadMacroPath.Data());\r
   gROOT->LoadMacro(taskName.Data());\r
   AliAnalysisTaskSEBkgLikeSignD0 *lsD0Task = AddTaskBkgLikeSignD0();\r
@@ -212,9 +213,9 @@ void RunAnalysisAODVertexingHF()
   gROOT->LoadMacro(taskName.Data());\r
   AliAnalysisTaskSEBkgLikeSignJPSI *lsJPSITask = AddTaskBkgLikeSignJPSI();\r
 \r
-  taskName="AddTaskBtoJPSItoEle.C"; taskName.Prepend(loadMacroPath.Data());\r
-  gROOT->LoadMacro(taskName.Data());\r
-  AliAnalysisTaskSEBtoJPSItoEle *jpsiTask = AddTaskBtoJPSItoEle();\r
+  //taskName="AddTaskBtoJPSItoEle.C"; taskName.Prepend(loadMacroPath.Data());\r
+  //gROOT->LoadMacro(taskName.Data());\r
+  //AliAnalysisTaskSEBtoJPSItoEle *jpsiTask = AddTaskBtoJPSItoEle();\r
 \r
   taskName="AddTaskCFMultiVarMultiStep.C"; taskName.Prepend(loadMacroPath.Data());\r
   gROOT->LoadMacro(taskName.Data());\r
@@ -224,7 +225,7 @@ void RunAnalysisAODVertexingHF()
   gROOT->LoadMacro(taskName.Data());\r
   Int_t switchMC[5]={1,1,1,1,1};\r
   AliAnalysisTaskSECharmFraction *cFractTask = AddTaskCharmFraction("d0D0.root",switchMC);\r
-\r
+  \r
   // attach a private task (not committed)\r
   // (the files MyTask.h MyTask.cxx AddMyTask.C have to be declared in plugin\r
   // configuration, see below)\r
@@ -281,7 +282,7 @@ AliAnalysisGrid* CreateAlienHandler(TString pluginmode="test",Bool_t useParFiles
    // Set versions of used packages\r
    plugin->SetAPIVersion("V2.4");\r
    plugin->SetROOTVersion("v5-24-00");\r
-   plugin->SetAliROOTVersion("v4-18-06-AN");\r
+   plugin->SetAliROOTVersion("v4-18-07-AN");\r
    // Declare input data to be processed.\r
    // Method 1: Create automatically XML collections using alien 'find' command.\r
    // Define production directory LFN\r
@@ -302,7 +303,7 @@ AliAnalysisGrid* CreateAlienHandler(TString pluginmode="test",Bool_t useParFiles
    //plugin->AddDataFile("/alice/cern.ch/user/r/rbala/newtrain/collection/collection_aod_lhc08w.xml");\r
    //   plugin->AddDataFile("/alice/data/2008/LHC08c/000057657/raw/Run57657.Merged.RAW.tag.root");\r
    // Define alien work directory where all files will be copied. Relative to alien $HOME.\r
-   plugin->SetGridWorkingDir("lhc09a5_061009");\r
+   plugin->SetGridWorkingDir("lhc09a5_231009");\r
    // Declare alien output directory. Relative to working directory.\r
    plugin->SetGridOutputDir("output"); // In this case will be $HOME/work/output\r
    // Declare the analysis source files names separated by blancs. To be compiled runtime\r