I have a 2D matrix file as in attached. I want to draw spectrum of this file in root. İs it possible and what is the way?
Thank you
Best wishes
Serkan
matris.dat.rar (16.2 KB)
I have a 2D matrix file as in attached. I want to draw spectrum of this file in root. İs it possible and what is the way?
Thank you
Best wishes
Serkan
matris.dat.rar (16.2 KB)
I am not sure the type of the file exactly. I could not have seen it. is it binary or anything else, I do not know.
wishes,
serkan
[quote]I am not sure the type of the file exactly.[/quote]What did the original author(s) say when you asked them?
Philippe.
Hello,
I explored the type of file. It is a binary file and 4096 x 4096 matrix file. I managed to open it in ubuntu by “hex” program.
But I dont know how I can display in ROOT as a 2D spectrum.
Best wishes,
Hi,
[quote=“sakkoyun”]I explored the type of file. It is a binary file and 4096 x 4096 matrix file. I managed to open it in ubuntu by “hex” program.
But I dont know how I can display in ROOT as a 2D spectrum.
[/quote]
If you understand the format of the file, you’re going to have to write C++ code that can read and parse it. Once you’ve done that, it’s easy to get it into whatever Root object you like.
Good luck,
Charles