Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -0,0 +1,21 @@
void plotResults(const char* fname = "polar.root") {
// Open a ROOT file and read histograms
TFile myfile(fname,"READ");
TH1D* histo[12];
for (Int_t j=0; j<12;j++)
histo[j] = (TH1D *) myfile.Get(Form("h%d",j+1));
// Produce a plot
TCanvas *c1 = new TCanvas("c1","The Pol01 example",1200,900);
gStyle->SetOptStat(0);
c1->Divide(4,3);
for (Int_t j=0; j<12;j++) {
c1->cd(j+1);
histo[j]->ls();
histo[j]->DrawCopy();
}
c1->Update();
}