Import Geant4 11.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2024-06-28 13:08:51 +02:00
parent f7b23877ed
commit e58e650b32
5232 changed files with 239416 additions and 244360 deletions
@@ -47,5 +47,3 @@ class B1ActionInitialization : public G4VUserActionInitialization
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -45,14 +45,13 @@ class B1DetectorConstruction : public G4VUserDetectorConstruction
virtual ~B1DetectorConstruction();
virtual G4VPhysicalVolume* Construct();
G4LogicalVolume* GetScoringVolume() const { return fScoringVolume; }
protected:
G4LogicalVolume* fScoringVolume;
G4LogicalVolume* fScoringVolume;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -41,18 +41,16 @@ class B1EventAction : public G4UserEventAction
public:
B1EventAction();
virtual ~B1EventAction();
virtual void BeginOfEventAction(const G4Event* event);
virtual void EndOfEventAction(const G4Event* event);
void AddEdep(G4double edep) { fEdep += edep; }
private:
G4double fEdep;
G4double fEdep;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -30,8 +30,8 @@
#ifndef B1PrimaryGeneratorAction_h
#define B1PrimaryGeneratorAction_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ParticleGun.hh"
#include "G4VUserPrimaryGeneratorAction.hh"
#include "globals.hh"
class G4ParticleGun;
@@ -40,28 +40,26 @@ class G4Box;
/// The primary generator action class with particle gun.
///
/// The default kinematic is a 6 MeV gamma, randomly distribued
/// The default kinematic is a 6 MeV gamma, randomly distribued
/// in front of the phantom across 80% of the (X,Y) phantom size.
class B1PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
B1PrimaryGeneratorAction();
B1PrimaryGeneratorAction();
virtual ~B1PrimaryGeneratorAction();
// method from the base class
virtual void GeneratePrimaries(G4Event*);
virtual void GeneratePrimaries(G4Event*);
// method to access particle gun
const G4ParticleGun* GetParticleGun() const { return fParticleGun; }
private:
G4ParticleGun* fParticleGun; // pointer a to G4 gun class
G4ParticleGun* fParticleGun; // pointer a to G4 gun class
G4Box* fEnvelopeBox;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -46,19 +46,18 @@ class B1Run : public G4Run
// method from the base class
virtual void Merge(const G4Run*);
void AddEdep (G4double edep);
void AddEdep(G4double edep);
// get methods
G4double GetEdep() const { return fEdep; }
G4double GetEdep() const { return fEdep; }
G4double GetEdep2() const { return fEdep2; }
private:
G4double fEdep;
G4double fEdep2;
G4double fEdep;
G4double fEdep2;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -38,7 +38,7 @@ class G4LogicalVolume;
/// Run action class
///
/// In EndOfRunAction(), it calculates the dose in the selected volume
/// In EndOfRunAction(), it calculates the dose in the selected volume
/// from the energy deposit accumulated via stepping and event actions.
/// The computed dose is then printed on the screen.
@@ -50,10 +50,9 @@ class B1RunAction : public G4UserRunAction
virtual G4Run* GenerateRun();
virtual void BeginOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
virtual void EndOfRunAction(const G4Run*);
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -38,7 +38,7 @@ class B1EventAction;
class G4LogicalVolume;
/// Stepping action class
///
///
class B1SteppingAction : public G4UserSteppingAction
{
@@ -50,7 +50,7 @@ class B1SteppingAction : public G4UserSteppingAction
virtual void UserSteppingAction(const G4Step*);
private:
B1EventAction* fEventAction;
B1EventAction* fEventAction;
G4LogicalVolume* fScoringVolume;
};
@@ -33,9 +33,9 @@
#include "G4VUserVisAction.hh"
class UVA_VisAction: public G4VUserVisAction {
virtual void Draw();
class UVA_VisAction : public G4VUserVisAction
{
virtual void Draw();
};
#endif