27void SQLiteIPLocation() {
34 const char *location =
"SELECT IPLatitude, IPLongitude FROM accesslog;";
38 if (!row->GetField(0)[0])
40 std::string sLatitude(row->GetField(0));
41 std::string sLongitude(row->GetField(1));
42 float latitude = std::stof(sLatitude);
43 float longitude = std::stof(sLongitude);
44 WM->
Fill(longitude, latitude);
virtual void ToggleEventStatus()
Toggle event statusbar.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Draw(Option_t *option="") override
Draw this histogram with options.
2D Histogram with Polygonal Bins
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
void SetLogz(Int_t value=1) override
Set Lin/Log scale for Z.
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....