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,10 +47,9 @@ class ActionInitialization : public G4VUserActionInitialization
void BuildForMaster() const override;
void Build() const override;
};
}
} // namespace B3a
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -34,7 +34,6 @@
#include "globals.hh"
class G4VPhysicalVolume;
class G4LogicalVolume;
namespace B3
{
@@ -60,9 +59,8 @@ class DetectorConstruction : public G4VUserDetectorConstruction
G4bool fCheckOverlaps = true;
};
}
} // namespace B3
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
+3 -5
View File
@@ -50,8 +50,8 @@ class EventAction : public G4UserEventAction
EventAction(RunAction* runAction);
~EventAction() override = default;
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
private:
RunAction* fRunAction = nullptr;
@@ -59,10 +59,8 @@ class EventAction : public G4UserEventAction
G4int fCollID_patient = -1;
};
}
} // namespace B3a
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
+6 -7
View File
@@ -42,18 +42,17 @@ namespace B3
/// - G4RadioactiveDecayPhysics
/// - G4EmStandardPhysics
class PhysicsList: public G4VModularPhysicsList
class PhysicsList : public G4VModularPhysicsList
{
public:
PhysicsList();
~PhysicsList() override = default;
public:
PhysicsList();
~PhysicsList() override = default;
void SetCuts() override;
void SetCuts() override;
};
}
} // namespace B3
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -31,7 +31,6 @@
#define B3PrimaryGeneratorAction_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ParticleGun.hh"
#include "globals.hh"
class G4ParticleGun;
@@ -60,7 +59,7 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
G4ParticleGun* fParticleGun = nullptr;
};
}
} // namespace B3
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+8 -6
View File
@@ -31,9 +31,12 @@
#define B3aRunAction_h 1
#include "G4UserRunAction.hh"
#include "G4Accumulable.hh"
#include "globals.hh"
class G4Run;
namespace B3a
{
@@ -46,19 +49,18 @@ class RunAction : public G4UserRunAction
~RunAction() override = default;
void BeginOfRunAction(const G4Run*) override;
void EndOfRunAction(const G4Run*) override;
void EndOfRunAction(const G4Run*) override;
void CountEvent() { fGoodEvents += 1; };
void CountEvent() { fGoodEvents += 1; };
void SumDose(G4double dose) { fSumDose += dose; };
private:
G4Accumulable<G4int> fGoodEvents = 0;
private:
G4Accumulable<G4int> fGoodEvents = 0;
G4Accumulable<G4double> fSumDose = 0.;
};
}
} // namespace B3a
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -31,7 +31,10 @@
#define B3StackingAction_h 1
#include "G4UserStackingAction.hh"
#include "globals.hh"
#include "G4ClassificationOfNewTrack.hh"
class G4Track;
namespace B3
{
@@ -50,9 +53,8 @@ class StackingAction : public G4UserStackingAction
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*) override;
};
}
} // namespace B3
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif