diff --git a/root/data.root b/root/data.root new file mode 100644 index 0000000..5e4c30d Binary files /dev/null and b/root/data.root differ diff --git a/root/macro.C b/root/macro.C new file mode 100644 index 0000000..eccfd2d --- /dev/null +++ b/root/macro.C @@ -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(); +}