G4NeutronCaptureAtRest.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //   G4NeutronCaptureAtRest physics process
00027 //   Larry Felawka (TRIUMF), April 1998
00028 //---------------------------------------------------------------------
00029 
00030 #ifndef G4NeutronCaptureAtRest_h
00031 #define G4NeutronCaptureAtRest_h 1
00032 
00033 // Class Description:
00034 //
00035 // Process for capture of neutrons at rest. 
00036 // To be used in your physics list in case you need this physics.
00037 
00038  
00039 #include "globals.hh"
00040 #include "Randomize.hh" 
00041 #include "G4VRestProcess.hh"
00042 #include "G4VParticleChange.hh"
00043 #include "G4ParticleDefinition.hh"
00044 #include "G4GHEKinematicsVector.hh"
00045 #include "G4HadronicProcessType.hh"
00046 
00047 class G4NeutronCaptureAtRest : public G4VRestProcess
00048  
00049 { 
00050   private:
00051   // hide assignment operator as private 
00052       G4NeutronCaptureAtRest& operator=(const G4NeutronCaptureAtRest &right);
00053       G4NeutronCaptureAtRest(const G4NeutronCaptureAtRest& );
00054    
00055   public:
00056  
00057      G4NeutronCaptureAtRest(const G4String& processName ="NeutronCaptureAtRest", 
00058                        G4ProcessType   aType = fHadronic );
00059  
00060     ~G4NeutronCaptureAtRest();
00061 
00062      G4bool IsApplicable(const G4ParticleDefinition&);
00063 
00064      void PreparePhysicsTable(const G4ParticleDefinition&);
00065 
00066   // null physics table
00067      void BuildPhysicsTable(const G4ParticleDefinition&);
00068 
00069      G4double AtRestGetPhysicalInteractionLength(const G4Track&,
00070                                                  G4ForceCondition*);
00071 
00072   // zero mean lifetime
00073      G4double GetMeanLifeTime(const G4Track& ,
00074                               G4ForceCondition* ) {return 0.0;}
00075 
00076      G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&); 
00077 
00078   // return number of secondaries produced
00079      G4int GetNumberOfSecondaries();
00080 
00081   // pointer to array containg kinematics of secondaries
00082      G4GHEKinematicsVector* GetSecondaryKinematics();
00083 
00084   private:
00085 
00086      void GenerateSecondaries();
00087      void Normal( G4float* );
00088      void NeutronCapture( G4int* );
00089      G4double AtomAs( G4float, G4float );
00090 
00091   private:
00092 
00093 // global time-of-flight of stopped hadron
00094      G4float  globalTime;
00095 
00096 // atomic mass of target nucleus
00097      G4float  targetAtomicMass;
00098 
00099 // charge of target nucleus
00100      G4float  targetCharge;
00101 
00102      G4GHEKinematicsVector* pv;
00103      G4GHEKinematicsVector* eve;
00104      G4GHEKinematicsVector* gkin;
00105 
00106      G4int    ngkine;
00107 
00108      G4int    ntot;
00109      G4GHEKinematicsVector result;
00110 
00111      G4float  massProton;
00112      G4float  massNeutron;
00113      G4float  massElectron;
00114      G4float  massDeuteron;
00115      G4float  massAlpha;
00116 
00117      G4ParticleDefinition* pdefGamma;
00118      G4ParticleDefinition* pdefNeutron;
00119 
00120 };
00121 
00122 #endif
00123  

Generated on Mon May 27 17:48:58 2013 for Geant4 by  doxygen 1.4.7