gSystem->Load("libAliPythia6");
gSystem->Load("libhijing");
- gSystem->Load("libTHijing");// AliGenHijingEventHeader needed by libZDCsim.so
+ gSystem->Load("libTHijing");// AliGenHijingEventHeader needed by libZDCsim
gSystem->Load("libSTRUCT");
gSystem->Load("libPHOSbase");
// true | ok | ok
//
// gROOT->LoadMacro("Compile.C");
- // gSystem->Unload("AliFMDAnaFlowKine_C.so");
- // gSystem->Unload("AliFMDAnaFlowRing_h.so");
+ // gSystem->Unload("AliFMDAnaFlowKine_C");
+ // gSystem->Unload("AliFMDAnaFlowRing_h");
if (!Compile("AliFMDAnaFlowRing.h")) return;
if (!Compile("AliFMDAnaFlowKine.C")) return;
AliFMDAnaFlowKine ak(1, segmented, primary_only);
fprintf(pF," gAlice->SetRunLoader(pAL);\n\n");
//Decayer
if(fDecayerB->GetState()==kButtonDown){
- fprintf(pF," gSystem->Load(\"liblhapdf.so\"); // Parton density functions \n");
- fprintf(pF," gSystem->Load(\"libEGPythia6.so\"); // TGenerator interface \n");
- fprintf(pF," gSystem->Load(\"libpythia6.so\"); // Pythia \n");
- fprintf(pF," gSystem->Load(\"libAliPythia6.so\"); // ALICE specifics implementations \n\n");
+ fprintf(pF," gSystem->Load(\"liblhapdf\"); // Parton density functions \n");
+ fprintf(pF," gSystem->Load(\"libEGPythia6\"); // TGenerator interface \n");
+ fprintf(pF," gSystem->Load(\"libpythia6\"); // Pythia \n");
+ fprintf(pF," gSystem->Load(\"libAliPythia6\"); // ALICE specifics implementations \n\n");
//Geant
fprintf(pF," gSystem->Load(\"libgeant321\");\n");
fprintf(pF," new TGeant3TGeo(\"C++ Interface to Geant3\");\n\n");
if (!pluginHandler) {
printf("defining plugin for ITS\n");
TString libs = gSystem->GetLibraries();
- if (libs.Contains("lib" + detName + "base.so") ||
+ if (libs.Contains("lib" + detName + "base") ||
(gSystem->Load("lib" + detName + "base") >= 0)) {pluginManager->AddHandler("AliReconstructor", detName,recName, detName + "rec", recName + "()");}
else {pluginManager->AddHandler("AliReconstructor", detName,recName, detName, recName + "()");}
pluginHandler = pluginManager->FindHandler("AliReconstructor", detName);
timer.Start();
// Check if user is running root or aliroot
- TString checkString = gSystem->Getenv("ALICE_ROOT");
- checkString.Append("/lib/tgt_linux/libSTEERBase.so");
- TString foundLib = gSystem->GetLibraries(checkString.Data());
+ TString foundLib = gSystem->GetLibraries( "libSTEERBase", "", kFALSE );
Bool_t isFullAliroot = (foundLib.Length()==0) ? kFALSE : kTRUE;
// Load libraries
// example macro to read data from a ttree and perform a flow analysis using the flow pacakge
// author: Redmer Alexander Bertens (rbertens@cern.ch)
- // note: this macro can run in ROOT only provided libPWGflowBase.so is available
+ // note: this macro can run in ROOT only provided libPWGflowBase is available
// compile the relevant classes
// include paths, necessary for compilation
gSystem->AddIncludePath("-I$ALICE_ROOT/include");
gSystem->Load("libANALYSIS");
gSystem->Load("libPWGflowBase");
- cerr<<"libPWGflowBase.so loaded ..."<<endl;
+ cerr<<"libPWGflowBase loaded ..."<<endl;
}
gSystem->AddIncludePath(includePath);
TString libraries=libraryDependencies;
TObjArray* pTokens=libraries.Tokenize(" ");
+ TString buf;
if (pTokens) {
for (int i=0; i<pTokens->GetEntriesFast(); i++) {
- if (gSystem->Load(pTokens->At(i)->GetName())==0) {
+ buf = pTokens->At(i)->GetName();
+ buf.ReplaceAll(".so", "");
+ if (gSystem->Load(buf)==0) {
cout << "loading " << pTokens->At(i)->GetName() << endl;
}
}
}
}
TObjArray* pTokens=libraries.Tokenize(" ");
+ TString buf;
if (pTokens) {
for (int i=0; i<pTokens->GetEntriesFast(); i++) {
TString library=pTokens->At(i)->GetName();
if (!library.EndsWith(".so")) {
cerr << "libraries need to have ending '.so' in order to be correctly processed by alien plugin, please correct library name '" << library << "'" << endl;
}
- if (gSystem->Load(pTokens->At(i)->GetName())==0) {
+ buf = pTokens->At(i)->GetName();
+ buf.ReplaceAll(".so", "");
+ if (gSystem->Load(buf)==0) {
cout << "loading " << pTokens->At(i)->GetName() << endl;
}
}
gSystem->AddIncludePath(includePath);
TString libraries=libraryDependencies;
TObjArray* pTokens=libraries.Tokenize(" ");
+ TString buf;
if (pTokens) {
for (int i=0; i<pTokens->GetEntriesFast(); i++) {
- if (gSystem->Load(pTokens->At(i)->GetName())==0) {
+ buf = pTokens->At(i)->GetName();
+ buf.ReplaceAll(".so", "");
+ if (gSystem->Load(buf)==0) {
cout << "loading " << pTokens->At(i)->GetName() << endl;
}
}
// Base macro for submitting muon Resolution analysis.
//
// In case it is not run with full aliroot, it needs the following libraries:
-// - libSTEERBase.so
-// - libESD.so
-// - libAOD.so
-// - libANALYSIS.so
-// - libANALYSISalice.so
-// - libGui.so
-// - libMinuit.so
-// - libProofPlayer.so
-// - libXMLParser.so
-// - libRAWDatabase.so
-// - libCDB.so
-// - libSTEER.so
-// - libMUONcore.so
-// - libMUONmapping.so
-// - libMUONcalib.so
-// - libMUONgeometry.so
-// - libMUONtrigger.so
-// - libMUONraw.so
-// - libMUONbase.so
-// - libMUONrec.so
-// - libCORRFW.so
-// - libPWGHFbase.so
-// - libPWGmuondep.so
+// - libSTEERBase
+// - libESD
+// - libAOD
+// - libANALYSIS
+// - libANALYSISalice
+// - libGui
+// - libMinuit
+// - libProofPlayer
+// - libXMLParser
+// - libRAWDatabase
+// - libCDB
+// - libSTEER
+// - libMUONcore
+// - libMUONmapping
+// - libMUONcalib
+// - libMUONgeometry
+// - libMUONtrigger
+// - libMUONraw
+// - libMUONbase
+// - libMUONrec
+// - libCORRFW
+// - libPWGHFbase
+// - libPWGmuondep
//
// It also needs to load magnetic field, mapping, geometry (+alignment), and reconstruction parameters from the OCDB
//
// Macro for QA monitoring.
//
// In case it is not run with full aliroot, it needs the following libraries to compile:
-// - libSTEERBase.so
-// - libESD.so
-// - libAOD.so
-// - libANALYSIS.so
-// - libANALYSISalice.so
-// - libCORRFW.so
-// - libPWGmuon.so
+// - libSTEERBase
+// - libESD
+// - libAOD
+// - libANALYSIS
+// - libANALYSISalice
+// - libCORRFW
+// - libPWGmuon
//
// TString includePath = "-I${ALICE_ROOT}/PWGmuon "; gSystem->SetIncludePath(includePath.Data());
//
// Base macro for submitting muon QA analysis.
//
// In case it is not run with full aliroot, it needs the following libraries:
-// - libSTEERBase.so
-// - libESD.so
-// - libAOD.so
-// - libANALYSIS.so
-// - libANALYSISalice.so
-// - libCORRFW.so
-// - libPWGmuon.so
+// - libSTEERBase
+// - libESD
+// - libAOD
+// - libANALYSIS
+// - libANALYSISalice
+// - libCORRFW
+// - libPWGmuon
//
// The macro reads ESDs and store outputs in standard output file (AnalysisResults.root)
//
ofstream outFile(outFilename.Data());
const Int_t kNlibs = 5; // 1
- TString loadLibs[kNlibs] = {"libANALYSIS.so", "libOADB.so", "libANALYSISalice.so", "libCORRFW.so", "libPWGmuon.so"};
+ TString loadLibs[kNlibs] = {"libANALYSIS", "libOADB", "libANALYSISalice", "libCORRFW", "libPWGmuon"};
for ( Int_t ilib=0; ilib<kNlibs; ilib++ ) {
Int_t exitVal = gSystem->Load(loadLibs[ilib].Data());
if ( exitVal < 0 ) {
gSystem->Load("libPhysics");
gSystem->Load("libProof");
- TString libsList = "libANALYSIS.so libOADB.so libANALYSISalice.so libCORRFW.so libPWGHFbase.so libPWGmuon.so libPWGPPMUONlite.so";
+ TString libsList = "libANALYSIS libOADB libANALYSISalice libCORRFW libPWGHFbase libPWGmuon libPWGPPMUONlite";
TObjArray* libsArray = libsList.Tokenize(" ");
libsArray->SetOwner();
#endif
-Char_t const *libs[] = {"libProofPlayer.so", "libANALYSIS.so", "libANALYSISalice.so", "libTender.so", "libSTAT.so", "libPWGPP.so", "libPWGmuon.so"};
+Char_t const *libs[] = {"libProofPlayer", "libANALYSIS", "libANALYSISalice", "libTender", "libSTAT", "libPWGPP", "libPWGmuon"};
// define setup
TClass *ctask = new TClass;
#include "PWGPP/TRD/AliTRDinfoGen.h"
#endif
-const Char_t *libs[] = {"libProofPlayer.so", "libANALYSIS.so", "libANALYSISalice.so", "libCORRFW", "libTender.so", "libPWGPP.so", "libPWGmuon.so"};
+const Char_t *libs[] = {"libProofPlayer", "libANALYSIS", "libANALYSISalice", "libCORRFW", "libTender", "libPWGPP", "libPWGmuon"};
// define setup
TCanvas *c(NULL);
Bool_t mc(kFALSE), friends(kFALSE);
TProof::Open("");
.L /u/miranov/macros/ProofEnableAliRoot.C
ProofEnableAliRoot("/usr/local/grid/AliRoot/HEAD0108");
- gProof->Exec("gSystem->Load(\"libANALYSIS.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libAOD.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libANALYSISalice.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libPWG0base.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libPWG0dep.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libPWGPP.so\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libANALYSIS\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libAOD\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libANALYSISalice\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libPWG0base\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libPWG0dep\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libPWGPP\")",kTRUE);
TString path=gSystem->pwd();
TString execCDB="gROOT->Macro(\"";
doeffPi(0,0.1,etamin,etamax);
kOverAll2Sigma=kFALSE;
kOverAll=kFALSE;
- gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPi_C.so");
+ gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPi_C");
}
performAllPr(){
doeffPr(0,0.1,etamin,etamax);
kOverAll2Sigma=kFALSE;
kOverAll=kFALSE;
- gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPr_C.so");
+ gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPr_C");
}
performAllKa(){
doeffKa(0,0.1,etamin,etamax);
kOverAll2Sigma=kFALSE;
kOverAll=kFALSE;
- gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffKa_C.so");
+ gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffKa_C");
}
TGraphErrors *MakeRatio(const char *nf1,const char *nf2,const char *nfo=""/*output file*/,const char *title=""/*title*/){
proof->SetParameter("PROOF_MaxSlavesPerNode", (Long_t)1000);
.L /u/miranov/macros/ProofEnableAliRoot.C
ProofEnableAliRoot("/usr/local/grid/AliRoot/HEAD0108");
- gProof->Exec("gSystem->Load(\"libANALYSIS.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libSTAT.so\")",kTRUE);
- gProof->Exec("gSystem->Load(\"libTPCcalib.so\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libANALYSIS\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libSTAT\")",kTRUE);
+ gProof->Exec("gSystem->Load(\"libTPCcalib\")",kTRUE);
gProof->Exec(".x $ALICE_ROOT/TPC/macros/ConfigOCDB.C");
//
if ( gSystem->Load("libSTAT") < 0 ) return ret; ret--;
if ( gSystem->Load("libhijing") < 0 ) return ret; ret--;
- if ( gSystem->Load("libTHijing") < 0 ) return ret; ret--;// AliGenHijingEventHeader needed by libZDCsim.so
+ if ( gSystem->Load("libTHijing") < 0 ) return ret; ret--;// AliGenHijingEventHeader needed by libZDCsim
if ( gSystem->Load("libSTRUCT") < 0 ) return ret; ret--;
if ( gSystem->Load("libPHOSUtils") < 0 ) return ret; ret--;
if ( gSystem->Load("libAliPythia6") < 0 ) return ret; ret--;
if ( gSystem->Load("libhijing") < 0 ) return ret; ret--;
- if ( gSystem->Load("libTHijing") < 0 ) return ret; ret--;// AliGenHijingEventHeader needed by libZDCsim.so
+ if ( gSystem->Load("libTHijing") < 0 ) return ret; ret--;// AliGenHijingEventHeader needed by libZDCsim
if ( gSystem->Load("libSTRUCT") < 0 ) return ret; ret--;
if ( gSystem->Load("libPHOSUtils") < 0 ) return ret; ret--;