This commit is contained in:
David Leppla-Weber 2019-05-07 11:16:10 +02:00
parent 05df843108
commit e65ae076ac
2 changed files with 4 additions and 5 deletions

Binary file not shown.

View File

@ -4,12 +4,11 @@
#include "TFile.h"
void macro() {
TFile f("/home/iuser/Dokumente/Uni/BSc/Tutorial/root/data.root");
TFile* f = new TFile("data.root");
TH1D* h;
TCanvas* canvas = new TCanvas();
f.GetObject("combined", h);
h->SetOption("E2");
h->Draw();
f->GetObject("combined", h);
std::cout << h->GetEntries() << std::endl;
h->Draw(" A ");
}
int main() {