Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:07

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // Hadronic Process: Nuclear De-excitations
0029 // by V. Lara
0030 
0031 #ifndef G4StatMFChannel_h
0032 #define G4StatMFChannel_h 1
0033 
0034 #include <deque>
0035 #include <vector>
0036 
0037 #include "G4StatMFParameters.hh"
0038 #include "G4StatMFFragment.hh"
0039 
0040 
0041 class G4StatMFChannel {
0042 
0043 public:
0044     // Default Constructor
0045     G4StatMFChannel();
0046 
0047     // Destructor
0048     ~G4StatMFChannel();
0049 
0050 private:
0051 
0052     // Copy constructor
0053     G4StatMFChannel(const G4StatMFChannel & right);
0054 
0055     // operators
0056     G4StatMFChannel & operator=(const G4StatMFChannel & right);
0057 
0058     G4bool operator==(const G4StatMFChannel & right) const;
0059     G4bool operator!=(const G4StatMFChannel & right) const;
0060     
0061 public:
0062 
0063     void CreateFragment(G4int A, G4int Z);
0064     
0065     inline size_t GetMultiplicity(void) { return _theFragments.size();}
0066     
0067     // Return false if there is some unphysical fragment
0068     G4bool CheckFragments(void);
0069 
0070     G4double GetFragmentsCoulombEnergy(void);
0071 
0072     G4double GetFragmentsEnergy(G4double T) const;
0073     
0074     G4FragmentVector * GetFragments(G4int anA, G4int anZ, G4double T);
0075     
0076 private:
0077 
0078     // This method calculates asymptotic fragments momenta.
0079     void CoulombImpulse(G4int anA, G4int anZ, G4double T);
0080     
0081     void PlaceFragments(G4int anA);
0082 
0083     void SolveEqOfMotion(G4int anA, G4int anZ, G4double T);
0084 
0085     // Calculates fragments momentum components at the breakup instant.
0086     // Fragment kinetic energies will be calculated according to the
0087     // Boltzamann distribution at given temperature.
0088     void FragmentsMomenta(G4int NF, G4int idx, G4double T); 
0089 
0090     // Rotates a 3-vector P to close momentum triangle Pa + V + P = 0
0091     G4ThreeVector RotateMomentum(G4ThreeVector Pa, G4ThreeVector V, 
0092                  G4ThreeVector P);
0093 
0094 private:
0095 
0096     std::deque<G4StatMFFragment*> _theFragments;
0097     std::vector<G4ThreeVector> Pos;
0098     std::vector<G4ThreeVector> Vel;
0099     std::vector<G4ThreeVector> Accel;
0100 
0101     G4int _NumOfNeutralFragments;
0102     
0103     G4int _NumOfChargedFragments;
0104 
0105   struct DeleteFragment 
0106   {
0107     template<typename T>
0108     void operator()(const T* ptr) const
0109     {
0110       delete ptr;
0111     }
0112   };
0113 
0114 };
0115 
0116 #endif
0117 
0118 
0119 
0120 
0121 
0122 
0123