Changeset 1315 for trunk/source/processes/hadronic/models/cascade/cascade/include/G4InuclSpecialFunctions.hh
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/cascade/cascade/include/G4InuclSpecialFunctions.hh
r962 r1315 23 23 // * acceptance of all terms of the Geant4 Software license. * 24 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 $ 25 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 26 34 #ifndef G4INUCL_SPECIAL_FUNC_HH 27 35 #define G4INUCL_SPECIAL_FUNC_HH 28 36 29 37 #include "globals.hh" 30 #include <cmath>31 38 #include <algorithm> 32 39 #include <vector> 33 #include "G4 CascadeMomentum.hh"40 #include "G4LorentzVector.hh" 34 41 35 42 namespace G4InuclSpecialFunctions { … … 51 58 G4int ntype); 52 59 53 std::pair<std::vector<G4double>, std::vector<G4double> > paraMaker(G4double Z);60 void paraMaker(G4double Z, std::pair<std::vector<G4double>, std::vector<G4double> >& parms); 54 61 55 std::pair<G4double, G4double> paraMakerTruncated(G4double Z);62 void paraMakerTruncated(G4double Z, std::pair<G4double, G4double>& parms); 56 63 57 64 G4double getAL(G4double A); … … 60 67 61 68 G4double csPN(G4double e); 69 70 G4double G4cbrt(G4double x); // Can't use "cbrt" name, clashes with <math.h> 62 71 63 72 G4double inuclRndm(); … … 71 80 G4double nucleiLevelDensity(G4double a); 72 81 73 G4CascadeMomentum generateWithFixedTheta(G4double ct, 74 G4double p); 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.); 75 87 } 88 89 76 90 #endif
Note: See TracChangeset
for help on using the changeset viewer.