18void df030_SQliteVersionsOfROOT() {
21 ROOT::RDF::FromSqlite(
"http://root.cern/files/root_download_stats.sqlite",
"SELECT Version FROM accesslog;");
23 TH1F hVersionOfRoot(
"hVersionOfRoot",
"Development Versions of ROOT", 8, 0, -1);
25 auto fillVersionHisto = [&hVersionOfRoot] (
const std::string &version) {
27 TString shortVersion(copyVersion(0,4));
28 hVersionOfRoot.Fill(shortVersion, 1);
31 rdf.Foreach( fillVersionHisto, {
"Version" } );
33 auto VersionOfRootHistogram =
new TCanvas();
36 hVersionOfRoot.GetXaxis()->LabelsOption(
"a");
37 hVersionOfRoot.LabelsDeflate(
"X");
38 hVersionOfRoot.DrawClone(
"");
R__EXTERN TStyle * gStyle
1-D histogram with a float per channel (see TH1 documentation)}
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
RDataFrame FromSqlite(std::string_view fileName, std::string_view query)
Factory method to create a SQlite RDataFrame.