[819] | 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 | // |
---|
[1340] | 26 | // $Id: G4InuclSpecialFunctions.hh,v 1.18 2010/09/14 17:51:36 mkelsey Exp $ |
---|
| 27 | // Geant4 tag: $Name: hadr-casc-V09-03-85 $ |
---|
[1337] | 28 | // |
---|
[1315] | 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 |
---|
[1340] | 34 | // 20100914 M. Kelsey -- Migrate to integer A and Z. Discard unused binding |
---|
| 35 | // energy functions |
---|
[1315] | 36 | |
---|
[819] | 37 | #ifndef G4INUCL_SPECIAL_FUNC_HH |
---|
| 38 | #define G4INUCL_SPECIAL_FUNC_HH |
---|
| 39 | |
---|
| 40 | #include "globals.hh" |
---|
| 41 | #include <algorithm> |
---|
| 42 | #include <vector> |
---|
[1315] | 43 | #include "G4LorentzVector.hh" |
---|
[819] | 44 | |
---|
| 45 | namespace G4InuclSpecialFunctions { |
---|
[1340] | 46 | G4double bindingEnergy(G4int A, G4int Z); |
---|
[819] | 47 | |
---|
[1340] | 48 | // NOTE: Used only by G4Fissioner |
---|
| 49 | G4double bindingEnergyAsymptotic(G4int A, G4int Z); |
---|
[819] | 50 | |
---|
[1340] | 51 | G4double FermiEnergy(G4int A, G4int Z, G4int ntype); |
---|
[819] | 52 | |
---|
[1340] | 53 | // NOTE: Passing Z as double here, to be used as interpolation argument |
---|
[1315] | 54 | void paraMaker(G4double Z, std::pair<std::vector<G4double>, std::vector<G4double> >& parms); |
---|
[819] | 55 | |
---|
[1315] | 56 | void paraMakerTruncated(G4double Z, std::pair<G4double, G4double>& parms); |
---|
[819] | 57 | |
---|
[1340] | 58 | G4double getAL(G4int A); |
---|
[819] | 59 | |
---|
| 60 | G4double csNN(G4double e); |
---|
| 61 | |
---|
| 62 | G4double csPN(G4double e); |
---|
| 63 | |
---|
[1315] | 64 | G4double G4cbrt(G4double x); // Can't use "cbrt" name, clashes with <math.h> |
---|
| 65 | |
---|
[819] | 66 | G4double inuclRndm(); |
---|
| 67 | |
---|
| 68 | G4double randomGauss(G4double sigma); |
---|
| 69 | |
---|
| 70 | G4double randomPHI(); |
---|
| 71 | |
---|
| 72 | std::pair<G4double, G4double> randomCOS_SIN(); |
---|
| 73 | |
---|
[1340] | 74 | G4double nucleiLevelDensity(G4int A); |
---|
[819] | 75 | |
---|
[1315] | 76 | // Optional mass argument will be used to fill G4LorentzVector correctly |
---|
| 77 | G4LorentzVector generateWithFixedTheta(G4double ct, G4double p, |
---|
| 78 | G4double m=0.); |
---|
| 79 | |
---|
| 80 | G4LorentzVector generateWithRandomAngles(G4double p, G4double m=0.); |
---|
[819] | 81 | } |
---|
[1315] | 82 | |
---|
| 83 | |
---|
[819] | 84 | #endif |
---|