Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
+13 -13
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DrawVoxels.cc,v 1.8.2.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DrawVoxels.cc,v 1.10 2000/01/19 17:26:30 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4DrawVoxels
@@ -48,7 +48,7 @@ void G4DrawVoxels::ComputeVoxelPolyhedra(const G4LogicalVolume* lv,
#ifdef G4DrawVoxelsDebug
G4cout << "**** !!! G4DrawVoxels::Draw_Voxels : a query for drawing voxelisation";
G4cout << " Logical Volume:" << lv->GetName() <<endl;
G4cout << " Logical Volume:" << lv->GetName() <<G4endl;
#endif
@@ -60,8 +60,8 @@ void G4DrawVoxels::ComputeVoxelPolyhedra(const G4LogicalVolume* lv,
if (lv->GetNoDaughters()<=0) {
#ifdef G4DrawVoxelsDebug
G4cout << "**** !!! G4DrawVoxels::Draw_Voxels : a query for drawing voxelisation" << endl;
G4cout << " of a logical volume that has no (or <=0) daughter has been detected !!! ****" <<endl;
G4cout << "**** !!! G4DrawVoxels::Draw_Voxels : a query for drawing voxelisation" << G4endl;
G4cout << " of a logical volume that has no (or <=0) daughter has been detected !!! ****" <<G4endl;
#endif
return;
}
@@ -112,8 +112,8 @@ void G4DrawVoxels::ComputeVoxelPolyhedra(const G4LogicalVolume* lv,
default:
//erreur interne
/************************/
G4cout << "PANIC: in Draw_Voxels:DrawVoxels(...) header is decayed." <<endl;
G4cout << "header->GetAxis returns an invalid axis." <<endl;
G4cout << "PANIC: in Draw_Voxels:DrawVoxels(...) header is decayed." <<G4endl;
G4cout << "header->GetAxis returns an invalid axis." <<G4endl;
/************************/
break;
};
@@ -128,14 +128,14 @@ void G4DrawVoxels::ComputeVoxelPolyhedra(const G4LogicalVolume* lv,
#ifdef G4DrawVoxelsDebug
G4cout << " Axis of the voxelisation:" << header->GetAxis();
G4cout << " No slices of the voxelisation:" << header->GetNoSlices();
G4cout << " step:" << step <<endl;
G4cout << " step:" << step <<G4endl;
#endif
while (slice_no<no_slices){
#ifdef G4DrawVoxelsDebug
G4cout << " slice_no:" << slice_no;
G4cout << " header/node:" << slice->IsHeader() <<endl;
G4cout << " header/node:" << slice->IsHeader() <<G4endl;
#endif
if (slice->IsHeader()){
@@ -152,7 +152,7 @@ void G4DrawVoxels::ComputeVoxelPolyhedra(const G4LogicalVolume* lv,
slice_no=(slice->IsHeader()?slice->GetHeader()->GetMaxEquivalentSliceNo()+1
:slice->GetNode()->GetMaxEquivalentSliceNo()+1);
slice=header->GetSlice(slice_no);
if (slice_no<no_slices)slice=header->GetSlice(slice_no);
}
}//end of ComputeVoxelPolyhedra...
//######################################################################################################################
@@ -200,8 +200,8 @@ void G4DrawVoxels::DrawVoxels(const G4LogicalVolume* lv) const{
if (lv->GetNoDaughters()<=0) {
#ifdef G4DrawVoxelsDebug
G4cout << "**** !!! G4DrawVoxels::Draw_Voxels : a query for drawing voxelisation" << endl;
G4cout << " of a logical volume that has no (or <=0) daughter has been detected !!! ****" <<endl;
G4cout << "**** !!! G4DrawVoxels::Draw_Voxels : a query for drawing voxelisation" << G4endl;
G4cout << " of a logical volume that has no (or <=0) daughter has been detected !!! ****" <<G4endl;
#endif
return;
}
@@ -219,7 +219,7 @@ void G4DrawVoxels::DrawVoxels(const G4LogicalVolume* lv) const{
for (G4int i=0;i<pplist->entries();i++)
pVVisManager->Draw((*pplist)(i).GetPolyhedron(),(*pplist)(i).GetTransform()*transf3D);
}
else G4cout << "@@@@ void G4DrawVoxels::DrawVoxels(const G4LogicalVolume*) pVVisManager is null! @@@@" <<endl;
else G4cout << "@@@@ void G4DrawVoxels::DrawVoxels(const G4LogicalVolume*) pVVisManager is null! @@@@" <<G4endl;
delete pplist;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GeometryManager.cc,v 1.1.12.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4GeometryManager.cc,v 1.2 1999/12/15 14:49:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// class G4GeometryManager
//
@@ -87,8 +87,8 @@ void G4GeometryManager::BuildOptimisations(const G4bool allOpts)
volume->GetDaughter(0)->IsReplicated()==true))
{
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4GeometryManager::BuildOptimisations" << endl
<< " Examining logical volume name = " << volume->GetName() << endl;
G4cout << "**** G4GeometryManager::BuildOptimisations" << G4endl
<< " Examining logical volume name = " << volume->GetName() << G4endl;
#endif
head = new G4SmartVoxelHeader(volume);
if (head)
@@ -105,9 +105,9 @@ void G4GeometryManager::BuildOptimisations(const G4bool allOpts)
// Don't create voxels for this node
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4GeometryManager::BuildOptimisations"
<< endl
<< G4endl
<< " Skipping logical volume name = "
<< volume->GetName() << endl;
<< volume->GetName() << G4endl;
#endif
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4LogicalVolume.cc,v 1.2.10.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4LogicalVolume.cc,v 1.3 1999/12/15 14:49:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4LogicalVolume Implementation
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4LogicalVolumeStore.cc,v 1.3.2.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4LogicalVolumeStore.cc,v 1.4 1999/12/15 14:49:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// G4LogicalVolumeStore
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PVParameterised.cc,v 1.1.12.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4PVParameterised.cc,v 1.2 1999/12/15 14:49:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4PVParameterised
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PVPlacement.cc,v 1.1.12.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4PVPlacement.cc,v 1.2 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4PVPlacement Implementation
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PVReplica.cc,v 1.1.12.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4PVReplica.cc,v 1.2 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4PVReplica Implementation
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PhysicalVolumeStore.cc,v 1.3.2.1 1999/12/07 20:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4PhysicalVolumeStore.cc,v 1.4 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// G4PhysicalVolumeStore
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SmartVoxelHeader.cc,v 1.4.10.1 1999/12/07 20:48:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4SmartVoxelHeader.cc,v 1.5 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4SmartVoxelHeader
@@ -72,14 +72,14 @@ G4SmartVoxelHeader::G4SmartVoxelHeader(G4LogicalVolume* pVolume,
{
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::G4SmartVoxelHeader" << endl
<< " Limits " << pLimits << endl
G4cout << "**** G4SmartVoxelHeader::G4SmartVoxelHeader" << G4endl
<< " Limits " << pLimits << G4endl
<< " Candidate #s = " ;
for (G4int i=0;i<pCandidates->entries();i++)
{
G4cout << pCandidates->at(i) << " ";
}
G4cout << endl;
G4cout << G4endl;
#endif
BuildVoxelsWithinLimits(pVolume,pLimits,pCandidates);
}
@@ -389,7 +389,7 @@ void G4SmartVoxelHeader::BuildVoxelsWithinLimits(G4LogicalVolume* pVolume,
faxis=goodSliceAxis;
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << endl << " Selected axis = " << faxis << endl;
G4cout << G4endl << " Selected axis = " << faxis << G4endl;
G4int islice;
for (islice=0;islice<fslices.entries();islice++)
{
@@ -397,9 +397,9 @@ void G4SmartVoxelHeader::BuildVoxelsWithinLimits(G4LogicalVolume* pVolume,
G4cout << " Node #" << islice << " = {";
for (j=0;j<fslices(islice)->GetNode()->GetNoContained();j++)
{ G4cout << " " << fslices(islice)->GetNode()->GetVolume(j); }
G4cout << " }" << endl;
G4cout << " }" << G4endl;
}
G4cout << endl;
G4cout << G4endl;
#endif
// Calculate and set min and max extents given our axis
@@ -541,9 +541,9 @@ void G4SmartVoxelHeader::CollectEquivalentNodes()
{
// Do collection between sliceNo and maxNo inclusive
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::CollectEquivalentNodes" << endl
G4cout << "**** G4SmartVoxelHeader::CollectEquivalentNodes" << G4endl
<< " Collecting Nodes = "
<< sliceNo << " - " << maxNo << endl;
<< sliceNo << " - " << maxNo << G4endl;
#endif
for (equivNo=sliceNo+1;equivNo<=maxNo;equivNo++)
{
@@ -587,7 +587,7 @@ void G4SmartVoxelHeader::CollectEquivalentHeaders()
// but may not have equal contents
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::CollectEquivalentHeaders" << endl
G4cout << "**** G4SmartVoxelHeader::CollectEquivalentHeaders" << G4endl
<< " Collecting Headers =";
#endif
for (equivNo=sliceNo+1;equivNo<=maxNo;equivNo++)
@@ -614,7 +614,7 @@ void G4SmartVoxelHeader::CollectEquivalentHeaders()
}
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << endl;
G4cout << G4endl;
#endif
// Skip past examined slices
@@ -653,10 +653,10 @@ G4ProxyVector* G4SmartVoxelHeader::BuildNodes(G4LogicalVolume* pVolume,
nCandidates=pCandidates->entries();
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::BuildNodes" << endl
<< " Limits = " << pLimits << endl
G4cout << "**** G4SmartVoxelHeader::BuildNodes" << G4endl
<< " Limits = " << pLimits << G4endl
<< " Axis = " << pAxis
<< " Candidates = " << nCandidates << endl;
<< " Candidates = " << nCandidates << G4endl;
#endif
// Compute extent of logical volume's solid along this axis
@@ -751,13 +751,13 @@ G4ProxyVector* G4SmartVoxelHeader::BuildNodes(G4LogicalVolume* pVolume,
if (((motherMinExtent-minExtents(nVol))*100/width>kStraddlePercent)
||((maxExtents(nVol)-motherMaxExtent)*100/width>kStraddlePercent))
{
G4cout << "**** G4SmartVoxelHeader::BuildNodes" << endl
G4cout << "**** G4SmartVoxelHeader::BuildNodes" << G4endl
<< " WARNING : Daughter # " << nVol
<< " Name = " << pDaughter->GetName() << endl
<< " Name = " << pDaughter->GetName() << G4endl
<< " Crosses mother boundary of logical volume Name = "
<< pVolume->GetName() << endl
<< pVolume->GetName() << G4endl
<< " by more than " << kStraddlePercent
<< "%" << endl;
<< "%" << G4endl;
}
}
#endif
@@ -806,13 +806,13 @@ G4int noNodes = ((noNodesSmart-noNodesExactI)>=0.5) ?
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << " Min width = " << minWidth
<< " => # Nodes = " << noNodes << endl;
<< " => # Nodes = " << noNodes << G4endl;
#endif
if (noNodes>kMaxVoxelNodes)
{
noNodes=kMaxVoxelNodes;
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << " Nodes Clipped to = " << kMaxVoxelNodes << endl;
G4cout << " Nodes Clipped to = " << kMaxVoxelNodes << G4endl;
#endif
}
G4double nodeWidth=(motherMaxExtent-motherMinExtent)/noNodes;
@@ -956,11 +956,11 @@ G4double G4SmartVoxelHeader::CalculateQuality(G4ProxyVector *pSlice)
}
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::CalculateQuality" << endl
<< " Quality = " << quality << endl
G4cout << "**** G4SmartVoxelHeader::CalculateQuality" << G4endl
<< " Quality = " << quality << G4endl
<< " Nodes = " << nNodes
<< " of which " << sumNonEmptyNodes << " non empty" << endl
<< " Max Contained = " << maxContained << endl;
<< " of which " << sumNonEmptyNodes << " non empty" << G4endl
<< " Max Contained = " << maxContained << G4endl;
#endif
return quality;
}
@@ -1042,9 +1042,9 @@ void G4SmartVoxelHeader::RefineNodes(G4LogicalVolume* pVolume,
maxNo=targetNode->GetMaxEquivalentSliceNo();
#ifdef G4GEOMETRY_VOXELDEBUG
G4cout << "**** G4SmartVoxelHeader::RefineNodes"
<< endl
<< G4endl
<< " Refining nodes " << minNo
<< " - " << maxNo << " inclusive" << endl;
<< " - " << maxNo << " inclusive" << G4endl;
#endif
// Delete node proxies at start of collected sets of nodes/headers
@@ -1116,9 +1116,9 @@ G4bool G4SmartVoxelHeader::AllSlicesEqual() const
}
// Output for debugging
ostream& operator << (ostream&s, const G4SmartVoxelHeader& h)
G4std::ostream& operator << (G4std::ostream&s, const G4SmartVoxelHeader& h)
{
s << "Axis = " << h.faxis << endl;
s << "Axis = " << h.faxis << G4endl;
G4SmartVoxelProxy *collectNode=0,*collectHead=0;
G4int collectNodeNo,collectHeadNo,i,j;
G4bool haveHeaders=false;
@@ -1133,13 +1133,13 @@ ostream& operator << (ostream&s, const G4SmartVoxelHeader& h)
s << "{";
for (G4int j=0;j<h.fslices(i)->GetNode()->GetNoContained();j++)
{ s << " " << h.fslices(i)->GetNode()->GetVolume(j); }
s << " }" << endl;
s << " }" << G4endl;
collectNode=h.fslices(i);
collectNodeNo=i;
}
else
{
s << "As slice #" << collectNodeNo << endl;
s << "As slice #" << collectNodeNo << G4endl;
}
}
else
@@ -1147,13 +1147,13 @@ ostream& operator << (ostream&s, const G4SmartVoxelHeader& h)
haveHeaders=true;
if (h.fslices(i)!=collectHead)
{
s << "Header" << endl;
s << "Header" << G4endl;
collectHead=h.fslices(i);
collectHeadNo=i;
}
else
{
s << "As slice #" << collectHeadNo << endl;
s << "As slice #" << collectHeadNo << G4endl;
}
}
}
@@ -1169,14 +1169,14 @@ ostream& operator << (ostream&s, const G4SmartVoxelHeader& h)
s << "Header at Slice #" << j << " = ";
if (h.fslices(j)!=collectHead)
{
s << endl
s << G4endl
<< (*(h.fslices(j)->GetHeader()));
collectHead=h.fslices(j);
collectHeadNo=j;
}
else
{
s << "As slice #" << collectHeadNo << endl;
s << "As slice #" << collectHeadNo << G4endl;
}
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SmartVoxelNode.cc,v 1.1.12.1 1999/12/07 20:48:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4SmartVoxelNode.cc,v 1.2 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Class G4SmartVoxelNode
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SolidStore.cc,v 1.3.2.1 1999/12/07 20:48:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4SolidStore.cc,v 1.4 1999/12/15 14:49:53 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// G4SolidStore
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VPVParameterisation.cc,v 1.1.12.1 1999/12/07 20:48:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4VPVParameterisation.cc,v 1.2 1999/12/15 14:49:54 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Default implementations for Parameterisations that do not
// parameterise solid and/or material
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VPhysicalVolume.cc,v 1.2.4.1 1999/12/07 20:48:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4VPhysicalVolume.cc,v 1.3 1999/12/15 14:49:54 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// class G4VPhysicalVolume Implementation
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VSolid.cc,v 1.2.4.1 1999/12/07 20:48:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4VSolid.cc,v 1.3 1999/12/15 14:49:54 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// class G4VSolid
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VoxelLimits.cc,v 1.1.12.1 1999/12/07 20:48:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4VoxelLimits.cc,v 1.2 1999/12/15 14:49:54 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// class G4VoxelLimits
//
@@ -274,7 +274,7 @@ G4int G4VoxelLimits::OutCode(const G4ThreeVector& pVec) const
}
ostream& operator << (ostream& os, const G4VoxelLimits& pLim)
G4std::ostream& operator << (G4std::ostream& os, const G4VoxelLimits& pLim)
{
os << "{";
if (pLim.IsXLimited())