bsc-exc/root/macro.C
David Leppla-Weber e65ae076ac Fix shit
2019-05-07 11:16:10 +02:00

17 lines
264 B
C

#include "TCanvas.h"
#include "TROOT.h"
#include "TH1D.h"
#include "TFile.h"
void macro() {
TFile* f = new TFile("data.root");
TH1D* h;
f->GetObject("combined", h);
std::cout << h->GetEntries() << std::endl;
h->Draw(" A ");
}
int main() {
macro();
}