Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -37,8 +37,8 @@ The class BrachyAnalysisManager creates and manages histograms and ntuples
#ifdef ANALYSIS_USE
#include "TROOT.h"
#include "TFile.h"
#include "TNtuple.h"
#include "TH1F.h"
#include "TH2F.h"
#endif
@@ -56,11 +56,12 @@ public:
// Create the ntuple and histograms
#ifdef ANALYSIS_USE
void FillNtupleWithEnergyDeposition(G4double,G4double,G4double,G4double);
// Method to fill the ntuple with the energy deposition, integrated over a run, in each voxel
// of the scoring mesh
void FillPrimaryParticleHistogram(G4double);
void FillH2WithEnergyDeposition(G4double xx,G4double yy, G4double energyDep);
// Method to fill the 2D histogram with the energy deposition, integrated over a run, in each voxel
// of the scoring mesh. The scoring mesh is in the plane containing the source.
void FillPrimaryParticleHistogram(G4double);
// Energy spectrum of primary particles
#endif
@@ -74,7 +75,7 @@ private:
#ifdef ANALYSIS_USE
TFile* theTFile;
TH1F* histo;
TNtuple* ntuple;
TH2F* histo2;
#endif
};
#endif
@@ -0,0 +1,103 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// Code developed by: S. Guatelli, D. Cutajar, J. Poder,
//Centre For Medical Radiation Physics, University of Wollongong
//
//
// ******************************************
// * *
// * BrachyDetectorConstructionFlexi.hh *
// * *
// ******************************************
//
//
//
#ifndef BrachyDetectorConstructionFlexi_H
#define BrachyDetectorConstructionFlexi_H 1
#include "globals.hh"
#include "G4VUserDetectorConstruction.hh"
class G4LogicalVolume;
class G4Tubs;
class G4Cons;
class G4VPhysicalVolume;
class BrachyMaterial;
class G4VisAttributes;
class BrachyDetectorConstructionFlexi
{
public:
BrachyDetectorConstructionFlexi();
~BrachyDetectorConstructionFlexi();
void ConstructFlexi(G4VPhysicalVolume*);
// Model the Flexi iridium source
void CleanFlexi();
// Destroy the Iridium source in the experimental set-up
private:
G4Tubs* steel_shell;
G4LogicalVolume* logical_steel_shell;
G4VPhysicalVolume* physical_steel_shell;
G4Tubs* air_gap;
G4LogicalVolume* logical_air_gap;
G4VPhysicalVolume* physical_air_gap;
G4Tubs* End1_steel_shell;
G4LogicalVolume* logical_End1_steel_shell;
G4VPhysicalVolume* physical_End1_steel_shell;
G4Cons* End2_steel_shell;
G4LogicalVolume* logical_End2_steel_shell;
G4VPhysicalVolume* physical_End2_steel_shell;
G4Tubs* cable;
G4LogicalVolume* logical_cable;
G4VPhysicalVolume* physical_cable;
G4Tubs* iridium_core;
G4LogicalVolume* logical_iridium_core;
G4VPhysicalVolume* physical_iridium_core;
G4VisAttributes* steelAttributes;
G4VisAttributes* endAttributes;
G4VisAttributes* simpleIridiumVisAtt;
BrachyMaterial* pMat;
};
#endif
@@ -0,0 +1,93 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: BrachyDetectorConstructionIr.hh 69765 2013-05-14 10:11:22Z gcosmo $
//
// ****************************************
// * *
// * BrachyDetectorConstructionIr.hh *
// * *
// ****************************************
//
// Management of the Iridium source
//
#ifndef BrachyDetectorConstructionIr_H
#define BrachyDetectorConstructionIr_H 1
#include "globals.hh"
#include "G4VUserDetectorConstruction.hh"
class G4LogicalVolume;
class G4Tubs;
class G4Box;
class G4Sphere;
class G4VPhysicalVolume;
class BrachyMaterial;
class G4VisAttributes;
class BrachyDetectorConstructionTG186
{
public:
BrachyDetectorConstructionTG186();
~BrachyDetectorConstructionTG186();
void ConstructTG186(G4VPhysicalVolume*);
// Model the TG186 reference source
void CleanTG186();
// Destroy the TG186 reference source in the experimental set-up
private:
G4Tubs* TG186capsule ;
G4LogicalVolume* TG186capsuleLog;
G4VPhysicalVolume* TG186capsulePhys;
G4Sphere* TG186capsuleTip;
G4LogicalVolume* TG186capsuleTipLog;
G4VPhysicalVolume* TG186capsuleTipPhys;
G4Tubs* TG186iridiumCore;
G4LogicalVolume* TG186iridiumCoreLog;
G4VPhysicalVolume* TG186iridiumCorePhys;
G4Tubs* TG186cable;
G4LogicalVolume* TG186cableLog;
G4VPhysicalVolume* TG186cablePhys;
BrachyMaterial* pMat;
G4VisAttributes* TG186simpleCapsuleVisAtt;
G4VisAttributes* TG186simpleCapsuleTipVisAtt;
G4VisAttributes* TG186simpleIridiumVisAtt;
G4VisAttributes* TG186simpleCableVisAtt;
};
#endif
@@ -0,0 +1,63 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
//
// **********************************
// * *
// * BrachyFactoryFlexi.hh *
// * *
// **********************************
//
//Code developed by: S. Guatelli, D. Cutajar, J. Poder,
//Centre For Medical Radiation Physics, University of Wollongong
//
#ifndef BrachyFactoryFlexi_h
#define BrachyFactoryFlexi_h 1
#include "BrachyFactory.hh"
#include "G4RunManager.hh"
class G4ParticleGun;
class G4Run;
class G4Event;
class BrachyFactory;
class BrachyDetectorConstructionFlexi;
// This class manages the creation of the Nucletron Flexi Source
class BrachyFactoryFlexi : public BrachyFactory
{
public:
BrachyFactoryFlexi();
~BrachyFactoryFlexi();
void CreateSource(G4VPhysicalVolume*);
void CleanSource();
private:
BrachyDetectorConstructionFlexi* flexiSource;
};
#endif
@@ -0,0 +1,62 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: BrachyFactoryIr.hh 69765 2013-05-14 10:11:22Z gcosmo $
//
// **********************************
// * *
// * BrachyFactoryIr.hh *
// * *
// **********************************
//
// Author: D. Cutajar
//
#ifndef BrachyFactoryTG186_h
#define BrachyFactoryTG186_h 1
#include "BrachyFactory.hh"
#include "G4RunManager.hh"
class G4ParticleGun;
class G4Run;
class G4Event;
class BrachyFactory;
class BrachyDetectorConstructionTG186;
// This class manages the creation of iridum source used in endocavitary
// brachytherapy ...
class BrachyFactoryTG186 : public BrachyFactory
{
public:
BrachyFactoryTG186();
~BrachyFactoryTG186();
void CreateSource(G4VPhysicalVolume*);
void CleanSource();
private:
BrachyDetectorConstructionTG186* TG186iridiumSource;
};
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyMaterial.hh 69765 2013-05-14 10:11:22Z gcosmo $
// $Id: BrachyMaterial.hh 100821 2016-11-02 15:21:34Z gcosmo $
//
// **********************************
// * *
@@ -62,6 +62,7 @@ private:
G4Material* matH2O;
G4Material* soft;
G4Material* matsteel;
G4Material* mat304steel;
G4Material* gold;
G4Material* matI;
G4Material* ceramic;