alcap-org / AlcapDAQ

Alcap DAQ
alcap-org.github.io
8 stars 0 forks source link

Picture book program to produce plots of the calib DB #208

Open AndrewEdmonds11 opened 10 years ago

AndrewEdmonds11 commented 10 years ago

It would be nice to have the picture book program to produce plots from the calib DB. I will think of a way to implement this.

benkrikler commented 10 years ago

If the DB is CSV (or else exportable to CSV) then TTree::ReadFile would give you a TTree that you could use good ol' TTree::Draw on.

jrquirk commented 10 years ago

I've made a bash script that outputs the calib DB to a CSV file, runs a gnuplot script on those to produce PNG files, then deletes the CSV files. I think this is what you wanted?

AndrewEdmonds11 commented 10 years ago

Thanks, John. It would be nice to try and integrate this into the new picture book code. I'll have a look at it and see what can be done.

benkrikler commented 10 years ago

I'm not sure where this has got to, but I've been playing around with other things and discovered that root has a TTree interface to SQL databases: TTreeSQL. This could make drawing the DB doable in about 3 lines of code, but could also be useful for the SetupNavigator.