source: trunk/source/processes/hadronic/models/de_excitation/fission/include/G4ParaFissionModel.hh @ 819

Last change on this file since 819 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 5.1 KB
Line 
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#ifndef G4ParaFissionModel_h
27#define G4ParaFissionModel_h
28
29#include "G4CompetitiveFission.hh"
30#include "G4ExcitationHandler.hh"
31#include "G4HadronicInteraction.hh"
32#include "G4ParticleTable.hh"
33
34// Class Description
35// Final state production model for (based on evaluated data
36// libraries) description of neutron induced fission below 60 MeV;
37// In case you need the fission fragments, use this model.
38// To be used in your physics list in case you need this physics.
39// In this case you want to register an object of this class with
40// the corresponding process.
41
42
43class G4ParaFissionModel : public G4HadronicInteraction
44{
45public:
46  G4ParaFissionModel()
47  {
48    SetMinEnergy( 0.0 );
49    SetMaxEnergy( 60.*MeV );
50  }
51 
52  virtual G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, 
53                                              G4Nucleus& theNucleus)
54  {
55    theParticleChange.Clear();
56    theParticleChange.SetStatusChange( stopAndKill );
57    theParticleChange.SetEnergyChange( 0.0 );
58   
59    // prepare the fragment
60
61    G4Fragment anInitialState;
62    G4double anA = theNucleus.GetN();
63    G4double aZ = theNucleus.GetZ();
64    G4double nucMass = G4ParticleTable::GetParticleTable()->GetIonTable()->GetIonMass(G4int(aZ) ,G4int(anA));
65     
66    anA += aTrack.GetDefinition()->GetBaryonNumber();
67    aZ += aTrack.GetDefinition()->GetPDGCharge();
68     
69    G4int numberOfEx = aTrack.GetDefinition()->GetBaryonNumber();
70    G4int numberOfCh = G4int(std::abs(aTrack.GetDefinition()->GetPDGCharge()));
71    G4int numberOfHoles = 0;
72     
73    G4ThreeVector exciton3Momentum = aTrack.Get4Momentum().vect();
74    G4double compoundMass = aTrack.GetTotalEnergy();
75    compoundMass += nucMass;
76    compoundMass = std::sqrt(compoundMass*compoundMass - exciton3Momentum*exciton3Momentum);
77    G4LorentzVector fragment4Momentum(exciton3Momentum, 
78                               std::sqrt(exciton3Momentum.mag2()+compoundMass*compoundMass));
79   
80    anInitialState.SetA(anA);
81    anInitialState.SetZ(aZ);
82    anInitialState.SetNumberOfParticles(numberOfEx-numberOfHoles);
83    anInitialState.SetNumberOfCharged(numberOfCh);
84    anInitialState.SetNumberOfHoles(numberOfHoles);
85    anInitialState.SetMomentum(fragment4Momentum);
86
87    // do the fission
88    G4FragmentVector * theFissionResult = theFission.BreakUp(anInitialState);
89   
90    // deexcite the fission fragments and fill result
91
92    G4int ll = theFissionResult->size();
93    for(G4int i=0; i<ll; i++)
94    {
95      G4ReactionProductVector* theExcitationResult = 0; 
96      G4Fragment* aFragment = (*theFissionResult)[i];
97      if(aFragment->GetExcitationEnergy()>1.*eV)
98      {
99        theExcitationResult = theHandler.BreakItUp(*aFragment);
100
101        // add secondaries
102        for(G4int j = 0; j < G4int(theExcitationResult->size()); j++)
103        {
104          G4ReactionProduct* rp0 = (*theExcitationResult)[j];
105          G4DynamicParticle* p0 = new G4DynamicParticle;
106          p0->SetDefinition(rp0->GetDefinition() );
107          p0->SetMomentum(rp0->GetMomentum() );
108          theParticleChange.AddSecondary(p0);
109          delete rp0;
110        }
111        delete theExcitationResult;
112      }
113      else
114      {
115        // add secondary
116        G4DynamicParticle* p0 = new G4DynamicParticle;
117        p0->SetDefinition(aFragment->GetParticleDefinition());
118        p0->SetMomentum(aFragment->GetMomentum().vect());
119        theParticleChange.AddSecondary(p0);
120      }
121      delete aFragment;
122    }
123
124    delete theFissionResult;
125   
126    return &theParticleChange;
127  }
128private:
129
130  G4CompetitiveFission theFission;
131  G4ExcitationHandler theHandler;
132 
133  G4HadFinalState theParticleChange;
134};
135#endif
Note: See TracBrowser for help on using the repository browser.