G4StatMFChannel.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 //
00027 // $Id$
00028 //
00029 // Hadronic Process: Nuclear De-excitations
00030 // by V. Lara
00031 
00032 #ifndef G4StatMFChannel_h
00033 #define G4StatMFChannel_h 1
00034 
00035 #include <deque>
00036 
00037 #include "G4StatMFParameters.hh"
00038 #include "G4StatMFFragment.hh"
00039 
00040 
00041 class G4StatMFChannel {
00042 
00043 public:
00044     // Default Constructor
00045     G4StatMFChannel();
00046 
00047     // Destructor
00048     ~G4StatMFChannel();
00049 
00050 private:
00051 
00052     // Copy constructor
00053     G4StatMFChannel(const G4StatMFChannel & right);
00054 
00055     // operators
00056     G4StatMFChannel & operator=(const G4StatMFChannel & right);
00057 
00058     G4bool operator==(const G4StatMFChannel & right) const;
00059     G4bool operator!=(const G4StatMFChannel & right) const;
00060         
00061 public:
00062 
00063     void CreateFragment(G4int A, G4int Z);
00064         
00065     inline size_t GetMultiplicity(void) { return _theFragments.size();}
00066         
00067     // Return false if there is some unphysical fragment
00068     G4bool CheckFragments(void);
00069 
00070     G4double GetFragmentsCoulombEnergy(void);
00071 
00072     G4double GetFragmentsEnergy(G4double T) const;
00073         
00074     G4FragmentVector * GetFragments(G4int anA, G4int anZ, G4double T);
00075         
00076 private:
00077 
00078     // This method calculates asymptotic fragments momenta.
00079     void CoulombImpulse(G4int anA, G4int anZ, G4double T);
00080         
00081     void PlaceFragments(G4int anA);
00082 
00083     void SolveEqOfMotion(G4int anA, G4int anZ, G4double T);
00084 
00085     // Calculates fragments momentum components at the breakup instant.
00086     // Fragment kinetic energies will be calculated according to the
00087     // Boltzamann distribution at given temperature.
00088     void FragmentsMomenta(G4int NF, G4int idx, G4double T);     
00089 
00090 
00091     // Samples a isotropic random vectorwith a magnitud given by Magnitude.
00092     // By default Magnitude = 1
00093     G4ThreeVector IsotropicVector(G4double Magnitude = 1.0);
00094 
00095 
00096     // Rotates a 3-vector P to close momentum triangle Pa + V + P = 0
00097     G4ThreeVector RotateMomentum(G4ThreeVector Pa, G4ThreeVector V, 
00098                                  G4ThreeVector P);
00099 
00100 private:
00101 
00102     std::deque<G4StatMFFragment*> _theFragments;
00103 
00104     G4int _NumOfNeutralFragments;
00105         
00106     G4int _NumOfChargedFragments;
00107 
00108   struct DeleteFragment 
00109   {
00110     template<typename T>
00111     void operator()(const T* ptr) const
00112     {
00113       delete ptr;
00114     }
00115   };
00116 
00117 };
00118 
00119 #endif
00120 
00121 
00122 
00123 
00124 
00125 
00126 

Generated on Mon May 27 17:49:53 2013 for Geant4 by  doxygen 1.4.7