Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -57,10 +57,6 @@
#define G4warn G4cout
namespace {
G4int volumeCount = 0;
}
G4PhysicalVolumeModel::G4PhysicalVolumeModel
(G4VPhysicalVolume* pVPV
, G4int requestedDepth
@@ -224,7 +220,7 @@ void G4PhysicalVolumeModel::DescribeYourselfTo
G4Transform3D startingTransformation = fTransform;
volumeCount = 0;
fNTouchables.clear(); // Keeps count of touchable drawn at each depth
VisitGeometryAndGetVisReps
(fpTopPV,
@@ -232,11 +228,6 @@ void G4PhysicalVolumeModel::DescribeYourselfTo
startingTransformation,
sceneHandler);
// G4cout
// << "G4PhysicalVolumeModel::DescribeYourselfTo: volume count: "
// << volumeCount
// << G4endl;
// Reset or clear data...
fCurrentDepth = 0;
fpCurrentPV = fpTopPV;
@@ -685,7 +676,9 @@ void G4PhysicalVolumeModel::DescribeAndDescend
theNewAT = centering * newTranslation * oldRotation * oldScale;
}
volumeCount++;
auto fullDepth = fCurrentDepth + (G4int)fBaseFullPVPath.size();
fNTouchables[fullDepth]++; // Increment for every touchable drawn at each depth
DescribeSolid (theNewAT, pSol, pVisAttribs, sceneHandler);
}