35 #ifndef HADRONTHERAPYANALYSISMANAGER_HH
36 #define HADRONTHERAPYANALYSISMANAGER_HH 1
41 #ifdef G4ANALYSIS_USE_ROOT
74 #ifdef G4ANALYSIS_USE_ROOT
103 void SecondaryNeutronEnergyDeposit(
G4int slice,
G4double energy);
106 void SecondaryAlphaEnergyDeposit(
G4int slice,
G4double energy);
109 void SecondaryGammaEnergyDeposit(
G4int slice,
G4double energy);
112 void SecondaryElectronEnergyDeposit(
G4int slice,
G4double energy);
115 void SecondaryTritonEnergyDeposit(
G4int slice,
G4double energy);
118 void SecondaryDeuteronEnergyDeposit(
G4int slice,
G4double energy);
121 void SecondaryPionEnergyDeposit(
G4int slice,
G4double energy);
124 void electronEnergyDistribution(
G4double secondaryParticleKineticEnergy);
127 void gammaEnergyDistribution(
G4double secondaryParticleKineticEnergy);
130 void deuteronEnergyDistribution(
G4double secondaryParticleKineticEnergy);
133 void tritonEnergyDistribution(
G4double secondaryParticleKineticEnergy);
136 void alphaEnergyDistribution(
G4double secondaryParticleKineticEnergy);
139 void heliumEnergy(
G4double secondaryParticleKineticEnergy);
142 void hydrogenEnergy(
G4double secondaryParticleKineticEnergy);
164 void startNewEvent();
176 TH1F *createHistogram1D(
const TString
name,
const TString title,
int bins,
double xmin,
double xmax) {
177 TH1F *histo =
new TH1F(name, title, bins, xmin, xmax);
178 histo->SetLineWidth(2);
186 #ifdef G4ANALYSIS_USE_ROOT
206 TNtuple *kinFragNtuple;
207 TNtuple *kineticEnergyPrimaryNtuple;
210 TNtuple *doseFragNtuple;
213 TNtuple *fluenceFragNtuple;
216 TNtuple *letFragNtuple;
218 TNtuple *theROOTNtuple;
219 TNtuple *theROOTIonTuple;
220 TNtuple *fragmentNtuple;
static HadrontherapyAnalysisManager * GetInstance()
Get the pointer to the analysis manager.
static HadrontherapyAnalysisManager * instance
A messenger object of this class is created by the AnalysisManager.
HadrontherapyAnalysisFileMessenger * fMess
static const G4double A[nN]
G4double energy(const ThreeVector &p, const G4double m)
HadrontherapyAnalysisManager()
Analysis manager is a singleton object (there is only one instance).
A class for connecting the simulation to an analysis package.
~HadrontherapyAnalysisManager()