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"
|
||||
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user