# Using Fasjet Header Files in Root

**URL:** <https://root-forum.cern.ch/t/using-fasjet-header-files-in-root/17254>\
**Category:** ROOT\
**Created:** [February 21, 2014, 1:09pm UTC](https://root-forum.cern.ch/t/using-fasjet-header-files-in-root/17254 "2014-02-21T13:09:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Swastis](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Swastis](https://root-forum.cern.ch/u/Swastis)\
**Post date:** [February 21, 2014, 1:09pm UTC](https://root-forum.cern.ch/t/using-fasjet-header-files-in-root/17254/1 "2014-02-21T13:09:19Z")

</div>

Dear All,

I am trying to use fastjet with Root. I am including following header files of fasjet in my macros code:

```auto
#include "fastjet/PseudoJet.hh"  
#include "fastjet/ClusterSequence.hh"
#include "fastjet/Selector.hh"
```

along with

```auto
gSystem->Load("~/Programs/fastjet-install/lib/libfastjet.so");
gSystem->Load("~/Programs/fastjet-install/lib/libfastjettools.so");
gSystem->AddIncludePath("~/Programs/fastjet-install/include");
```

but this is not making root access the above mentioned fastjet header files. (I also tried putting entire path for the header files in #include , still doesn’t work ).

I have fastjet environment variable and library defined in my shell, and it works well with other programs like Pythia8.

I also tried copying fastjet header files to the root header files folder (not the systematic way though) which makes it read the header files, but then i get an interpreter error as:

```auto
Error: Missing one of '
\/' expected at or after line 40.
Error: Unexpected end of file (G__fgetstream():2) /usr/local/include/root/fastjet/internal/base.hh:44:
***Interpreter error recovered***
```

[base.hh](https://root-forum.cern.ch/uploads/default/original/2X/d/db8240e9c52a83df8c747ea510c6522b985ceaec.hh) (1.59 KB)  
Here, base.hh is a read-only fastjet header file, hence can’t be edited. But this should not be the problem I think. ❗

Kindly please help me how can I make fastjet work with my root. I will be highly grateful for your very kind help. ![[-o<](https://root-forum.cern.ch/uploads/default/original/1X/1566ef0d78260b997b270229fbe0e2bf7bbab46f.gif "Pray")

Regards,  
Swasti.

---

_[View the full topic](https://root-forum.cern.ch/t/using-fasjet-header-files-in-root/17254)._
