Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
+7 -1
View File
@@ -96,6 +96,11 @@ class G4Para : public G4CSGSolid
inline G4double GetXHalfLength() const;
inline G4double GetTanAlpha() const;
inline G4double GetAlpha() const;
inline G4double GetTheta() const;
inline G4double GetPhi() const;
// Obtain (re)computed values of original parameters
// Modifiers
inline void SetXHalfLength(G4double val);
@@ -104,7 +109,7 @@ class G4Para : public G4CSGSolid
inline void SetAlpha(G4double alpha);
inline void SetTanAlpha(G4double val);
inline void SetThetaAndPhi(double pTheta, double pPhi);
void SetAllParameters(G4double pDx, G4double pDy, G4double pDz,
G4double pAlpha, G4double pTheta, G4double pPhi);
@@ -174,6 +179,7 @@ class G4Para : public G4CSGSolid
// Algorithm for SurfaceNormal() following the original
// specification for points not on the surface
private:
G4double halfCarTolerance;
@@ -132,3 +132,19 @@ void G4Para::SetThetaAndPhi(double pTheta, double pPhi)
MakePlanes();
}
inline G4double G4Para::GetPhi() const
{
return std::atan2(fTthetaSphi,fTthetaCphi);
}
inline G4double G4Para::GetTheta() const
{
return std::atan(std::sqrt(fTthetaCphi*fTthetaCphi
+fTthetaSphi*fTthetaSphi));
}
inline G4double G4Para::GetAlpha() const
{
return std::atan(fTalpha);
}
@@ -174,6 +174,12 @@ class G4Trap : public G4CSGSolid
inline TrapSidePlane GetSidePlane( G4int n ) const;
inline G4ThreeVector GetSymAxis() const;
inline G4double GetPhi() const;
inline G4double GetTheta() const;
inline G4double GetAlpha1() const;
inline G4double GetAlpha2() const;
// Obtain (re)computed values of original parameters
// Modifiers
void SetAllParameters ( G4double pDz,
@@ -96,3 +96,24 @@ TrapSidePlane G4Trap::GetSidePlane( G4int n ) const
{
return fPlanes[n] ;
}
inline G4double G4Trap::GetPhi() const
{
return std::atan2(fTthetaSphi,fTthetaCphi);
}
inline G4double G4Trap::GetTheta() const
{
return std::atan(std::sqrt(fTthetaCphi*fTthetaCphi
+fTthetaSphi*fTthetaSphi));
}
inline G4double G4Trap::GetAlpha1() const
{
return std::atan(fTalpha1);
}
inline G4double G4Trap::GetAlpha2() const
{
return std::atan(fTalpha2);
}
@@ -66,6 +66,11 @@ class G4UPara : public G4UAdapter<vecgeom::UnplacedParallelepiped>
G4ThreeVector GetSymAxis() const;
G4double GetTanAlpha() const;
G4double GetAlpha() const;
G4double GetTheta() const;
G4double GetPhi() const;
// Obtain (re)computed values of original parameters
// Modifiers
void SetXHalfLength(G4double val);
+11 -1
View File
@@ -100,6 +100,8 @@ class G4UTrap : public G4UAdapter<vecgeom::UnplacedTrapezoid>
using Base_t::GetTanAlpha1;
using Base_t::GetTanAlpha2;
// Accessors
G4double GetZHalfLength() const;
G4double GetYHalfLength1() const;
@@ -113,6 +115,14 @@ class G4UTrap : public G4UAdapter<vecgeom::UnplacedTrapezoid>
TrapSidePlane GetSidePlane(G4int n) const;
G4ThreeVector GetSymAxis() const;
G4double GetPhi() const;
G4double GetTheta() const;
G4double GetAlpha1() const;
G4double GetAlpha2() const;
// Obtain (re)computed values of original parameters
// Modifiers
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi,
G4double pDy1, G4double pDx1, G4double pDx2,
G4double pAlp1,
@@ -139,7 +149,7 @@ class G4UTrap : public G4UAdapter<vecgeom::UnplacedTrapezoid>
// persistifiable objects.
G4UTrap(const G4UTrap& rhs);
G4UTrap& operator=(const G4UTrap& rhs);
G4UTrap& operator=(const G4UTrap& rhs);
// Copy constructor and assignment operator.
};