Import Geant4 11.2.1 source tree

This commit is contained in:
Gabriele Cosmo
2024-02-16 14:58:45 +01:00
parent 860a2b92bf
commit dda54bbdcf
331 changed files with 48457 additions and 50699 deletions
@@ -74,7 +74,7 @@ void PrimaryGeneratorAction::SetDefaultKinematic()
fParticleGun->SetParticleDefinition(particle);
fParticleGun->SetParticleMomentumDirection(G4ThreeVector(1.,0.,0.));
fParticleGun->SetParticleEnergy(30.*MeV);
G4double x0 = -0.5*(fDetector->GetWorldSizeX());
G4double x0 = -0.4999*(fDetector->GetWorldSizeX());
fParticleGun->SetParticlePosition(G4ThreeVector(x0, 0.0, 0.0));
}
@@ -130,7 +130,7 @@ void TrackingAction::PostUserTrackingAction(const G4Track* aTrack)
else if (reflect && charged) id = 32;
else if (reflect && neutral) id = 42;
if (id>0) {
if (id>0 && std::abs(direction.x()) < 1.0) {
G4double theta = std::acos(direction.x());
if (theta > 0.0) {
G4double dteta = analysisManager->GetH1Width(id);
@@ -155,7 +155,7 @@ void TrackingAction::PostUserTrackingAction(const G4Track* aTrack)
else if (transmit && neutral) id = 21;
else if (reflect && neutral) id = 41;
if (id>0) {
if (id>0 && std::abs(direction.x()) < 1.0) {
G4double theta = std::acos(direction.x());
if (theta > 0.0) {
G4double dteta = analysisManager->GetH1Width(id);