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 2274094..b1229ed 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 6365a36..676455c 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");