Import Geant4 7.1.0 source tree
This commit is contained in:
Executable → Regular
+28
-13
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user