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
@@ -34,12 +34,10 @@
#ifndef DetectorConstruction_h
#define DetectorConstruction_h 1
#include "G4OpticalSurface.hh"
#include "globals.hh"
#include "G4VUserDetectorConstruction.hh"
#include "G4OpticalSurface.hh"
#include "G4RunManager.hh"
#include "G4VUserDetectorConstruction.hh"
class DetectorMessenger;
@@ -47,83 +45,93 @@ class DetectorMessenger;
class DetectorConstruction : public G4VUserDetectorConstruction
{
public:
DetectorConstruction();
virtual ~DetectorConstruction();
public:
DetectorConstruction();
virtual ~DetectorConstruction();
G4VPhysicalVolume* GetTank() {return fTank;}
G4double GetTankXSize() {return fTank_x;}
G4VPhysicalVolume* GetTank() { return fTank; }
G4double GetTankXSize() { return fTank_x; }
G4OpticalSurface* GetSurface(void) {return fSurface;}
G4OpticalSurface* GetSurface(void) { return fSurface; }
void SetSurfaceFinish(const G4OpticalSurfaceFinish finish) {
fSurface->SetFinish(finish);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
G4OpticalSurfaceFinish GetSurfaceFinish(void)
{return fSurface->GetFinish();}
void SetSurfaceFinish(const G4OpticalSurfaceFinish finish)
{
fSurface->SetFinish(finish);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
G4OpticalSurfaceFinish GetSurfaceFinish(void)
{
return fSurface->GetFinish();
}
void SetSurfaceType(const G4SurfaceType type) {
fSurface->SetType(type);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
void SetSurfaceType(const G4SurfaceType type)
{
fSurface->SetType(type);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
void SetSurfaceModel(const G4OpticalSurfaceModel model) {
fSurface->SetModel(model);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
G4OpticalSurfaceModel GetSurfaceModel(void)
{return fSurface->GetModel();}
void SetSurfaceModel(const G4OpticalSurfaceModel model)
{
fSurface->SetModel(model);
G4RunManager::GetRunManager()->GeometryHasBeenModified();
}
G4OpticalSurfaceModel GetSurfaceModel(void) { return fSurface->GetModel(); }
void SetSurfaceSigmaAlpha(G4double v);
void SetSurfacePolish(G4double v);
void SetSurfaceSigmaAlpha(G4double v);
void SetSurfacePolish(G4double v);
void AddTankMPV(const char* c, G4MaterialPropertyVector* mpv);
void AddTankMPC(const char* c, G4double v);
G4MaterialPropertiesTable* GetTankMaterialPropertiesTable()
{return fTankMPT;}
void AddTankMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
void AddTankMPC(const G4String& prop, G4double v);
G4MaterialPropertiesTable* GetTankMaterialPropertiesTable()
{
return fTankMPT;
}
void AddWorldMPV(const char* c, G4MaterialPropertyVector* mpv);
void AddWorldMPC(const char* c, G4double v);
G4MaterialPropertiesTable* GetWorldMaterialPropertiesTable()
{return fWorldMPT;}
void AddWorldMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
void AddWorldMPC(const G4String& prop, G4double v);
G4MaterialPropertiesTable* GetWorldMaterialPropertiesTable()
{
return fWorldMPT;
}
void AddSurfaceMPV(const char* c, G4MaterialPropertyVector* mpv);
void AddSurfaceMPC(const char* c, G4double v);
G4MaterialPropertiesTable* GetSurfaceMaterialPropertiesTable()
{return fSurfaceMPT;}
void AddSurfaceMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
void AddSurfaceMPC(const G4String& prop, G4double v);
G4MaterialPropertiesTable* GetSurfaceMaterialPropertiesTable()
{
return fSurfaceMPT;
}
void SetWorldMaterial(const G4String&);
G4Material* GetWorldMaterial() const {return fWorldMaterial;}
void SetTankMaterial(const G4String&);
G4Material* GetTankMaterial() const {return fTankMaterial;}
void SetWorldMaterial(const G4String&);
G4Material* GetWorldMaterial() const { return fWorldMaterial; }
void SetTankMaterial(const G4String&);
G4Material* GetTankMaterial() const { return fTankMaterial; }
virtual G4VPhysicalVolume* Construct();
virtual G4VPhysicalVolume* Construct();
private:
G4double fExpHall_x;
G4double fExpHall_y;
G4double fExpHall_z;
private:
G4double fExpHall_x;
G4double fExpHall_y;
G4double fExpHall_z;
G4VPhysicalVolume* fTank;
G4VPhysicalVolume* fTank;
G4double fTank_x;
G4double fTank_y;
G4double fTank_z;
G4double fTank_x;
G4double fTank_y;
G4double fTank_z;
G4LogicalVolume* fWorld_LV;
G4LogicalVolume* fTank_LV;
G4LogicalVolume* fWorld_LV;
G4LogicalVolume* fTank_LV;
G4Material* fWorldMaterial;
G4Material* fTankMaterial;
G4Material* fWorldMaterial;
G4Material* fTankMaterial;
G4OpticalSurface* fSurface;
G4OpticalSurface* fSurface;
DetectorMessenger* fDetectorMessenger;
DetectorMessenger* fDetectorMessenger;
G4MaterialPropertiesTable* fTankMPT;
G4MaterialPropertiesTable* fWorldMPT;
G4MaterialPropertiesTable* fSurfaceMPT;
G4MaterialPropertiesTable* fTankMPT;
G4MaterialPropertiesTable* fWorldMPT;
G4MaterialPropertiesTable* fSurfaceMPT;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......