Root
This commit is contained in:
parent
6d1fa9687f
commit
05df843108
BIN
root/data.root
Normal file
BIN
root/data.root
Normal file
Binary file not shown.
17
root/macro.C
Normal file
17
root/macro.C
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#include "TCanvas.h"
|
||||||
|
#include "TROOT.h"
|
||||||
|
#include "TH1D.h"
|
||||||
|
#include "TFile.h"
|
||||||
|
|
||||||
|
void macro() {
|
||||||
|
TFile f("/home/iuser/Dokumente/Uni/BSc/Tutorial/root/data.root");
|
||||||
|
TH1D* h;
|
||||||
|
TCanvas* canvas = new TCanvas();
|
||||||
|
f.GetObject("combined", h);
|
||||||
|
h->SetOption("E2");
|
||||||
|
h->Draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
macro();
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user