Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:30:56

0001 #include<helloroot/helloroot.hh>
0002 
0003 #include<iostream>
0004 #include<string>
0005 
0006 #include<TH1D.h>
0007 #include<TPad.h>
0008 
0009 void HelloRoot()
0010 {
0011   std::cout << "Hello from HelloRoot" << std::endl;
0012 
0013   // do something with root
0014   TH1D h("h", "h", 100, -5, 5);
0015   h.FillRandom("gaus", 1000);
0016   h.Draw();
0017   gPad->SaveAs("hello.png");
0018 
0019   return;
0020 }