make scripts working with fastjet 2.4.1
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Jun 2009 19:26:36 +0000 (19:26 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Jun 2009 19:26:36 +0000 (19:26 +0000)
HLT/JET/macros/HLTJetReconstruction.C
HLT/JET/macros/readJets.C

index 227409499d52277d66801dd1cd89e2d93cbe8d32..b1229ed2b069a67fd281423022151b35dc09d515 100644 (file)
@@ -52,9 +52,12 @@ void HLTJetReconstruction(Int_t nEvents=1, Int_t idx=0, Bool_t generate=kFALSE,
   // -------------------
   AliHLTSystem gHLT;
   gHLT.SetGlobalLoggingLevel(0x7D);
-
-  gHLT.LoadComponentLibraries("libCGAL.so");
-  gHLT.LoadComponentLibraries("libfastjet.so");
+  
+  if ( getenv("FASTJET") ) {
+    gHLT.LoadComponentLibraries("libCGAL.so");
+    gHLT.LoadComponentLibraries("libfastjet.so");
+    gHLT.LoadComponentLibraries("libSISConePlugin.so");
+  }
 
   gHLT.LoadComponentLibraries("libESD.so");  
   gHLT.LoadComponentLibraries("libSTEER.so");  
index 6365a3698891fc27acd6ca608caacc61c5290cec..676455c454d0369955dfcf1b3c4748a4f551e450 100644 (file)
@@ -1,8 +1,11 @@
 void readJets( Char_t* fileName = "./analysis/EOR_analyze_100000_kPythia6Jets104_125.root" ) {
 
-  //  gSystem->Load("libCGAL.so");
-  //  gSystem->Load("${FASTJET}/lib/libfastjet.so");
-  
+  if ( getenv("FASTJET") ) {
+    gSystem->Load("libCGAL.so");
+    gSystem->Load("${FASTJET}/lib/libfastjet.so");
+    gSystem->Load("${FASTJET}/lib/libSISConePlugin.so");
+  }
+
   gSystem->Load("libTree.so");
   gSystem->Load("libPhysics.so");
   gSystem->Load("libGeom.so");