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

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

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

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