Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
+47 -32
View File
@@ -21,67 +21,82 @@
// ********************************************************************
//
//
// $Id: G4GRSVolume.icc,v 1.6 2001/07/11 10:00:27 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4GRSVolume.icc,v 1.7 2002/07/23 08:50:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// class G4GRSVolume inline implementation
// ********************************************************************
inline G4GRSVolume::G4GRSVolume(G4VPhysicalVolume *pVol,
const G4RotationMatrix *pRot,
const G4ThreeVector &tlate)
inline
G4GRSVolume::G4GRSVolume( G4VPhysicalVolume *pVol,
const G4RotationMatrix *pRot,
const G4ThreeVector &tlate )
: G4VTouchable(),
fvol(pVol), ftlate(tlate)
fvol(pVol),
ftlate(tlate)
{
if (pRot)
{
frot=new G4RotationMatrix(*pRot);
if (!frot) G4Exception ("G4GRSVolume::G4GRSVolume cannot alloc G4RotationMatrix");
}
if ( pRot )
{
frot = new G4RotationMatrix(*pRot);
if ( !frot )
G4Exception ("G4GRSVolume::G4GRSVolume cannot alloc G4RotationMatrix");
}
else
{
frot=0;
}
{
frot = 0;
}
}
inline G4GRSVolume::G4GRSVolume(G4VPhysicalVolume *pVol,
const G4RotationMatrix &rot,
const G4ThreeVector &tlate)
inline
G4GRSVolume::G4GRSVolume( G4VPhysicalVolume *pVol,
const G4RotationMatrix &rot,
const G4ThreeVector &tlate )
: G4VTouchable(),
fvol(pVol), ftlate(tlate)
fvol(pVol),
ftlate(tlate)
{
frot=new G4RotationMatrix(rot);
if (!frot) G4Exception ("G4GRSVolume::G4GRSVolume cannot alloc G4RotationMatrix");
frot = new G4RotationMatrix(rot);
if ( !frot )
G4Exception ("G4GRSVolume::G4GRSVolume cannot alloc G4RotationMatrix");
}
inline G4VPhysicalVolume* G4GRSVolume::GetVolume(G4int depth) const
inline
G4VPhysicalVolume* G4GRSVolume::GetVolume( G4int depth ) const
{
if( depth != 0 ) {
G4Exception("G4GRSVolume::GetVolume: has no meaning for depth!=0");
if( depth != 0 )
{
G4Exception("G4GRSVolume::GetVolume: has no meaning for depth!=0");
}
return fvol;
}
inline G4VSolid* G4GRSVolume::GetSolid(G4int depth) const
inline
G4VSolid* G4GRSVolume::GetSolid( G4int depth ) const
{
if( depth != 0 ) {
G4Exception("G4GRSVolume::GetSolid: has no meaning for depth!=0");
if( depth != 0 )
{
G4Exception("G4GRSVolume::GetSolid: has no meaning for depth!=0");
}
return fvol->GetLogicalVolume()->GetSolid();
}
inline const G4ThreeVector& G4GRSVolume::GetTranslation(G4int depth) const
inline
const G4ThreeVector& G4GRSVolume::GetTranslation( G4int depth ) const
{
if( depth != 0 ) {
G4Exception("G4GRSVolume::GetTranslation: has no meaning for depth!=0");
if( depth != 0 )
{
G4Exception("G4GRSVolume::GetTranslation: has no meaning for depth!=0");
}
return ftlate;
}
inline const G4RotationMatrix* G4GRSVolume::GetRotation(G4int depth) const
inline
const G4RotationMatrix* G4GRSVolume::GetRotation( G4int depth ) const
{
if( depth != 0 ) {
G4Exception("G4GRSVolume::GetRotation: has no meaning for depth!=0");
if( depth != 0 )
{
G4Exception("G4GRSVolume::GetRotation: has no meaning for depth!=0");
}
return frot;
}