| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | //
|
|---|
| 27 | //
|
|---|
| 28 | // Hadronic Process: Alpha Inelastic Process
|
|---|
| 29 | // J.L. Chuma, TRIUMF, 25-Feb-1997
|
|---|
| 30 | // Last modified: 27-Mar-1997
|
|---|
| 31 | // J.L. Chuma, 08-May-2001: Update original incident passed back in vec[0]
|
|---|
| 32 | // from NuclearReaction
|
|---|
| 33 | //
|
|---|
| 34 | #include "G4LEAlphaInelastic.hh"
|
|---|
| 35 | #include "Randomize.hh"
|
|---|
| 36 | #include "G4Electron.hh"
|
|---|
| 37 |
|
|---|
| 38 | G4HadFinalState *
|
|---|
| 39 | G4LEAlphaInelastic::ApplyYourself( const G4HadProjectile &aTrack,
|
|---|
| 40 | G4Nucleus &targetNucleus )
|
|---|
| 41 | {
|
|---|
| 42 | theParticleChange.Clear();
|
|---|
| 43 | G4double A = targetNucleus.GetN();
|
|---|
| 44 | G4double Z = targetNucleus.GetZ();
|
|---|
| 45 |
|
|---|
| 46 | G4double kineticEnergy = aTrack.Get4Momentum().e()-aTrack.GetDefinition()->GetPDGMass();
|
|---|
| 47 | if( verboseLevel > 1 )
|
|---|
| 48 | {
|
|---|
| 49 | const G4Material *targetMaterial = aTrack.GetMaterial();
|
|---|
| 50 | G4cout << "G4LEAlphaInelastic::ApplyYourself called" << G4endl;
|
|---|
| 51 | G4cout << "kinetc energy = " <<kineticEnergy/MeV << "MeV, ";
|
|---|
| 52 | G4cout << "target material = " << targetMaterial->GetName() << G4endl;
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | // Work-around for lack of model above 100 MeV
|
|---|
| 56 | if (kineticEnergy/MeV > 100. || kineticEnergy <= 0.1*MeV)
|
|---|
| 57 | {
|
|---|
| 58 | theParticleChange.SetStatusChange(isAlive);
|
|---|
| 59 | theParticleChange.SetEnergyChange(aTrack.GetKineticEnergy());
|
|---|
| 60 | theParticleChange.SetMomentumChange(aTrack.Get4Momentum().vect().unit());
|
|---|
| 61 | return &theParticleChange;
|
|---|
| 62 | }
|
|---|
| 63 | G4double theAtomicMass = targetNucleus.AtomicMass( A, Z );
|
|---|
| 64 | G4double massVec[9];
|
|---|
| 65 | massVec[0] = targetNucleus.AtomicMass( A+4.0, Z+2.0 );
|
|---|
| 66 | massVec[1] = targetNucleus.AtomicMass( A+3.0, Z+2.0 );
|
|---|
| 67 | massVec[2] = targetNucleus.AtomicMass( A+3.0, Z+1.0 );
|
|---|
| 68 | massVec[3] = targetNucleus.AtomicMass( A+2.0, Z+1.0 );
|
|---|
| 69 | massVec[4] = targetNucleus.AtomicMass( A+1.0, Z+1.0 );
|
|---|
| 70 | massVec[5] = theAtomicMass;
|
|---|
| 71 | massVec[6] = targetNucleus.AtomicMass( A+2.0, Z+2.0 );
|
|---|
| 72 | massVec[7] = massVec[3];
|
|---|
| 73 | massVec[8] = targetNucleus.AtomicMass( A+2.0, Z );
|
|---|
| 74 | //
|
|---|
| 75 | G4FastVector<G4ReactionProduct,4> vec; // vec will contain the secondary particles
|
|---|
| 76 | G4int vecLen = 0;
|
|---|
| 77 | vec.Initialize( 0 );
|
|---|
| 78 | //
|
|---|
| 79 | theReactionDynamics.NuclearReaction( vec, vecLen, &aTrack,
|
|---|
| 80 | targetNucleus, theAtomicMass, massVec );
|
|---|
| 81 | //
|
|---|
| 82 | G4double p = vec[0]->GetMomentum().mag();
|
|---|
| 83 | theParticleChange.SetMomentumChange( vec[0]->GetMomentum() *(1./p));
|
|---|
| 84 | theParticleChange.SetEnergyChange( vec[0]->GetKineticEnergy() );
|
|---|
| 85 | delete vec[0];
|
|---|
| 86 | //
|
|---|
| 87 | G4DynamicParticle *pd;
|
|---|
| 88 | for( G4int i=1; i<vecLen; ++i )
|
|---|
| 89 | {
|
|---|
| 90 | pd = new G4DynamicParticle();
|
|---|
| 91 | pd->SetDefinition( vec[i]->GetDefinition() );
|
|---|
| 92 | pd->SetMomentum( vec[i]->GetMomentum() );
|
|---|
| 93 | theParticleChange.AddSecondary( pd );
|
|---|
| 94 | delete vec[i];
|
|---|
| 95 | }
|
|---|
| 96 | //
|
|---|
| 97 | return &theParticleChange;
|
|---|
| 98 | }
|
|---|
| 99 |
|
|---|
| 100 | /* end of file */
|
|---|
| 101 |
|
|---|