Adding PWG3muon.par setting (Diego)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Apr 2008 13:26:23 +0000 (13:26 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Apr 2008 13:26:23 +0000 (13:26 +0000)
PWG3/READMEmuon
PWG3/muon/AnalysisTrigChEff.C

index 6ac0ebfcb664b030ce63f3380ff9b75da740ca0a..25448f8dc9b1a4ae1c9cb2fc3b697a7b0652f408 100644 (file)
@@ -61,6 +61,7 @@ Test analysis:
   - AOD.par
   - ANALYSIS.par
   - ANALYSISalice.par
+  - PWG3muon.par
 If the packages are not present, create them: 
 cd $ALICE_ROOT
 make STEERBase.par
index 102b0381e0cd932ca31ee7bb845508693dc93c1d..369fd74961ebb7f0157b71404951cd87b2f9c052 100644 (file)
@@ -7,6 +7,7 @@
 //  - AOD.par
 //  - ANALYSIS.par
 //  - ANALYSISalice.par
+//  - PWG3muon.par
 // 
 // The macro reads ESDs and outputs file:
 // - MUON.TriggerEfficiencyMap.root
@@ -33,12 +34,20 @@ void AnalysisTrigChEff(Int_t mode=kMlocal)
   gSystem->Load("libVMC.so");
   gSystem->Load("libPhysics.so");
 
-  // Common packages
-  SetupPar("STEERBase");
-  SetupPar("ESD");
-  SetupPar("AOD");
-  SetupPar("ANALYSIS");
-  SetupPar("ANALYSISalice");
+  // if root setup Par
+  TString checkString=gSystem->Getenv("ALICE_ROOT");
+  checkString.Append("/lib/tgt_linux/libMUONbase.so");
+  TString foundLib=gSystem->GetLibraries(checkString.Data());
+
+  if(foundLib.Length()==0){
+    // Common packages
+    SetupPar("STEERBase");
+    SetupPar("ESD");
+    SetupPar("AOD");
+    SetupPar("ANALYSIS");
+    SetupPar("ANALYSISalice");
+  }
+  SetupPar("PWG3muon");
 
   // Analysis using standard AliRoot libraries
   gSystem->Load("libSTEERBase.so");
@@ -46,10 +55,8 @@ void AnalysisTrigChEff(Int_t mode=kMlocal)
   gSystem->Load("libAOD.so");
   gSystem->Load("libANALYSIS.so");
   gSystem->Load("libANALYSISalice.so");
-
-  
-  // A task can be compiled dynamically with AClic
-  gROOT->ProcessLine(".L AliAnalysisTaskTrigChEff.cxx+");
+  gSystem->Load("libANALYSISalice.so");
+  gSystem->Load("libPWG3muon.so");
 
   //
   // Connect to alien