From 23965fa2ba7eca2584ce277cf385a3c3a11143f6 Mon Sep 17 00:00:00 2001 From: snelling Date: Mon, 1 Feb 2010 12:31:41 +0000 Subject: [PATCH] add back local libs --- PWG2/FLOW/macros/mergeOutput.C | 79 +++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 7 deletions(-) diff --git a/PWG2/FLOW/macros/mergeOutput.C b/PWG2/FLOW/macros/mergeOutput.C index 7d55bb4b87a..a158ddf441d 100644 --- a/PWG2/FLOW/macros/mergeOutput.C +++ b/PWG2/FLOW/macros/mergeOutput.C @@ -16,17 +16,16 @@ // 5.) REMARK: To see plots for some of the results use macro compareFlowResults.C. This macro // accesses file "AnalysisResults.root" and produces couple of predefined example plots. -void mergeOutput() +enum libModes {mLocal,mLocalSource}; + +void mergeOutput(Int_t mode=mLocal) { + // mode: if mode = mLocal: analyze data on your computer using aliroot + // if mode = mLocalSource: analyze data on your computer using root + source files // Name of the output files to be merged: TString outputFileName = "AnalysisResults.root"; // Name of the merged, large statistics file: TString mergedFileName = "mergedAnalysisResults.root"; - // Load needed flow libraries: - gSystem->AddIncludePath("-I$ROOTSYS/include"); - gSystem->AddIncludePath("-I$ALICE_ROOT/include"); - gSystem->Load("libPWG2flowCommon"); - cerr<<"Library \"libPWG2flowCommon\" loaded ...."<pwd()); TSystemDirectory *baseDir = new TSystemDirectory(".",baseDirPath->Data()); @@ -153,4 +154,68 @@ void mergeOutput() cout<<"WARNING: Merging failed !!!!"<Load("libTree"); + gSystem->Load("libGeom"); + gSystem->Load("libVMC"); + gSystem->Load("libXMLIO"); + gSystem->Load("libPhysics"); + + //---------------------------------------------------------- + // >>>>>>>>>>> Local mode <<<<<<<<<<<<<< + //---------------------------------------------------------- + if (mode==mLocal) { + //-------------------------------------------------------- + // If you want to use already compiled libraries + // in the aliroot distribution + //-------------------------------------------------------- + + //================================================================================== + //load needed libraries: + gSystem->AddIncludePath("-I$ROOTSYS/include"); + //gSystem->Load("libTree"); + + // for AliRoot + gSystem->AddIncludePath("-I$ALICE_ROOT/include"); + gSystem->Load("libANALYSIS"); + gSystem->Load("libPWG2flowCommon"); + //cerr<<"libPWG2flowCommon loaded ..."<LoadMacro("AliFlowCommon/AliFlowCommonConstants.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowLYZConstants.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowCumuConstants.cxx+"); + + // Flow event + gROOT->LoadMacro("AliFlowCommon/AliFlowVector.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowTrackSimple.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowEventSimple.cxx+"); + + // Cuts + gROOT->LoadMacro("AliFlowCommon/AliFlowTrackSimpleCuts.cxx+"); + + // Output histosgrams + gROOT->LoadMacro("AliFlowCommon/AliFlowCommonHist.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowCommonHistResults.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowLYZHist1.cxx+"); + gROOT->LoadMacro("AliFlowCommon/AliFlowLYZHist2.cxx+"); + + cout << "finished loading macros!" << endl; + + } // end of else if (mode==mLocalSource) + +} // end of void LoadLibrariesMO(const libModes mode) + -- 2.43.0