source: trunk/source/processes/hadronic/models/util/include/G4Fancy3DNucleus.hh@ 1344

Last change on this file since 1344 was 1340, checked in by garnier, 15 years ago

update ti head

File size: 4.4 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//
27//
28#ifndef G4Fancy3DNucleus_h
29#define G4Fancy3DNucleus_h 1
30
31// ------------------------------------------------------------
32// GEANT 4 class header file
33//
34// ---------------- G4Fancy3DNucleus ----------------
35// by Gunter Folger, May 1998.
36// class for a 3D nucleus, arranging nucleons in space and momentum.
37// ------------------------------------------------------------
38
39#include "globals.hh"
40#include "G4DynamicParticle.hh"
41#include "G4V3DNucleus.hh"
42#include "G4Nucleon.hh"
43#include "G4VNuclearDensity.hh"
44#include "G4FermiMomentum.hh"
45#include <vector>
46
47// to test if we can drop old interface for (A,Z), comment next line..
48//#define NON_INTEGER_A_Z 1
49
50class G4Fancy3DNucleus : public G4V3DNucleus
51{
52
53 public:
54 G4Fancy3DNucleus();
55 ~G4Fancy3DNucleus();
56
57 private:
58 G4Fancy3DNucleus(const G4Fancy3DNucleus &right);
59 const G4Fancy3DNucleus & operator=(const G4Fancy3DNucleus &right);
60 int operator==(const G4Fancy3DNucleus &right) const;
61 int operator!=(const G4Fancy3DNucleus &right) const;
62
63
64// Implementation
65 void ChooseNucleons();
66 void ChoosePositions();
67 void ChooseFermiMomenta();
68 G4double BindingEnergy();
69 G4bool ReduceSum(G4ThreeVector * momentum, G4double *);
70
71 public:
72#if defined(NON_INTEGER_A_Z)
73 void Init(G4double theA, G4double theZ);
74#endif
75 void Init(G4int theA, G4int theZ);
76 G4bool StartLoop();
77 G4Nucleon * GetNextNucleon();
78 const std::vector<G4Nucleon *> & GetNucleons();
79 G4int GetMassNumber();
80 G4double GetMass();
81 G4int GetCharge();
82 G4double GetNuclearRadius();
83 G4double GetNuclearRadius(const G4double maxRelativeDensity);
84 G4double GetOuterRadius();
85 G4double CoulombBarrier();
86 void DoLorentzBoost(const G4LorentzVector & theBoost);
87 void DoLorentzBoost(const G4ThreeVector & theBeta);
88 void DoLorentzContraction(const G4LorentzVector & theBoost);
89 void DoLorentzContraction(const G4ThreeVector & theBeta);
90 void CenterNucleons();
91 void DoTranslation(const G4ThreeVector & theShift);
92 const G4VNuclearDensity * GetNuclearDensity() const;
93 void SortNucleonsIncZ(); // on increased Z-coordinates Uzhi 29.08.08
94 void SortNucleonsDecZ(); // on decreased Z-coordinates Uzhi 29.08.08
95
96 private:
97
98 G4int myA;
99 G4int myZ;
100 G4Nucleon * theNucleons;
101 std::vector<G4Nucleon *> theRWNucleons; // should not have two...
102 struct DeleteNucleon{ void operator()(G4Nucleon *aN){delete aN;} };
103 G4int currentNucleon;
104 G4VNuclearDensity * theDensity;
105 G4FermiMomentum theFermi;
106 const G4double nucleondistance;
107};
108
109inline G4int G4Fancy3DNucleus::GetCharge()
110{
111 return myZ;
112}
113
114inline G4int G4Fancy3DNucleus::GetMassNumber()
115{
116 return myA;
117}
118#endif
119
120
Note: See TracBrowser for help on using the repository browser.