40 if ( gSystem->Load(
"libGWTOOLS.so") < 0 )
41 { cout <<
"libGWTOOLS.so is needed to display " << hname <<
endl;
return; }
45 if (t.EndsWith(
".s")) {
46 t.Prepend(
"gpsi:"); hdb.
Open(
"tmp",t.Data()); hdb.
ls();
48 if (t.EndsWith(
".spe")) {
50 t =
"rad:"; t += gSystem->WorkingDirectory(); hdb.
Open(
"tmp",t.Data());
53 TH1 *h=
new TH1F(); h->SetName(hname); hdb >> (*h);
if (h) { h->Draw(); gPad->Update(); }
55 if (t.EndsWith(
".eg")) {
57 t =
"eg:"; t += gSystem->WorkingDirectory(); hdb.
Open(
"tmp",t.Data());
60 histo = hdb.
Get(hname);
if (histo) { histo->Draw(); gPad->Update(); }
virtual void ls(Option_t *opt="cdb")
to list the current configuration
void BrowserDB(const char *hname)
virtual HistoConverter * Open(const char *, const char *)
to open a new DB service
ADF::LogMessage & endl(ADF::LogMessage &log)
Service to read/write ROOT histograms from/to different DB systems.
virtual TH1 * Get(int i)
to get histo number i of the current DB