Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Trd.cc,v 1.3.2.1 1999/12/07 20:48:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Trd.cc,v 1.4 1999/12/15 14:50:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Implementation for G4Trd class
|
||||
@@ -61,11 +61,11 @@ G4Trd::CheckAndSetAllParameters (G4double pdx1, G4double pdx2,
|
||||
// G4double Minimum_length= (1+per_thousand) * kCarTolerance/2.;
|
||||
// FIX-ME : temporary solution for ZERO or very-small parameters.
|
||||
G4double Minimum_length= kCarTolerance/2.;
|
||||
fDx1=max(pdx1,Minimum_length);
|
||||
fDx2=max(pdx2,Minimum_length);
|
||||
fDy1=max(pdy1,Minimum_length);
|
||||
fDy2=max(pdy2,Minimum_length);
|
||||
fDz=max(pdz,Minimum_length);
|
||||
fDx1=G4std::max(pdx1,Minimum_length);
|
||||
fDx2=G4std::max(pdx2,Minimum_length);
|
||||
fDy1=G4std::max(pdy1,Minimum_length);
|
||||
fDy2=G4std::max(pdy2,Minimum_length);
|
||||
fDz=G4std::max(pdz,Minimum_length);
|
||||
}
|
||||
else G4Exception("Error in G4Trd::G4Trd - One or more parameters are < 0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user