40 BrachyAnalysisManager::BrachyAnalysisManager()
52 delete theTFile; theTFile = 0;
53 delete histo2; histo2 = 0;
54 delete histo; histo = 0;
68 theTFile =
new TFile(
"brachytherapy.root",
"RECREATE");
70 histo =
new TH1F(
"h10",
"energy spectrum", 800, 0., 800);
71 histo2 =
new TH2F(
"h20",
"edep2Dxy", 801, -100.125, 100.125,
72 801, -100.125, 100.125);
77 void BrachyAnalysisManager::FillH2WithEnergyDeposition(
G4double xx,
81 histo2 -> Fill(xx, yy,energyDep);
84 void BrachyAnalysisManager::FillPrimaryParticleHistogram(
G4double primaryParticleEnergy)
87 histo-> Fill(primaryParticleEnergy);
static BrachyAnalysisManager * GetInstance()