]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use helper macro to load libraries and compile par files (if needed)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2009 16:43:59 +0000 (16:43 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2009 16:43:59 +0000 (16:43 +0000)
PWG3/vertexingHF/AliAnalysisTaskSECompareHFTest.C
PWG3/vertexingHF/AliAnalysisTaskSESelectHFTest.C
PWG3/vertexingHF/AliAnalysisTaskSEVertexingHFTest.C
PWG3/vertexingHF/AliCFHeavyFlavourTask.C

index 6377d9c250729243e2361be6ec52fc688431c58e..a893632b09d77bb6f8f280c82cb869730b0030f1 100644 (file)
@@ -7,19 +7,10 @@ void AliAnalysisTaskSECompareHFTest()
   //\r
   TString mode="local"; // otherwise, "grid"\r
 \r
-  gSystem->Load("libTree.so");\r
-  gSystem->Load("libGeom.so");\r
-  gSystem->Load("libPhysics.so");\r
-  gSystem->Load("libVMC.so");\r
-  gSystem->Load("libSTEERBase.so");\r
-  gSystem->Load("libESD.so");\r
-  gSystem->Load("libAOD.so"); \r
-  gSystem->Load("libANALYSIS.so");\r
-  gSystem->Load("libANALYSISalice.so");\r
-  gSystem->Load("libCORRFW.so");\r
-  gSystem->Load("libPWG3base.so");\r
-  gSystem->Load("libPWG3vertexingHF.so");\r
+  Bool_t useParFiles=kFALSE;\r
 \r
+  gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");\r
+  LoadLibraries(useParFiles);\r
 \r
   TChain *chainAOD = 0;\r
   TChain *chainAODfriend = 0;\r
index 6988ee3525b72f76a201e7912702dbb2415f566f..3defab27ee06d9111a0ca7b4903f00a51ccded93 100644 (file)
@@ -6,18 +6,10 @@ void AliAnalysisTaskSESelectHFTest()
   // A.Dainese, andrea.dainese@lnl.infn.it\r
   //\r
 \r
-  gSystem->Load("libTree.so");\r
-  gSystem->Load("libGeom.so");\r
-  gSystem->Load("libPhysics.so");\r
-  gSystem->Load("libVMC.so");\r
-  gSystem->Load("libSTEERBase.so");\r
-  gSystem->Load("libESD.so");\r
-  gSystem->Load("libAOD.so"); \r
-  gSystem->Load("libANALYSIS.so");\r
-  gSystem->Load("libANALYSISalice.so");\r
-  gSystem->Load("libCORRFW.so");\r
-  gSystem->Load("libPWG3base.so");\r
-  gSystem->Load("libPWG3vertexingHF.so");\r
+  Bool_t useParFiles=kFALSE;\r
+\r
+  gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");\r
+  LoadLibraries(useParFiles);\r
 \r
 \r
   // Local files \r
index fd6c0fb2466c7ee7160bbb408e5f27d500a25f64..3924a256341281e82ef37cfd5def5baae4364a80 100644 (file)
@@ -7,19 +7,10 @@ void AliAnalysisTaskSEVertexingHFTest()
 \r
   Bool_t inputAOD=kTRUE; // otherwise, ESD\r
   TString mode="local"; // otherwise, "grid" \r
+  Bool_t useParFiles=kTRUE;\r
 \r
-  gSystem->Load("libTree.so");\r
-  gSystem->Load("libGeom.so");\r
-  gSystem->Load("libPhysics.so");\r
-  gSystem->Load("libVMC.so");\r
-  gSystem->Load("libSTEERBase.so");\r
-  gSystem->Load("libESD.so");\r
-  gSystem->Load("libAOD.so"); \r
-  gSystem->Load("libANALYSIS.so");\r
-  gSystem->Load("libANALYSISalice.so");\r
-  gSystem->Load("libCORRFW.so");\r
-  gSystem->Load("libPWG3base.so");\r
-  gSystem->Load("libPWG3vertexingHF.so");\r
+  gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");\r
+  LoadLibraries(useParFiles);\r
 \r
   TChain *chain = 0;\r
 \r
index 30856351ffe0daad03d204290f5e3190901cb812..1584a933a35f1d37ba19c1f8680111076fdbfaf9 100644 (file)
@@ -18,7 +18,11 @@ Bool_t AliCFHeavyFlavourTask()
        
        AliLog::SetGlobalDebugLevel(0);
        
-       Load() ; //load the required libraries
+       //load the required libraries
+       Bool_t useParFiles=kFALSE;
+       gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C");
+       LoadLibraries(useParFiles);
+
        
 
        TChain * analysisChain ;
@@ -172,23 +176,3 @@ Bool_t AliCFHeavyFlavourTask()
        return kTRUE ;
 }
 
-void Load() {
-       
-       //load the required aliroot libraries
-       gSystem->Load("libANALYSIS") ;
-       gSystem->Load("libANALYSISalice") ;
-       gSystem->Load("libCORRFW.so") ;
-       gSystem->Load("libPWG3base.so");
-       gSystem->Load("libPWG3vertexingHF.so");
-       gSystem->Load("libTree.so");
-       gSystem->Load("libGeom.so");
-       gSystem->Load("libPhysics.so");
-       gSystem->Load("libVMC.so");
-       gSystem->Load("libSTEERBase.so");
-       gSystem->Load("libESD.so");
-       gSystem->Load("libAOD.so"); 
-       
-       //compile online the task class
-       //gSystem->SetIncludePath("-I. -I$ALICE_ROOT/include -I$ROOTSYS/include -I$ALICE_ROOT/PWG3/vertexingHF");
-       //gROOT->LoadMacro("./AliCFHeavyFlavourTask.cxx+");
-}