Geant4 Cross Reference |
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: Nuclear De-excitations 29 // by V. Lara 30 31 #ifndef G4StatMFFragment_h 32 #define G4StatMFFragment_h 1 33 34 #include "G4StatMFParameters.hh" 35 #include "G4ThreeVector.hh" 36 #include "G4ParticleTable.hh" 37 #include "G4IonTable.hh" 38 #include "G4Fragment.hh" 39 40 class G4StatMFFragment { 41 42 public: 43 // Constructor 44 G4StatMFFragment(G4int anA, G4int aZ) : 45 theA(anA),theZ(aZ), 46 _position(0.0,0.0,0.0), 47 _momentum(0.0,0.0,0.0) 48 {} 49 50 51 // Destructor 52 virtual ~G4StatMFFragment() {}; 53 54 55 private: 56 // Default constructor 57 G4StatMFFragment(){}; 58 59 // Copy constructor 60 G4StatMFFragment(const G4StatMFFragment & right); 61 62 // operators 63 G4StatMFFragment & operator=(const G4StatMFFragment & right); 64 public: 65 G4bool operator==(const G4StatMFFragment & right) const; 66 G4bool operator!=(const G4StatMFFragment & right) const; 67 68 public: 69 70 G4double GetCoulombEnergy(void) const; 71 72 G4double GetEnergy(const G4double T) const; 73 74 G4double GetInvLevelDensity(void) const; 75 76 G4int GetA(void) const {return theA;} 77 78 G4int GetZ(void) const {return theZ;} 79 80 void SetPosition(const G4ThreeVector& aPosition) {_position = aPosition;} 81 82 G4ThreeVector& GetPosition(void) {return _position;} 83 84 void SetMomentum(const G4ThreeVector& aMomentum) {_momentum = aMomentum;} 85 86 G4ThreeVector& GetMomentum(void) {return _momentum;} 87 88 G4Fragment * GetFragment(const G4double T); 89 90 G4double GetNuclearMass(void) 91 {return G4ParticleTable::GetParticleTable()->GetIonTable() 92 ->GetIonMass(theZ, theA);} 93 94 95 private: 96 97 G4double CalcExcitationEnergy(const G4double T); 98 99 private: 100 101 G4int theA; 102 103 G4int theZ; 104 105 G4ThreeVector _position; 106 107 G4ThreeVector _momentum; 108 }; 109 110 #endif 111 112