Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -37,12 +37,9 @@ class BrachyActionInitialization: public G4VUserActionInitialization
public:
BrachyActionInitialization();
virtual ~BrachyActionInitialization();
virtual void BuildForMaster() const;
virtual void Build() const;
};
#endif
@@ -30,55 +30,8 @@ The class BrachyAnalysisManager creates and manages histograms and ntuples
*/
#ifndef BrachyAnalysisManager_HH
#define BrachyAnalysisManager_HH
#include "globals.hh"
#ifdef ANALYSIS_USE
#include "TROOT.h"
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#define BrachyAnalysisManager_HH 1
#include "g4root.hh"
#endif
class BrachyAnalysisManager
{
private:
BrachyAnalysisManager();
public:
~BrachyAnalysisManager();
static BrachyAnalysisManager* GetInstance();
void book();
// Create the output ROOT file
// Create the ntuple and histograms
#ifdef ANALYSIS_USE
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
void save();
// This method if called at the end of the run to store the
// results in the ROOT file
private:
static BrachyAnalysisManager* instance;
#ifdef ANALYSIS_USE
TFile* theTFile;
TH1F* histo;
TH2F* histo2;
#endif
};
#endif
@@ -64,28 +64,28 @@ public:
private:
G4int detectorChoice; //Select brachytherapic seed
BrachyFactory* factory;
G4int fDetectorChoice; //Select brachytherapic seed
BrachyFactory* fFactory;
// World ...
G4Box* World; //pointer to the solid World
G4LogicalVolume* WorldLog; //pointer to the logical World
G4VPhysicalVolume* WorldPhys; //pointer to the physical World
G4Box* fWorld; //pointer to the solid World
G4LogicalVolume* fWorldLog; //pointer to the logical World
G4VPhysicalVolume* fWorldPhys; //pointer to the physical World
// Phantom ...
G4Box* Phantom; //pointer to solid phantom
G4LogicalVolume* PhantomLog; //pointer to logic phantom
G4VPhysicalVolume* PhantomPhys; //pointer to physical phantom
G4Material* phantomAbsorberMaterial;
G4Box* fPhantom; //pointer to solid phantom
G4LogicalVolume* fPhantomLog; //pointer to logic phantom
G4VPhysicalVolume* fPhantomPhys; //pointer to physical phantom
G4Material* fPhantomAbsorberMaterial;
G4double phantomSizeX; //Phantom XSize
G4double phantomSizeY; //Phantom YSize
G4double phantomSizeZ; //Phantom ZSize
G4double worldSizeX ; //World XSize
G4double worldSizeY ; //World YSize
G4double worldSizeZ ; //World XSize
BrachyDetectorMessenger* detectorMessenger;
BrachyMaterial* pMaterial;
G4double fPhantomSizeX; //Phantom XSize
G4double fPhantomSizeY; //Phantom YSize
G4double fPhantomSizeZ; //Phantom ZSize
G4double fWorldSizeX ; //World XSize
G4double fWorldSizeY ; //World YSize
G4double fWorldSizeZ ; //World XSize
BrachyDetectorMessenger* fDetectorMessenger;
BrachyMaterial* fMaterial;
};
#endif
@@ -62,35 +62,35 @@ public:
// Destroy the Iridium source in the experimental set-up
private:
G4Tubs* steel_shell;
G4LogicalVolume* logical_steel_shell;
G4VPhysicalVolume* physical_steel_shell;
G4Tubs* fSteelShell;
G4LogicalVolume* fLogicalSteelShell;
G4VPhysicalVolume* fPhysicalSteelShell;
G4Tubs* air_gap;
G4LogicalVolume* logical_air_gap;
G4VPhysicalVolume* physical_air_gap;
G4Tubs* fAirGap;
G4LogicalVolume* fLogicalAirGap;
G4VPhysicalVolume* fPhysicalAirGap;
G4Tubs* End1_steel_shell;
G4LogicalVolume* logical_End1_steel_shell;
G4VPhysicalVolume* physical_End1_steel_shell;
G4Tubs* fEnd1SteelShell;
G4LogicalVolume* fLogicalEnd1SteelShell;
G4VPhysicalVolume* fPhysicalEnd1SteelShell;
G4Cons* End2_steel_shell;
G4LogicalVolume* logical_End2_steel_shell;
G4VPhysicalVolume* physical_End2_steel_shell;
G4Cons* fEnd2SteelShell;
G4LogicalVolume* fLogicalEnd2SteelShell;
G4VPhysicalVolume* fPhysicalEnd2SteelShell;
G4Tubs* cable;
G4LogicalVolume* logical_cable;
G4VPhysicalVolume* physical_cable;
G4Tubs* fCable;
G4LogicalVolume* fLogicalCable;
G4VPhysicalVolume* fPhysicalCable;
G4Tubs* iridium_core;
G4LogicalVolume* logical_iridium_core;
G4VPhysicalVolume* physical_iridium_core;
G4Tubs* fIridiumCore;
G4LogicalVolume* fLogicalIridiumCore;
G4VPhysicalVolume* fPhysicalIridiumCore;
G4VisAttributes* steelAttributes;
G4VisAttributes* endAttributes;
G4VisAttributes* simpleIridiumVisAtt;
G4VisAttributes* fSteelAttributes;
G4VisAttributes* fEndAttributes;
G4VisAttributes* fSimpleIridiumVisAtt;
BrachyMaterial* pMat;
BrachyMaterial* fMat;
};
#endif
@@ -50,27 +50,27 @@ class BrachyDetectorConstructionI
public:
BrachyDetectorConstructionI();
~BrachyDetectorConstructionI();
void ConstructIodium(G4VPhysicalVolume*);// Construct iodium source
void CleanIodium();
void ConstructIodine(G4VPhysicalVolume*);// Construct iodium source
void CleanIodine();
private:
G4Tubs* defaultTub;
G4Tubs* capsule;
G4Sphere* capsuleTip;
G4Tubs* iodiumCore;
G4LogicalVolume* defaultTubLog;
G4LogicalVolume* capsuleLog;
G4LogicalVolume* capsuleTipLog;
G4LogicalVolume* iodiumCoreLog;
G4VPhysicalVolume* defaultTubPhys;
G4VPhysicalVolume* capsulePhys;
G4VPhysicalVolume* capsuleTipPhys1;
G4VPhysicalVolume* capsuleTipPhys2;
G4VPhysicalVolume* iodiumCorePhys;
G4VisAttributes* simpleiodiumVisAtt;
G4VisAttributes* simpleCapsuleVisAtt;
G4VisAttributes* simpleCapsuleTipVisAtt;
G4Tubs* fDefaultTub;
G4Tubs* fCapsule;
G4Sphere* fCapsuleTip;
G4Tubs* fIodineCore;
G4LogicalVolume* fDefaultTubLog;
G4LogicalVolume* fCapsuleLog;
G4LogicalVolume* fCapsuleTipLog;
G4LogicalVolume* fIodineCoreLog;
G4VPhysicalVolume* fDefaultTubPhys;
G4VPhysicalVolume* fCapsulePhys;
G4VPhysicalVolume* fCapsuleTipPhys1;
G4VPhysicalVolume* fCapsuleTipPhys2;
G4VPhysicalVolume* fIodineCorePhys;
G4VisAttributes* fSimpleIodineVisAtt;
G4VisAttributes* fSimpleCapsuleVisAtt;
G4VisAttributes* fSimpleCapsuleTipVisAtt;
BrachyMaterial* pMaterial;
BrachyMaterial* fMaterial;
};
#endif
@@ -59,29 +59,29 @@ public:
private:
BrachyMaterial* pMaterial;
BrachyMaterial* fMaterial;
G4Tubs* capsule;
G4Sphere* capsuleTip;
G4Tubs* iridiumCore;
G4Tubs* applicator1;
G4Tubs* applicator2;
G4Tubs* fCapsule;
G4Sphere* fCapsuleTip;
G4Tubs* fIridiumCore;
G4Tubs* fApplicator1;
G4Tubs* fApplicator2;
G4LogicalVolume* capsuleLog;
G4LogicalVolume* capsuleTipLog;
G4LogicalVolume* iridiumCoreLog;
G4LogicalVolume* applicator1Log;
G4LogicalVolume* applicator2Log;
G4LogicalVolume* fCapsuleLog;
G4LogicalVolume* fCapsuleTipLog;
G4LogicalVolume* fIridiumCoreLog;
G4LogicalVolume* fApplicator1Log;
G4LogicalVolume* fApplicator2Log;
G4VPhysicalVolume* capsulePhys;
G4VPhysicalVolume* capsuleTipPhys;
G4VPhysicalVolume* iridiumCorePhys;
G4VPhysicalVolume* applicator1Phys;
G4VPhysicalVolume* applicator2Phys;
G4VPhysicalVolume* fCapsulePhys;
G4VPhysicalVolume* fCapsuleTipPhys;
G4VPhysicalVolume* fIridiumCorePhys;
G4VPhysicalVolume* fApplicator1Phys;
G4VPhysicalVolume* fApplicator2Phys;
G4VisAttributes* simpleCapsuleVisAtt;
G4VisAttributes* simpleCapsuleTipVisAtt;
G4VisAttributes* applicatorVisAtt;
G4VisAttributes* fSimpleCapsuleVisAtt;
G4VisAttributes* fSimpleCapsuleTipVisAtt;
G4VisAttributes* fApplicatorVisAtt;
};
#endif
@@ -63,27 +63,27 @@ public:
// Destroy the Oncura6711 reference source in the experimental set-up
private:
G4Tubs* OncuraCapsule ;
G4LogicalVolume* OncuraCapsuleLog;
G4VPhysicalVolume* OncuraCapsulePhys;
G4Sphere* OncuraCapsuleTip1;
G4LogicalVolume* OncuraCapsuleTip1Log;
G4VPhysicalVolume* OncuraCapsuleTip1Phys;
G4Sphere* OncuraCapsuleTip2;
G4LogicalVolume* OncuraCapsuleTip2Log;
G4VPhysicalVolume* OncuraCapsuleTip2Phys;
G4Tubs* OncuraAirGap;
G4LogicalVolume* OncuraAirGapLog;
G4VPhysicalVolume* OncuraAirGapPhys;
G4Tubs* OncuraSilverCore;
G4LogicalVolume* OncuraSilverCoreLog;
G4VPhysicalVolume* OncuraSilverCorePhys;
G4Tubs* fOncuraCapsule ;
G4LogicalVolume* fOncuraCapsuleLog;
G4VPhysicalVolume* fOncuraCapsulePhys;
G4Sphere* fOncuraCapsuleTip1;
G4LogicalVolume* fOncuraCapsuleTip1Log;
G4VPhysicalVolume* fOncuraCapsuleTip1Phys;
G4Sphere* fOncuraCapsuleTip2;
G4LogicalVolume* fOncuraCapsuleTip2Log;
G4VPhysicalVolume* fOncuraCapsuleTip2Phys;
G4Tubs* fOncuraAirGap;
G4LogicalVolume* fOncuraAirGapLog;
G4VPhysicalVolume* fOncuraAirGapPhys;
G4Tubs* fOncuraSilverCore;
G4LogicalVolume* fOncuraSilverCoreLog;
G4VPhysicalVolume* fOncuraSilverCorePhys;
BrachyMaterial* pMat;
BrachyMaterial* fMat;
G4VisAttributes* OncuraCapsuleShellVisAtt;
G4VisAttributes* OncuraCapsuleTipVisAtt;
G4VisAttributes* OncuraSilverCoreVisAtt;
G4VisAttributes* fOncuraCapsuleShellVisAtt;
G4VisAttributes* fOncuraCapsuleTipVisAtt;
G4VisAttributes* fOncuraSilverCoreVisAtt;
};
#endif
@@ -32,7 +32,8 @@
// ****************************************
//
// Management of the Iridium source
//
// Author: Dean Cutajar, University of Wollongong
// deanc@uow.edu.au
#ifndef BrachyDetectorConstructionIr_H
#define BrachyDetectorConstructionIr_H 1
@@ -61,25 +62,25 @@ public:
// 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;
G4Tubs* fTG186capsule ;
G4LogicalVolume* fTG186capsuleLog;
G4VPhysicalVolume* fTG186capsulePhys;
G4Sphere* fTG186capsuleTip;
G4LogicalVolume* fTG186capsuleTipLog;
G4VPhysicalVolume* fTG186capsuleTipPhys;
G4Tubs* fTG186iridiumCore;
G4LogicalVolume* fTG186iridiumCoreLog;
G4VPhysicalVolume* fTG186iridiumCorePhys;
G4Tubs* fTG186cable;
G4LogicalVolume* fTG186cableLog;
G4VPhysicalVolume* fTG186cablePhys;
BrachyMaterial* pMat;
BrachyMaterial* fMat;
G4VisAttributes* TG186simpleCapsuleVisAtt;
G4VisAttributes* TG186simpleCapsuleTipVisAtt;
G4VisAttributes* TG186simpleIridiumVisAtt;
G4VisAttributes* TG186simpleCableVisAtt;
G4VisAttributes* fTG186simpleCapsuleVisAtt;
G4VisAttributes* fTG186simpleCapsuleTipVisAtt;
G4VisAttributes* fTG186simpleIridiumVisAtt;
G4VisAttributes* fTG186simpleCableVisAtt;
};
#endif
@@ -53,10 +53,10 @@ public:
private:
BrachyDetectorConstruction* detector;// pointer to detector
G4UIdirectory* detectorDir;
G4UIcmdWithAString* phantomMaterialCmd; // change phantom material
G4UIcmdWithAString* sourceCmd; // change brachytherapic source
BrachyDetectorConstruction* fDetector;// pointer to detector
G4UIdirectory* fDetectorDir;
G4UIcmdWithAString* fPhantomMaterialCmd; // change phantom material
G4UIcmdWithAString* fSourceCmd; // change brachytherapic source
};
#endif
@@ -57,7 +57,7 @@ public:
void CleanSource();
private:
BrachyDetectorConstructionFlexi* flexiSource;
BrachyDetectorConstructionFlexi* fFlexiSource;
};
#endif
@@ -63,6 +63,6 @@ public:
void CleanSource();
private:
BrachyDetectorConstructionI* iodiumSource;
BrachyDetectorConstructionI* fIodineSource;
};
#endif
@@ -58,6 +58,6 @@ public:
void CleanSource();
private:
BrachyDetectorConstructionLeipzig* leipzigSource;
BrachyDetectorConstructionLeipzig* fLeipzigSource;
};
#endif
@@ -56,6 +56,6 @@ public:
void CleanSource();
private:
BrachyDetectorConstructionOncura6711* Oncura6711IodineSource;
BrachyDetectorConstructionOncura6711* fOncura6711IodineSource;
};
#endif
@@ -56,6 +56,6 @@ public:
void CleanSource();
private:
BrachyDetectorConstructionTG186* TG186iridiumSource;
BrachyDetectorConstructionTG186* fTG186iridiumSource;
};
#endif
@@ -52,22 +52,22 @@ public:
G4Material* GetMat(G4String); //returns the material
private:
G4Material* matW;
G4Material* matplexiglass;
G4Material* matPb;
G4Material* matir192;
G4Material* Titanium;
G4Material* matAir;
G4Material* matH2O;
G4Material* soft;
G4Material* matsteel;
G4Material* mat304steel;
G4Material* gold;
G4Material* matI;
G4Material* ceramic;
G4Material*Vacuum;
G4Material* bone;
G4Material* muscle;
G4Material* matAg;
G4Material* fW;
G4Material* fPlexiglass;
G4Material* fPb;
G4Material* fIr192;
G4Material* fTi;
G4Material* fAir;
G4Material* fH2O;
G4Material* fSoft;
G4Material* fSteel;
G4Material* fMat304steel;
G4Material* fAu;
G4Material* fI;
G4Material* fCeramic;
G4Material* fVacuum;
G4Material* fBone;
G4Material* fMuscle;
G4Material* fAg;
};
#endif
@@ -36,7 +36,6 @@ class G4UIcmdWithAString;
class BrachyPhysicsListMessenger: public G4UImessenger
{
public:
BrachyPhysicsListMessenger(BrachyPhysicsList* );
~BrachyPhysicsListMessenger();
@@ -44,12 +43,9 @@ class BrachyPhysicsListMessenger: public G4UImessenger
void SetNewValue(G4UIcommand*, G4String);
private:
BrachyPhysicsList* fPhysicsList;
BrachyPhysicsList* fPhysicsList;
G4UIdirectory* fPhysDir;
G4UIcmdWithAString* fListCmd;
};
#endif
@@ -50,6 +50,6 @@ class BrachyPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
void GeneratePrimaries(G4Event* anEvent);
private:
G4GeneralParticleSource* gun;
G4GeneralParticleSource* fGun;
};
#endif