Fix shit
This commit is contained in:
parent
05df843108
commit
e65ae076ac
BIN
root/data.root
BIN
root/data.root
Binary file not shown.
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user