ROOT file Export to MATLAB

Hello I am looking to export my PixelHit data to be analyzed with MATLAB. Is the Text_Writer module the only way to export the data? Or are there other options that could be used to streamline the process. Thanks!

Hi

I think you could use pyROOT in matlab if you configure your matlab to be also able to run Python (there are tutorials online showing how). then to use pyROOT you can just follow one of the example on the allpix website where they show exporting to python with pyROOT and modify it as you need.

Or i guess you could try uproot but i never used it and i dont know how it works

Bests

Luca

I have never heard of uproot. I will take a look thank you @luca_tero !

No problem! :slight_smile:
@oobie2142 PS: uproot still requires python / numpy. if you do not want to run python in matlab, then you could look at mROOT written by what it looks like a german student (see here) or matlabroot (yet again i never used much matlab so i can’t say how they work or how good they are)

Great I will take a look at that too!