Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
#ifndef DetectorConstruction_h
|
||||
#define DetectorConstruction_h 1
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
class G4Box;
|
||||
class G4LogicalVolume;
|
||||
class G4VPhysicalVolume;
|
||||
@@ -48,41 +48,40 @@ class DetectorMessenger;
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction() override;
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction() override;
|
||||
|
||||
public:
|
||||
G4VPhysicalVolume* Construct() override;
|
||||
|
||||
void SetAbsorberMaterial (const G4String&);
|
||||
void SetAbsorberMaterial(const G4String&);
|
||||
void SetAbsorberThickness(G4double);
|
||||
|
||||
void SetGapMaterial (const G4String&);
|
||||
void SetGapMaterial(const G4String&);
|
||||
void SetGapThickness(G4double);
|
||||
|
||||
void SetCalorSizeYZ(G4double);
|
||||
void SetNbOfLayers (G4int);
|
||||
void SetNbOfLayers(G4int);
|
||||
|
||||
void PrintCalorParameters();
|
||||
|
||||
G4double GetWorldSizeX() { return fWorldSizeX; }
|
||||
G4double GetWorldSizeX() { return fWorldSizeX; }
|
||||
G4double GetWorldSizeYZ() { return fWorldSizeYZ; }
|
||||
|
||||
G4double GetCalorThickness() { return fCalorThickness; }
|
||||
G4double GetCalorSizeYZ() { return fCalorSizeYZ; }
|
||||
G4double GetCalorSizeYZ() { return fCalorSizeYZ; }
|
||||
|
||||
G4int GetNbOfLayers() { return fNbOfLayers; }
|
||||
|
||||
G4Material* GetAbsorberMaterial() { return fAbsorberMaterial; }
|
||||
G4double GetAbsorberThickness() { return fAbsorberThickness; }
|
||||
G4Material* GetAbsorberMaterial() { return fAbsorberMaterial; }
|
||||
G4double GetAbsorberThickness() { return fAbsorberThickness; }
|
||||
|
||||
G4Material* GetGapMaterial() { return fGapMaterial; }
|
||||
G4double GetGapThickness() { return fGapThickness; }
|
||||
G4Material* GetGapMaterial() { return fGapMaterial; }
|
||||
G4double GetGapThickness() { return fGapThickness; }
|
||||
|
||||
const G4VPhysicalVolume* GetphysiWorld() { return fPhysiWorld; }
|
||||
const G4VPhysicalVolume* GetAbsorber() { return fPhysiAbsorber; }
|
||||
const G4VPhysicalVolume* GetGap() { return fPhysiGap; }
|
||||
const G4VPhysicalVolume* GetAbsorber() { return fPhysiAbsorber; }
|
||||
const G4VPhysicalVolume* GetGap() { return fPhysiGap; }
|
||||
|
||||
private:
|
||||
void DefineMaterials();
|
||||
@@ -93,37 +92,37 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
G4Material* fGapMaterial = nullptr;
|
||||
G4Material* fDefaultMaterial = nullptr;
|
||||
|
||||
G4int fNbOfLayers = 10;
|
||||
G4double fAbsorberThickness = 10.*CLHEP::mm;
|
||||
G4double fGapThickness = 5.*CLHEP::mm;
|
||||
G4double fCalorSizeYZ = 10.*CLHEP::cm;
|
||||
G4int fNbOfLayers = 10;
|
||||
G4double fAbsorberThickness = 10. * CLHEP::mm;
|
||||
G4double fGapThickness = 5. * CLHEP::mm;
|
||||
G4double fCalorSizeYZ = 10. * CLHEP::cm;
|
||||
|
||||
G4double fCalorThickness = 0.; // will be computed
|
||||
G4double fLayerThickness= 0.; // will be computed
|
||||
G4double fWorldSizeYZ = 0.; // will be computed;
|
||||
G4double fWorldSizeX = 0.; // will be computed;
|
||||
G4double fCalorThickness = 0.; // will be computed
|
||||
G4double fLayerThickness = 0.; // will be computed
|
||||
G4double fWorldSizeYZ = 0.; // will be computed;
|
||||
G4double fWorldSizeX = 0.; // will be computed;
|
||||
|
||||
G4Box* fSolidWorld = nullptr; //pointer to the solid World
|
||||
G4LogicalVolume* fLogicWorld = nullptr; //pointer to the logical World
|
||||
G4VPhysicalVolume* fPhysiWorld = nullptr; //pointer to the physical World
|
||||
G4Box* fSolidWorld = nullptr; // pointer to the solid World
|
||||
G4LogicalVolume* fLogicWorld = nullptr; // pointer to the logical World
|
||||
G4VPhysicalVolume* fPhysiWorld = nullptr; // pointer to the physical World
|
||||
|
||||
G4Box* fSolidCalor = nullptr; //pointer to the solid Calor
|
||||
G4LogicalVolume* fLogicCalor = nullptr; //pointer to the logical Calor
|
||||
G4VPhysicalVolume* fPhysiCalor = nullptr; //pointer to the physical Calor
|
||||
G4Box* fSolidCalor = nullptr; // pointer to the solid Calor
|
||||
G4LogicalVolume* fLogicCalor = nullptr; // pointer to the logical Calor
|
||||
G4VPhysicalVolume* fPhysiCalor = nullptr; // pointer to the physical Calor
|
||||
|
||||
G4Box* fSolidLayer = nullptr; //pointer to the solid Layer
|
||||
G4LogicalVolume* fLogicLayer = nullptr; //pointer to the logical Layer
|
||||
G4VPhysicalVolume* fPhysiLayer = nullptr; //pointer to the physical Layer
|
||||
G4Box* fSolidLayer = nullptr; // pointer to the solid Layer
|
||||
G4LogicalVolume* fLogicLayer = nullptr; // pointer to the logical Layer
|
||||
G4VPhysicalVolume* fPhysiLayer = nullptr; // pointer to the physical Layer
|
||||
|
||||
G4Box* fSolidAbsorber = nullptr; //pointer to the solid Absorber
|
||||
G4LogicalVolume* fLogicAbsorber = nullptr; //pointer to the logical Absorber
|
||||
G4VPhysicalVolume* fPhysiAbsorber = nullptr; //pointer to the physical Absorber
|
||||
G4Box* fSolidAbsorber = nullptr; // pointer to the solid Absorber
|
||||
G4LogicalVolume* fLogicAbsorber = nullptr; // pointer to the logical Absorber
|
||||
G4VPhysicalVolume* fPhysiAbsorber = nullptr; // pointer to the physical Absorber
|
||||
|
||||
G4Box* fSolidGap = nullptr; //pointer to the solid Gap
|
||||
G4LogicalVolume* fLogicGap = nullptr; //pointer to the logical Gap
|
||||
G4VPhysicalVolume* fPhysiGap = nullptr; //pointer to the physical Gap
|
||||
G4Box* fSolidGap = nullptr; // pointer to the solid Gap
|
||||
G4LogicalVolume* fLogicGap = nullptr; // pointer to the logical Gap
|
||||
G4VPhysicalVolume* fPhysiGap = nullptr; // pointer to the physical Gap
|
||||
|
||||
DetectorMessenger* fDetectorMessenger = nullptr; //pointer to the Messenger
|
||||
DetectorMessenger* fDetectorMessenger = nullptr; // pointer to the Messenger
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -131,13 +130,13 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
inline void DetectorConstruction::ComputeCalorParameters()
|
||||
{
|
||||
// Compute derived parameters of the calorimeter
|
||||
fLayerThickness = fAbsorberThickness + fGapThickness;
|
||||
fCalorThickness = fNbOfLayers*fLayerThickness;
|
||||
fLayerThickness = fAbsorberThickness + fGapThickness;
|
||||
fCalorThickness = fNbOfLayers * fLayerThickness;
|
||||
|
||||
fWorldSizeX = 1.2*fCalorThickness; fWorldSizeYZ = 1.2*fCalorSizeYZ;
|
||||
fWorldSizeX = 1.2 * fCalorThickness;
|
||||
fWorldSizeYZ = 1.2 * fCalorSizeYZ;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user