1 Home
divaldo edited this page 2018-06-06 13:56:41 +02:00

Track reconstruction from database export

Why?

For the first electronics, we used a MySQL database to store the detected muons data. It's nothing interesting in looking at the raw data, the numbers so it's time to visualize that.

What this app do?

The app searches for valid tracks in the exported file and if found one, it'll show it in a nice histogramm.

How to use?

When you initialize the TrackFinder object, it'll open the data.txt and try to read the first line. After a successful initialization you can call the FindTrack() function, which returns true if found a track, or returns false, if the file end is reached. After you found a track, you can call the GetTrack(std::vector&, std::vector&, std::vector&, std::vector&) function, which requires 4 std::vectors to copy the found track's data in it. The order is the same as in the input file (ch_id, time_sec, time_ns, peak_amp).