Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4Fragment.hh 102724 2017-02-20 13:00:39Z gcosmo $
|
||||
// $Id: G4Fragment.hh 104779 2017-06-16 09:20:56Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------
|
||||
//
|
||||
@@ -91,7 +91,6 @@ public:
|
||||
G4bool operator==(const G4Fragment &right) const;
|
||||
G4bool operator!=(const G4Fragment &right) const;
|
||||
|
||||
friend std::ostream& operator<<(std::ostream&, const G4Fragment*);
|
||||
friend std::ostream& operator<<(std::ostream&, const G4Fragment&);
|
||||
|
||||
// new/delete operators are overloded to use G4Allocator
|
||||
@@ -161,8 +160,9 @@ public:
|
||||
inline G4double GetCreationTime() const;
|
||||
inline void SetCreationTime(G4double time);
|
||||
|
||||
inline G4NuclearPolarization* NuclearPolarization();
|
||||
inline G4NuclearPolarization* GetNuclearPolarization() const;
|
||||
inline void SetNuclearPolarization(G4NuclearPolarization*);
|
||||
void SetNuclearPolarization(G4NuclearPolarization*);
|
||||
|
||||
void SetAngularMomentum(const G4ThreeVector&);
|
||||
G4ThreeVector GetAngularMomentum() const;
|
||||
@@ -216,7 +216,7 @@ private:
|
||||
};
|
||||
|
||||
// ============= INLINE METHOD IMPLEMENTATIONS ===================
|
||||
|
||||
/*
|
||||
inline void G4Fragment::SetNuclearPolarization(G4NuclearPolarization* p)
|
||||
{
|
||||
if(p != thePolarization) {
|
||||
@@ -224,7 +224,7 @@ inline void G4Fragment::SetNuclearPolarization(G4NuclearPolarization* p)
|
||||
thePolarization = p;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
#if defined G4HADRONIC_ALLOC_EXPORT
|
||||
extern G4DLLEXPORT G4ThreadLocal G4Allocator<G4Fragment> *pFragmentAllocator;
|
||||
#else
|
||||
@@ -455,6 +455,11 @@ inline void G4Fragment::SetCreationTime(G4double time)
|
||||
theCreationTime = time;
|
||||
}
|
||||
|
||||
inline G4NuclearPolarization* G4Fragment::NuclearPolarization()
|
||||
{
|
||||
return thePolarization;
|
||||
}
|
||||
|
||||
inline G4NuclearPolarization* G4Fragment::GetNuclearPolarization() const
|
||||
{
|
||||
return thePolarization;
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
class G4LegendrePolynomial
|
||||
{
|
||||
@@ -55,7 +56,8 @@ class G4LegendrePolynomial
|
||||
|
||||
// Evaluation functions
|
||||
G4double EvalLegendrePoly(G4int order, G4double x);
|
||||
G4double EvalAssocLegendrePoly(G4int l, G4int m, G4double x);
|
||||
G4double EvalAssocLegendrePoly(G4int l, G4int m, G4double x,
|
||||
std::map<G4int, std::map<G4int, G4double> >* cache = NULL);
|
||||
|
||||
protected: // Cache coefficients for speed
|
||||
void BuildUpToOrder(size_t order);
|
||||
|
||||
@@ -56,10 +56,13 @@ class G4PolynomialPDF
|
||||
// Setters and Getters for coefficients
|
||||
inline void SetNCoefficients(size_t n) { fCoefficients.resize(n); fChanged = true; }
|
||||
inline size_t GetNCoefficients() const { return fCoefficients.size(); }
|
||||
inline void SetCoefficients(const std::vector<G4double>& v) { fCoefficients = v; }
|
||||
inline void SetCoefficients(const std::vector<G4double>& v) {
|
||||
fCoefficients = v; fChanged = true; Simplify();
|
||||
}
|
||||
inline G4double GetCoefficient(size_t i) const { return fCoefficients[i]; }
|
||||
void SetCoefficient(size_t i, G4double value);
|
||||
void SetCoefficient(size_t i, G4double value, bool doSimplify);
|
||||
void SetCoefficients(size_t n, const G4double* coeffs);
|
||||
void Simplify();
|
||||
|
||||
// Set the domain over which random numbers are generated and over which
|
||||
// the CDF is evaluated
|
||||
|
||||
Reference in New Issue
Block a user