Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -53,20 +53,6 @@ G4AdjointPosOnPhysVolGenerator* G4AdjointPosOnPhysVolGenerator::GetInstance()
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
//
|
||||
G4AdjointPosOnPhysVolGenerator::~G4AdjointPosOnPhysVolGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
//
|
||||
G4AdjointPosOnPhysVolGenerator::G4AdjointPosOnPhysVolGenerator()
|
||||
: UseSphere(true), ModelOfSurfaceSource("OnSolid"),
|
||||
AreaOfExtSurfaceOfThePhysicalVolume(0.), CosThDirComparedToNormal(0.)
|
||||
{
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
//
|
||||
G4VPhysicalVolume*
|
||||
@@ -78,7 +64,7 @@ G4AdjointPosOnPhysVolGenerator::DefinePhysicalVolume(const G4String& aName)
|
||||
for ( unsigned int i=0; i< thePhysVolStore->size(); ++i )
|
||||
{
|
||||
G4String vol_name =(*thePhysVolStore)[i]->GetName();
|
||||
if (vol_name == "")
|
||||
if (vol_name.empty())
|
||||
{
|
||||
vol_name = (*thePhysVolStore)[i]->GetLogicalVolume()->GetName();
|
||||
}
|
||||
@@ -152,20 +138,17 @@ G4AdjointPosOnPhysVolGenerator::ComputeAreaOfExtSurface(G4VSolid* aSolid,
|
||||
{
|
||||
return ComputeAreaOfExtSurfaceStartingFromSphere(aSolid,NStats);
|
||||
}
|
||||
else
|
||||
{
|
||||
return ComputeAreaOfExtSurfaceStartingFromBox(aSolid,NStats);
|
||||
}
|
||||
|
||||
return ComputeAreaOfExtSurfaceStartingFromBox(aSolid,NStats);
|
||||
}
|
||||
else
|
||||
|
||||
G4ThreeVector p, dir;
|
||||
if (ModelOfSurfaceSource == "ExternalSphere")
|
||||
{
|
||||
G4ThreeVector p, dir;
|
||||
if (ModelOfSurfaceSource == "ExternalSphere")
|
||||
{
|
||||
return GenerateAPositionOnASphereBoundary(aSolid, p,dir);
|
||||
}
|
||||
return GenerateAPositionOnABoxBoundary(aSolid, p,dir);
|
||||
return GenerateAPositionOnASphereBoundary(aSolid, p,dir);
|
||||
}
|
||||
|
||||
return GenerateAPositionOnABoxBoundary(aSolid, p,dir);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user