How to Integrate External Libraries into ROOT for Custom Data Analysis?

Hey guys… :wave:

I have recently started using ROOT for some of my data analysis projects and have been really impressed with its capabilities. However, I have run into a bit of a roadblock and was hoping to get some advice from more experienced users here.

I am working on a project that requires me to integrate some external libraries (specifically, a few custom C++ libraries I’ve developed) into my ROOT workflow. These libraries contain specialized functions and algorithms that I need for my analysis, and I would like to call them directly from within ROOT scripts or while using the ROOT interpreter.

Could someone guide me on the best approach for doing this? More specifically:

  1. How can I compile and link my external libraries with ROOT so that they’re available during runtime?
  2. Is there a way to include these libraries in my ROOT macros, or should I use the ROOT interpreter to load them dynamically?
  3. Are there any common pitfalls or compatibility issues I should watch out for when linking external libraries with ROOT?

Thanks in advance!

Respected community member! :blush:

I might be wrong, but I guess you can simply include the necessary headers and load the library with gSystem->Load("yourLibraryName")

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.