Commit 95e854d4 authored by Javier Galan's avatar Javier Galan
Browse files

TRestBrowser::OpenFile now supports http (although it will not check if it exists)

parent 88e2344a
......@@ -108,7 +108,7 @@ void TRestBrowser::setButtons() {
fVFrame->Resize(300, 200);
// row in the tree
fEventRowLabel = new TGLabel(fVFrame, "Row:");
fEventRowLabel = new TGLabel(fVFrame, "Entry:");
fVFrame->AddFrame(fEventRowLabel, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
fEventRowNumberBox = new TGNumberEntry(fVFrame, fEventRow);
......@@ -273,7 +273,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t id, Int_t subid) {
}
Bool_t TRestBrowser::OpenFile(TString filename) {
if (TRestTools::fileExists(filename.Data())) {
if (filename.Contains("http") || TRestTools::fileExists(filename.Data())) {
fInputFileName = filename;
r->OpenInputFile(fInputFileName);
TFile* f = r->GetInputFile();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment