source: trunk/source/processes/hadronic/models/cascade/cascade/include/G4InuclSpecialFunctions.hh @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.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// $Id: G4InuclSpecialFunctions.hh,v 1.17 2010/06/25 09:43:32 gunter Exp $
27// Geant4 tag: $Name: geant4-09-04-beta-01 $
28//
29// 20100114  M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
30// 20100319  M. Kelsey -- Add optional mass argument to generateWithFixedTheta;
31//              define new generateWithRandomAngles, encapsulating code; define
32//              cbrt() cube-root function (in math.h, but not in <math>!)
33// 20100412  M. Kelsey -- Modify paraMaker[Truncated] to take buffer as argument
34
35#ifndef G4INUCL_SPECIAL_FUNC_HH
36#define G4INUCL_SPECIAL_FUNC_HH
37
38#include "globals.hh"
39#include <algorithm>
40#include <vector>
41#include "G4LorentzVector.hh"
42
43namespace G4InuclSpecialFunctions {
44
45  G4double bindingEnergyExact(G4double A, 
46                              G4double Z);
47
48  G4double bindingEnergyKummel(G4double A, 
49                               G4double Z);
50
51  G4double bindingEnergy(G4double A, 
52                         G4double Z);
53
54  G4double bindingEnergyAsymptotic(G4double A, 
55                                   G4double Z);
56
57  G4double FermiEnergy(G4double A, 
58                       G4double Z, 
59                       G4int ntype);
60 
61  void paraMaker(G4double Z, std::pair<std::vector<G4double>, std::vector<G4double> >& parms);
62
63  void paraMakerTruncated(G4double Z, std::pair<G4double, G4double>& parms); 
64
65  G4double getAL(G4double A);
66 
67  G4double csNN(G4double e);
68
69  G4double csPN(G4double e);
70
71  G4double G4cbrt(G4double x);  // Can't use "cbrt" name, clashes with <math.h>
72
73  G4double inuclRndm();
74
75  G4double randomGauss(G4double sigma);
76
77  G4double randomPHI();
78
79  std::pair<G4double, G4double> randomCOS_SIN();
80
81  G4double nucleiLevelDensity(G4double a);
82
83  // Optional mass argument will be used to fill G4LorentzVector correctly
84  G4LorentzVector generateWithFixedTheta(G4double ct, G4double p,
85                                         G4double m=0.);
86
87  G4LorentzVector generateWithRandomAngles(G4double p, G4double m=0.);
88}
89
90
91#endif
Note: See TracBrowser for help on using the repository browser.