24void SQLiteVersionsOfRoot(){
28 const char *rootSourceVersion =
"SELECT Version FROM accesslog;";
32 TH1F *hVersionOfRoot=
new TH1F(
"hVersionOfRoot",
"Development Versions of ROOT", 7, 0, -1);
34 while (
TSQLRow *row = rootSourceVersionRes->
Next()) {
35 TString rowVersion(row->GetField(0));
36 TString shortVersion(rowVersion(0,4));
37 hVersionOfRoot->
Fill(shortVersion,1);
45 hVersionOfRoot->
Draw();
virtual void LabelsOption(Option_t *option="h")
Set option(s) to draw axis with labels option can be:
1-D histogram with a float per channel (see TH1 documentation)}
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void LabelsDeflate(Option_t *axis="X")
Reduce the number of bins for the axis passed in the option to the number of bins having a label.
virtual TSQLRow * Next()=0
virtual TSQLResult * Query(const char *sql)=0
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....