08312dfe776d1628166e668b7dbe9dd93225146f
[u/mrichter/AliRoot.git] / HLT / JET / macros / readJets.C
1 void readJets( Char_t* fileName = "./analysis/EOR_analyze_100000_kPythia6Jets104_125.root" ) {
2
3   if ( getenv("FASTJET") ) {
4     gSystem->Load("libCGAL");
5     gSystem->Load("${FASTJET}/lib/libfastjet.so");
6     gSystem->Load("${FASTJET}/lib/libSISConePlugin.so");
7   }
8
9   gSystem->Load("libTree");
10   gSystem->Load("libPhysics");
11   gSystem->Load("libGeom");
12   gSystem->Load("libVMC");
13   gSystem->Load("libANALYSIS");
14   gSystem->Load("libSTEERBase");
15   gSystem->Load("libAOD");
16   gSystem->Load("libESD");
17   gSystem->Load("libANALYSISalice");
18   gSystem->Load("libJETAN");
19
20   gSystem->Load("libAliHLTUtil");
21   gSystem->Load("libAliHLTJET");
22   
23   TFile* f = new TFile(fileName);
24
25   AliHLTJETAnalysisJets* jets = NULL;
26   
27   jets = static_cast<AliHLTJETAnalysisJets*>(f->Get("AliHLTJETAnalysisJets"));
28   
29   AliHLTJETAnalysisMerge* merge = new AliHLTJETAnalysisMerge();
30   merge->Initialize();
31     
32   merge->AddJets( jets ); 
33     
34   merge->CreateCanvas();
35 }