Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,25 +23,19 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// $Id$
|
||||
// -------------------------------------------------------------------
|
||||
// Please cite the following paper if you use this software
|
||||
// Nucl.Instrum.Meth.B260:20-27, 2007
|
||||
|
||||
#ifndef DetectorConstruction_h
|
||||
#define DetectorConstruction_h 1
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4Box.hh"
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4Mag_UsualEqRhs.hh"
|
||||
#include "G4FieldManager.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4EqMagElectricField.hh"
|
||||
#include "G4UserLimits.hh"
|
||||
#include "G4MagIntegratorDriver.hh"
|
||||
#include "G4ClassicalRK4.hh"
|
||||
#include "G4ChordFinder.hh"
|
||||
#include "G4PropagatorInField.hh"
|
||||
|
||||
#include "DetectorMessenger.hh"
|
||||
@@ -52,66 +46,87 @@
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
void ConstructSDandField();
|
||||
|
||||
void PrintDetectorParameters();
|
||||
|
||||
void SetG1 (G4float);
|
||||
void SetG2 (G4float);
|
||||
void SetG3 (G4float);
|
||||
void SetG4 (G4float);
|
||||
|
||||
G4float GetG1 () {return fG1;};
|
||||
G4float GetG2 () {return fG2;};
|
||||
G4float GetG3 () {return fG3;};
|
||||
G4float GetG4 () {return fG4;};
|
||||
|
||||
void UpdateGeometry();
|
||||
|
||||
G4int GetModel(){return fModel;};
|
||||
void SetModel (G4int);
|
||||
|
||||
G4int GetCoef();
|
||||
void SetCoef();
|
||||
void SetCoef(G4int val);
|
||||
|
||||
G4int GetProfile(){return profile;};
|
||||
G4int GetProfile(){return fProfile;};
|
||||
void SetProfile(G4int myProfile);
|
||||
|
||||
G4int GetGrid(){return grid;};
|
||||
G4int GetGrid(){return fGrid;};
|
||||
void SetGrid(G4int myGrid);
|
||||
|
||||
G4float G1, G2, G3, G4;
|
||||
G4int model, coef, profile, grid;
|
||||
G4LogicalVolume* GetLogicalWorld() {return fLogicWorld;};
|
||||
G4LogicalVolume* GetLogicalVol() {return fLogicVol;};
|
||||
G4LogicalVolume* GetLogicalGrid() {return fLogicControlVol_GridShadow;};
|
||||
|
||||
G4LogicalVolume* GetLogicalWorld() {return logicWorld;};
|
||||
G4LogicalVolume* GetLogicalVol() {return logicVol;};
|
||||
G4LogicalVolume* GetLogicalGrid() {return logicControlVol_GridShadow;};
|
||||
G4float fG1, fG2, fG3, fG4;
|
||||
G4int fModel, fCoef, fProfile, fGrid;
|
||||
|
||||
private:
|
||||
|
||||
void DefineMaterials();
|
||||
G4VPhysicalVolume* ConstructVolumes();
|
||||
|
||||
G4VPhysicalVolume* physiWorld;
|
||||
G4LogicalVolume* logicWorld;
|
||||
G4Box* solidWorld;
|
||||
G4VPhysicalVolume* fPhysiWorld;
|
||||
G4LogicalVolume* fLogicWorld;
|
||||
G4Box* fSolidWorld;
|
||||
|
||||
G4VPhysicalVolume* physiVol;
|
||||
G4LogicalVolume* logicVol;
|
||||
G4Box* solidVol;
|
||||
G4VPhysicalVolume* fPhysiVol;
|
||||
G4LogicalVolume* fLogicVol;
|
||||
G4Box* fSolidVol;
|
||||
|
||||
G4VPhysicalVolume* physiGridVol;
|
||||
G4LogicalVolume* logicGridVol;
|
||||
G4Box* solidGridVol;
|
||||
G4VPhysicalVolume* fPhysiGridVol;
|
||||
G4LogicalVolume* fLogicGridVol;
|
||||
G4Box* fSolidGridVol;
|
||||
|
||||
G4VPhysicalVolume* physiGridVol_Hole;
|
||||
G4LogicalVolume* logicGridVol_Hole;
|
||||
G4Box* solidGridVol_Hole;
|
||||
G4VPhysicalVolume* fPhysiGridVol_Hole;
|
||||
G4LogicalVolume* fLogicGridVol_Hole;
|
||||
G4Box* fSolidGridVol_Hole;
|
||||
|
||||
G4VPhysicalVolume* physiControlVol_GridShadow;
|
||||
G4LogicalVolume* logicControlVol_GridShadow;
|
||||
G4Box* solidControlVol_GridShadow;
|
||||
G4VPhysicalVolume* fPhysiControlVol_GridShadow;
|
||||
G4LogicalVolume* fLogicControlVol_GridShadow;
|
||||
G4Box* fSolidControlVol_GridShadow;
|
||||
|
||||
G4Material* defaultMaterial;
|
||||
G4Material* gridMaterial;
|
||||
G4Material* fDefaultMaterial;
|
||||
G4Material* fGridMaterial;
|
||||
|
||||
G4bool gradientsInitialized;
|
||||
DetectorMessenger* detectorMessenger;
|
||||
G4bool fGradientsInitialized;
|
||||
DetectorMessenger* fDetectorMessenger;
|
||||
|
||||
//
|
||||
|
||||
static G4ThreadLocal TabulatedField3D * fField;
|
||||
|
||||
G4FieldManager * fFieldMgr;
|
||||
G4MagIntegratorStepper * fStepper;
|
||||
G4Mag_UsualEqRhs * fEquation;
|
||||
G4ChordFinder * fChordFinder ;
|
||||
G4PropagatorInField * fPropInField;
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user