Open AndrewEdmonds11 opened 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.
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?
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.
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.
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.