Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
+28 -13
View File
@@ -19,19 +19,31 @@
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
// ----------------------------------------------------------------------------
// $Id: HadrontherapyAnalysisManager.hh; May 2005
// ----------------------------------------------------------------------------
// GEANT 4 - Hadrontherapy example
// ----------------------------------------------------------------------------
// Code developed by:
//
// G.A.P. Cirrone(a)*, F. Di Rosa(a), S. Guatelli(b), G. Russo(a)
//
// (a) Laboratori Nazionali del Sud
// of the INFN, Catania, Italy
// (b) INFN Section of Genova, Genova, Italy
//
// * cirrone@lns.infn.it
// ----------------------------------------------------------------------------
#ifdef G4ANALYSIS_USE
#ifndef HADRONTHERAPYANALYSISMANAGER_HH
#define HADRONTHERAPYANALYSISMANAGER_HH
#define HADRONTHERAPYANALYSISMANAGER_HH 1
#include "globals.hh"
#include <vector>
#include "G4ThreeVector.hh"
# include <AIDA/AIDA.h>
namespace AIDA{
class ITree;
class IDataPoint;
class IAnalysisFactory;
class ITreeFactory;
};
@@ -43,28 +55,31 @@ private:
public:
~HadrontherapyAnalysisManager();
static HadrontherapyAnalysisManager* getInstance();
void book();
// Book the histograms and ntuples in a .hbk file
void Energy_Dep(G4double, G4double);
void Energy_Event(G4int, G4double);
void FillEnergyDeposit(G4int voxelXId, G4int voxelYId, G4int voxelZId,
G4double energyDeposit);
// Fill the ntuple with the energy deposit in the phantom
void BraggPeak(G4int, G4double);
// Fill 1D histogram with the Bragg peak in the phantom
void finish();
// Close the .hbk file with the histograms and the ntuples
private:
static HadrontherapyAnalysisManager* instance;
private:
AIDA::IAnalysisFactory* aFact;
AIDA::ITree* theTree;
// AIDA::ITreeFactory *treeFact;
AIDA::IAnalysisFactory* aFact;
AIDA::ITree* theTree;
AIDA::IHistogramFactory *histFact;
AIDA::ITupleFactory *tupFact;
AIDA::ITupleFactory *tupFact;
AIDA::IHistogram1D *h1;
AIDA::ITuple *ntuple;
};
#endif
#endif