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