Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -106,7 +106,7 @@ class CellParameterisation : public G4VPVParameterisation
|
||||
const G4int,
|
||||
const G4VPhysicalVolume *) const {}
|
||||
|
||||
G4int GetNoBoxes() {return fPhantomTotalPixels;}
|
||||
G4int GetNoBoxes() const {return fPhantomTotalPixels;}
|
||||
|
||||
G4Material* ComputeMaterial(const G4int copyNo,
|
||||
G4VPhysicalVolume* physVol,
|
||||
@@ -114,27 +114,26 @@ class CellParameterisation : public G4VPVParameterisation
|
||||
|
||||
// NEW
|
||||
|
||||
G4int GetPhantomTotalPixels() {return fPhantomTotalPixels;}
|
||||
G4int GetNucleusTotalPixels() {return fNucleusTotalPixels;}
|
||||
G4int GetCytoplasmTotalPixels() {return fCytoplasmTotalPixels;}
|
||||
G4double GetPixelSizeX() {return fDimCellBoxX;}
|
||||
G4double GetPixelSizeY() {return fDimCellBoxY;}
|
||||
G4double GetPixelSizeZ() {return fDimCellBoxZ;}
|
||||
G4double GetCytoplasmMass() {return fCytoplasmMass;}
|
||||
G4double GetNucleusMass() {return fNucleusMass;}
|
||||
G4int GetPhantomTotalPixels() const {return fPhantomTotalPixels;}
|
||||
G4int GetNucleusTotalPixels() const {return fNucleusTotalPixels;}
|
||||
G4int GetCytoplasmTotalPixels() const {return fCytoplasmTotalPixels;}
|
||||
G4double GetPixelSizeX() const {return fDimCellBoxX;}
|
||||
G4double GetPixelSizeY() const {return fDimCellBoxY;}
|
||||
G4double GetPixelSizeZ() const {return fDimCellBoxZ;}
|
||||
G4double GetCytoplasmMass() const {return fCytoplasmMass;}
|
||||
G4double GetNucleusMass() const {return fNucleusMass;}
|
||||
|
||||
G4ThreeVector GetVoxelThreeVector(G4int i) {return fMapCell[i];}
|
||||
G4double GetMaterialVector(G4int i) {return fMaterial[i];}
|
||||
G4double GetMassVector(G4int i) {return fMass[i];}
|
||||
G4int GetTissueType(G4int i) {return fTissueType[i];}
|
||||
G4ThreeVector GetVoxelThreeVector(G4int i) const {return fMapCell[i];}
|
||||
G4double GetMaterialVector(G4int i) const {return fMaterial[i];}
|
||||
G4double GetMassVector(G4int i) const {return fMass[i];}
|
||||
G4int GetTissueType(G4int i) const {return fTissueType[i];}
|
||||
|
||||
//SINGLETON
|
||||
// SINGLETON
|
||||
|
||||
static CellParameterisation * Instance()
|
||||
{
|
||||
return gInstance;
|
||||
}
|
||||
//
|
||||
|
||||
private:
|
||||
|
||||
@@ -152,10 +151,10 @@ class CellParameterisation : public G4VPVParameterisation
|
||||
G4VisAttributes * fNucleusAttributes3;
|
||||
G4VisAttributes * fCytoplasmAttributes3;
|
||||
|
||||
G4ThreeVector * fMapCell ; // VOXEL COORDINATES
|
||||
G4double * fMaterial ; // MATERIAL
|
||||
G4double * fMass ; // DENSITY REGION
|
||||
G4int * fTissueType ; // DENSITY REGION
|
||||
G4ThreeVector * fMapCell; // VOXEL COORDINATES
|
||||
G4double * fMaterial; // MATERIAL
|
||||
G4double * fMass; // DENSITY REGION
|
||||
G4int * fTissueType; // DENSITY REGION
|
||||
|
||||
G4int fPhantomTotalPixels;
|
||||
G4int fNucleusTotalPixels;
|
||||
|
||||
@@ -58,37 +58,36 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
public:
|
||||
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction();
|
||||
virtual ~DetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
void ConstructSDandField();
|
||||
virtual void ConstructSDandField();
|
||||
|
||||
void SetMassNucleus(G4double mN){ fMassNucleus = mN;}
|
||||
G4double GetMassNucleus(){return fMassNucleus;}
|
||||
void SetMassNucleus(G4double mN) {fMassNucleus = mN;}
|
||||
G4double GetMassNucleus() const {return fMassNucleus;}
|
||||
|
||||
void SetMassCytoplasm(G4double mC){ fMassCytoplasm = mC;}
|
||||
G4double GetMassCytoplasm(){return fMassCytoplasm;}
|
||||
void SetMassCytoplasm(G4double mC) {fMassCytoplasm = mC;}
|
||||
G4double GetMassCytoplasm() const {return fMassCytoplasm;}
|
||||
|
||||
void SetNbOfPixelsInPhantom(G4int nP){ fNbOfPixelsInPhantom = nP;}
|
||||
G4int GetNbOfPixelsInPhantom(){return fNbOfPixelsInPhantom;}
|
||||
void SetNbOfPixelsInPhantom(G4int nP) {fNbOfPixelsInPhantom = nP;}
|
||||
G4int GetNbOfPixelsInPhantom() const {return fNbOfPixelsInPhantom;}
|
||||
|
||||
// Returns the logical volumes
|
||||
|
||||
G4LogicalVolume* GetLogicalCollDetYoke() {return fLogicYoke2;};
|
||||
G4LogicalVolume* GetLogicalIsobutane() {return fLogicBoiteIso;};
|
||||
G4LogicalVolume* GetLogicalCollDetGap4() {return fLogic4Gap;};
|
||||
G4LogicalVolume* GetLogicalPolyprop() {return fLogicBoite3;};
|
||||
G4LogicalVolume* GetLogicalKgm() {return fLogicKgm;};
|
||||
const G4LogicalVolume* GetLogicalCollDetYoke() const {return fLogicYoke2;};
|
||||
const G4LogicalVolume* GetLogicalIsobutane() const {return fLogicBoiteIso;};
|
||||
const G4LogicalVolume* GetLogicalCollDetGap4() const {return fLogic4Gap;};
|
||||
const G4LogicalVolume* GetLogicalPolyprop() const {return fLogicBoite3;};
|
||||
const G4LogicalVolume* GetLogicalKgm() const {return fLogicKgm;};
|
||||
|
||||
G4Material * GetNucleusMaterial1() {return fNucleusMaterial1;};
|
||||
G4Material * GetNucleusMaterial2() {return fNucleusMaterial2;};
|
||||
G4Material * GetNucleusMaterial3() {return fNucleusMaterial3;};
|
||||
G4Material * GetCytoplasmMaterial1() {return fCytoplasmMaterial1;};
|
||||
G4Material * GetCytoplasmMaterial2() {return fCytoplasmMaterial2;};
|
||||
G4Material * GetCytoplasmMaterial3() {return fCytoplasmMaterial3;};
|
||||
const G4Material * GetNucleusMaterial1() const {return fNucleusMaterial1;};
|
||||
const G4Material * GetNucleusMaterial2() const {return fNucleusMaterial2;};
|
||||
const G4Material * GetNucleusMaterial3() const {return fNucleusMaterial3;};
|
||||
const G4Material * GetCytoplasmMaterial1() const {return fCytoplasmMaterial1;};
|
||||
const G4Material * GetCytoplasmMaterial2() const {return fCytoplasmMaterial2;};
|
||||
const G4Material * GetCytoplasmMaterial3() const {return fCytoplasmMaterial3;};
|
||||
|
||||
CellParameterisation * GetCellParameterisation() {return fMyCellParameterisation;};
|
||||
const CellParameterisation * GetCellParameterisation() const
|
||||
{return fMyCellParameterisation;};
|
||||
|
||||
private:
|
||||
|
||||
@@ -100,34 +99,34 @@ private:
|
||||
G4double fDensityCytoplasm;
|
||||
G4int fNbOfPixelsInPhantom;
|
||||
|
||||
G4double fWorldSizeXY;
|
||||
G4double fWorldSizeZ;
|
||||
G4double fCollObjSizeXY;
|
||||
G4double fCollObjSizeZ;
|
||||
G4double fWorldSizeXY;
|
||||
G4double fWorldSizeZ;
|
||||
G4double fCollObjSizeXY;
|
||||
G4double fCollObjSizeZ;
|
||||
|
||||
G4double fCiblePositionX;
|
||||
G4double fCiblePositionY;
|
||||
G4double fCiblePositionZ;
|
||||
G4double fCiblePositionX;
|
||||
G4double fCiblePositionY;
|
||||
G4double fCiblePositionZ;
|
||||
|
||||
G4double fLineAngle;
|
||||
G4double fLineAngle;
|
||||
|
||||
// Materials
|
||||
|
||||
G4Material* fDefaultMaterial;
|
||||
G4Material* fCollimatorMaterial;
|
||||
G4Material* fBoiteMaterial;
|
||||
G4Material* fCathodeMaterial;
|
||||
G4Material* fVerreMaterial;
|
||||
G4Material* fVerre2Material;
|
||||
G4Material* fKgmMaterial;
|
||||
G4Material* fBoite2Material;
|
||||
G4Material* fBoite3Material;
|
||||
G4Material* fNucleusMaterial1;
|
||||
G4Material* fCytoplasmMaterial1;
|
||||
G4Material* fNucleusMaterial2;
|
||||
G4Material* fCytoplasmMaterial2;
|
||||
G4Material* fNucleusMaterial3;
|
||||
G4Material* fCytoplasmMaterial3;
|
||||
G4Material* fDefaultMaterial;
|
||||
G4Material* fCollimatorMaterial;
|
||||
G4Material* fBoiteMaterial;
|
||||
G4Material* fCathodeMaterial;
|
||||
G4Material* fVerreMaterial;
|
||||
G4Material* fVerre2Material;
|
||||
G4Material* fKgmMaterial;
|
||||
G4Material* fBoite2Material;
|
||||
G4Material* fBoite3Material;
|
||||
G4Material* fNucleusMaterial1;
|
||||
G4Material* fCytoplasmMaterial1;
|
||||
G4Material* fNucleusMaterial2;
|
||||
G4Material* fCytoplasmMaterial2;
|
||||
G4Material* fNucleusMaterial3;
|
||||
G4Material* fCytoplasmMaterial3;
|
||||
|
||||
// Volumes
|
||||
|
||||
@@ -211,21 +210,9 @@ private:
|
||||
|
||||
CellParameterisation * fMyCellParameterisation;
|
||||
|
||||
//
|
||||
// EM FIELD
|
||||
|
||||
static G4ThreadLocal EMField * fField;
|
||||
|
||||
G4FieldManager * fFieldMgr;
|
||||
G4MagIntegratorStepper * fStepper;
|
||||
G4EqMagElectricField * fEquation;
|
||||
G4MagInt_Driver * fIntgrDriver;
|
||||
G4ChordFinder * fChordFinder ;
|
||||
|
||||
// FROM NANOBEAM EX. TUNINGS
|
||||
|
||||
// G4PropagatorInField * fPropInField;
|
||||
|
||||
//
|
||||
|
||||
void DefineMaterials();
|
||||
G4VPhysicalVolume* ConstructLine();
|
||||
|
||||
@@ -47,10 +47,10 @@ class EventAction : public G4UserEventAction
|
||||
public:
|
||||
|
||||
EventAction(RunAction*);
|
||||
~EventAction();
|
||||
virtual ~EventAction();
|
||||
|
||||
void BeginOfEventAction(const G4Event*);
|
||||
void EndOfEventAction(const G4Event*);
|
||||
virtual void BeginOfEventAction(const G4Event*);
|
||||
virtual void EndOfEventAction(const G4Event*);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -50,25 +50,17 @@ public:
|
||||
PhysicsList();
|
||||
virtual ~PhysicsList();
|
||||
|
||||
void ConstructParticle();
|
||||
virtual void ConstructParticle();
|
||||
|
||||
virtual void ConstructProcess();
|
||||
|
||||
void SetCuts();
|
||||
void SetCutForGamma(G4double);
|
||||
void SetCutForElectron(G4double);
|
||||
void SetCutForPositron(G4double);
|
||||
|
||||
void AddPhysicsList(const G4String& name);
|
||||
void ConstructProcess();
|
||||
|
||||
void AddStepMax();
|
||||
G4StepLimiter* GetStepMaxProcess() {return fStepMaxProcess;};
|
||||
|
||||
private:
|
||||
|
||||
G4double fCutForGamma;
|
||||
G4double fCutForElectron;
|
||||
G4double fCutForPositron;
|
||||
|
||||
G4String fEmName;
|
||||
G4VPhysicsConstructor* fEmPhysicsList;
|
||||
G4VPhysicsConstructor* fDecPhysicsList;
|
||||
@@ -78,7 +70,5 @@ private:
|
||||
PhysicsListMessenger* fMessenger;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -49,24 +49,18 @@ class PhysicsListMessenger: public G4UImessenger
|
||||
public:
|
||||
|
||||
PhysicsListMessenger(PhysicsList* );
|
||||
~PhysicsListMessenger();
|
||||
virtual ~PhysicsListMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand*, G4String);
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
|
||||
PhysicsList* fPhysicsList;
|
||||
|
||||
G4UIdirectory* fPhysDir;
|
||||
G4UIcmdWithADoubleAndUnit* fGammaCutCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fElectCutCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fProtoCutCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fAllCutCmd;
|
||||
G4UIcmdWithAString* fListCmd;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -44,14 +44,14 @@ class G4Event;
|
||||
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction();
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
virtual ~PrimaryGeneratorAction();
|
||||
|
||||
void GeneratePrimaries(G4Event*);
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -48,44 +48,43 @@ class RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
RunAction(DetectorConstruction*);
|
||||
~RunAction();
|
||||
RunAction(const DetectorConstruction*);
|
||||
virtual ~RunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
void SetRndmFreq(G4int val) {fSaveRndm = val;}
|
||||
G4int GetRndmFreq() {return fSaveRndm;}
|
||||
void SetRndmFreq(G4int val) {fSaveRndm = val;}
|
||||
G4int GetRndmFreq() const {return fSaveRndm;}
|
||||
|
||||
void AddDoseN(G4double dose){ fDoseN += dose;}
|
||||
void SetDoseN(G4double dose){ fDoseN = dose;}
|
||||
G4double GetDoseN(){return fDoseN;}
|
||||
void AddDoseN(G4double dose) {fDoseN += dose;}
|
||||
void SetDoseN(G4double dose) {fDoseN = dose;}
|
||||
G4double GetDoseN() const {return fDoseN;}
|
||||
|
||||
void AddDoseC(G4double dose){ fDoseC += dose;}
|
||||
void SetDoseC(G4double dose){ fDoseC = dose;}
|
||||
G4double GetDoseC(){return fDoseC;}
|
||||
void AddDoseC(G4double dose) {fDoseC += dose;}
|
||||
void SetDoseC(G4double dose) {fDoseC = dose;}
|
||||
G4double GetDoseC() const {return fDoseC;}
|
||||
|
||||
G4int GetNumEvent(){return fNumEvent;}
|
||||
void SetNumEvent(G4int i){fNumEvent = i;}
|
||||
G4int GetNumEvent() const {return fNumEvent;}
|
||||
void SetNumEvent(G4int i) {fNumEvent = i;}
|
||||
|
||||
G4int GetNbOfHitsGas(){return fNbOfHitsGas;}
|
||||
void AddNbOfHitsGas(){fNbOfHitsGas = fNbOfHitsGas+1;}
|
||||
G4int GetNbOfHitsGas() const {return fNbOfHitsGas;}
|
||||
void AddNbOfHitsGas() {fNbOfHitsGas = fNbOfHitsGas+1;}
|
||||
|
||||
void SetMassNucleus(G4double mN){ fMassNucleus = mN;}
|
||||
G4double GetMassNucleus(){return fMassNucleus;}
|
||||
void SetMassNucleus(G4double mN) {fMassNucleus = mN;}
|
||||
G4double GetMassNucleus() const {return fMassNucleus;}
|
||||
|
||||
void SetMassCytoplasm(G4double mC){ fMassCytoplasm = mC;}
|
||||
G4double GetMassCytoplasm(){return fMassCytoplasm;}
|
||||
void SetMassCytoplasm(G4double mC) {fMassCytoplasm = mC;}
|
||||
G4double GetMassCytoplasm() const {return fMassCytoplasm;}
|
||||
|
||||
void AddDoseBox(G4int i, G4double x){ fDose3DDose[i] +=x;}
|
||||
G4double GetDoseBox(G4int i){ return fDose3DDose[i];}
|
||||
void AddDoseBox(G4int i, G4double x) {fDose3DDose[i] +=x;}
|
||||
G4double GetDoseBox(G4int i) const {return fDose3DDose[i];}
|
||||
|
||||
G4ThreeVector GetVectCell(G4int i) {return fMapVoxels[i];}
|
||||
G4ThreeVector GetVectCell(G4int i) const {return fMapVoxels[i];}
|
||||
|
||||
private:
|
||||
|
||||
DetectorConstruction* fDetector;
|
||||
CellParameterisation * fMyCellParameterisation;
|
||||
const DetectorConstruction* fDetector;
|
||||
|
||||
G4int fSaveRndm;
|
||||
G4int fNumEvent;
|
||||
|
||||
@@ -44,21 +44,19 @@
|
||||
|
||||
class SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
SteppingAction(RunAction* ,DetectorConstruction*);
|
||||
~SteppingAction();
|
||||
public:
|
||||
SteppingAction(RunAction* ,const DetectorConstruction*);
|
||||
virtual ~SteppingAction();
|
||||
|
||||
void UserSteppingAction(const G4Step*);
|
||||
virtual void UserSteppingAction(const G4Step*);
|
||||
|
||||
private:
|
||||
RunAction* fRun;
|
||||
DetectorConstruction* fDetector;
|
||||
CellParameterisation * fMyCellParameterisation;
|
||||
private:
|
||||
RunAction* fRun;
|
||||
const DetectorConstruction* fDetector;
|
||||
const CellParameterisation * fMyCellParameterisation;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user