Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4DAWNFILE.hh,v 1.8 2001/07/27 22:32:55 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// Satoshi TANAKA
// DAWNFILE driver factory.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4DAWNFILESceneHandler.hh,v 1.12 2002/12/11 15:58:02 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4DAWNFILESceneHandler.hh,v 1.14 2005/06/02 17:43:46 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
// Satoshi TANAKA
@@ -71,32 +71,31 @@ public:
virtual void BeginPrimitives (const G4Transform3D& objectTransformation);
virtual void EndPrimitives ();
void AddThis ( const G4Box& box );
void AddThis ( const G4Cons& cons );
void AddThis ( const G4Tubs& tubs );
void AddThis ( const G4Trd& trd );
void AddThis ( const G4Trap& trap );
void AddThis ( const G4Sphere& sphere );
void AddThis ( const G4Para& para );
void AddThis ( const G4Torus& torus );
void AddThis ( const G4Polycone& polycone ) {
G4VSceneHandler::AddThis (polycone);
void AddSolid ( const G4Box& box );
void AddSolid ( const G4Cons& cons );
void AddSolid ( const G4Tubs& tubs );
void AddSolid ( const G4Trd& trd );
void AddSolid ( const G4Trap& trap );
void AddSolid ( const G4Sphere& sphere );
void AddSolid ( const G4Para& para );
void AddSolid ( const G4Torus& torus );
void AddSolid ( const G4Polycone& polycone ) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis ( const G4VSolid& solid );
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid ( const G4VSolid& solid );
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void ClearTransientStore(); // Used for triggering detector re-drawing.
//----- public methods inherent to this class
static G4int GetSceneCount ();
void FRBeginModeling () ;
void FREndModeling () ;
G4bool FRIsInModeling () { return FRflag_in_modeling ; }
@@ -216,7 +215,6 @@ public:
private:
G4DAWNFILE& fSystem; // Graphics system for this scene.
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
G4FRofstream fPrimDest ; // defined here
G4bool FRflag_in_modeling ;
@@ -22,7 +22,7 @@
//
//
// $Id: G4DAWNFILEViewer.hh,v 1.9 2003/06/16 17:13:27 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// Satoshi TANAKA
// DAWNFILE viewer - opens window, hard copy, etc.
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRClientServer.hh,v 1.6 2001/07/11 10:08:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// Satoshi TANAKA, Wed Jul 3 14:13:52 JST 1996
////////////////////////////////
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRConst.hh,v 1.6 2001/07/11 10:08:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// Satoshi TANAKA, Tue Jul 2 15:30:49 JST 1996
///////////////////////////////////
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRFeatures.hh,v 1.5 2001/07/11 10:08:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#if !defined G4_FR_FEATURES_HH
#define G4_FR_FEATURES_HH
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FRSceneFunc.icc,v 1.6 2004/12/10 18:16:00 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-05 $
// $Id: G4FRSceneFunc.icc,v 1.10 2005/06/02 17:43:46 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "G4LogicalVolume.hh"
@@ -306,11 +306,13 @@ void G4FRSCENEHANDLER::AddPrimitive ( const G4Polyhedron& polyhedron )
break;
default:
G4cerr <<
"ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n"
"ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n";
if (fpCurrentPV) G4cerr <<
"Volume " << fpCurrentPV->GetName() <<
", Solid " << fpCurrentLV->GetSolid()->GetName() <<
" (" << fpCurrentLV->GetSolid()->GetEntityType() <<
"\nG4Polyhedron facet with " << i << " edges\n";
" (" << fpCurrentLV->GetSolid()->GetEntityType();
G4cerr <<
"\nG4Polyhedron facet with " << i << " edges" << G4endl;
}
}
@@ -417,19 +419,13 @@ void G4FRSCENEHANDLER::EndPrimitives ()
}
//-----
G4int G4FRSCENEHANDLER::GetSceneCount ()
{
return fSceneCount;
}
//========== AddThis() functions ==========//
//========== AddSolid() functions ==========//
//----- Add box
void G4FRSCENEHANDLER::AddThis( const G4Box& box )
void G4FRSCENEHANDLER::AddSolid( const G4Box& box )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( box )\n";
G4cerr << "***** AddSolid ( box )\n";
#endif
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -460,15 +456,15 @@ void G4FRSCENEHANDLER::AddThis( const G4Box& box )
//----- send box to Fukui Renderer
SendStrDouble3( FR_BOX, dx, dy, dz );
} // void G4FRSCENEHANDLER::AddThis( const G4Box& box )
} // void G4FRSCENEHANDLER::AddSolid( const G4Box& box )
//----- Add tubes
void
G4FRSCENEHANDLER::AddThis( const G4Tubs& tubes )
G4FRSCENEHANDLER::AddSolid( const G4Tubs& tubes )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( tubes )\n";
G4cerr << "***** AddSolid ( tubes )\n";
#endif
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -501,16 +497,16 @@ G4FRSCENEHANDLER::AddThis( const G4Tubs& tubes )
//----- send tubes to Fukui Renderer
SendStrDouble5( FR_TUBS, r, R, dz , sphi, dphi );
} // void G4FRSCENEHANDLER::AddThis( const G4Tubs& )
} // void G4FRSCENEHANDLER::AddSolid( const G4Tubs& )
//----- Add cons
void
G4FRSCENEHANDLER::AddThis( const G4Cons& cons )
G4FRSCENEHANDLER::AddSolid( const G4Cons& cons )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( cons )\n";
G4cerr << "***** AddSolid ( cons )\n";
#endif
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -545,14 +541,14 @@ G4FRSCENEHANDLER::AddThis( const G4Cons& cons )
//----- send cons to Fukui Renderer
SendStrDouble7( FR_CONS, r1, R1, r2, R2, dz , sphi, dphi );
}// G4FRSCENEHANDLER::AddThis( cons )
}// G4FRSCENEHANDLER::AddSolid( cons )
//----- Add trd
void G4FRSCENEHANDLER::AddThis ( const G4Trd& trd )
void G4FRSCENEHANDLER::AddSolid ( const G4Trd& trd )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( trd )\n";
G4cerr << "***** AddSolid ( trd )\n";
#endif
//----- skip drawing invisible primitive
@@ -586,14 +582,14 @@ void G4FRSCENEHANDLER::AddThis ( const G4Trd& trd )
//----- send trd to Fukui Renderer
SendStrDouble5( FR_TRD, dx1, dx2, dy1, dy2, dz );
} // G4FRSCENEHANDLER::AddThis ( trd )
} // G4FRSCENEHANDLER::AddSolid ( trd )
//----- Add sphere
void G4FRSCENEHANDLER::AddThis ( const G4Sphere& sphere )
void G4FRSCENEHANDLER::AddSolid ( const G4Sphere& sphere )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( sphere )\n";
G4cerr << "***** AddSolid ( sphere )\n";
#endif
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -637,7 +633,7 @@ void G4FRSCENEHANDLER::AddThis ( const G4Sphere& sphere )
//...... G4Polyhedron is used for visualization.
//...... Visualization attributes and
//...... local coordinates are resent and overwritten.
G4VSceneHandler::AddThis( sphere ) ;
G4VSceneHandler::AddSolid( sphere ) ;
////////////////////////////////////////////////////////////////
// //----- sphere segment
@@ -646,14 +642,14 @@ void G4FRSCENEHANDLER::AddThis ( const G4Sphere& sphere )
}
} // G4FRSCENEHANDLER::AddThis ( sphere )
} // G4FRSCENEHANDLER::AddSolid ( sphere )
//----- Add para
void G4FRSCENEHANDLER::AddThis (const G4Para& para)
void G4FRSCENEHANDLER::AddSolid (const G4Para& para)
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( para )\n";
G4cerr << "***** AddSolid ( para )\n";
#endif
//----- skip drawing invisible primitive
@@ -702,14 +698,14 @@ void G4FRSCENEHANDLER::AddThis (const G4Para& para)
//----- send data to Fukui Renderer
SendStrDouble6 ( FR_PARA, dx, dy, dz, tanAlpha, tanTheta_cosPhi, tanTheta_sinPhi );
} // G4FRSCENEHANDLER::AddThis ( para )
} // G4FRSCENEHANDLER::AddSolid ( para )
//----- Add trap
void G4FRSCENEHANDLER::AddThis (const G4Trap& trap)
void G4FRSCENEHANDLER::AddSolid (const G4Trap& trap)
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( trap )\n";
G4cerr << "***** AddSolid ( trap )\n";
#endif
//----- skip drawing invisible primitive
@@ -792,15 +788,15 @@ void G4FRSCENEHANDLER::AddThis (const G4Trap& trap)
tl2 ,
alpha2 );
} // G4FRSCENEHANDLER::AddThis (const G4Trap& trap)
} // G4FRSCENEHANDLER::AddSolid (const G4Trap& trap)
//----- Add torus
void
G4FRSCENEHANDLER::AddThis( const G4Torus& torus )
G4FRSCENEHANDLER::AddSolid( const G4Torus& torus )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** AddThis ( torus )\n";
G4cerr << "***** AddSolid ( torus )\n";
#endif
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -833,12 +829,12 @@ G4FRSCENEHANDLER::AddThis( const G4Torus& torus )
//----- send torus to Fukui Renderer
SendStrDouble5( FR_TORUS, r, R, t , sphi, dphi );
} // void G4FRSCENEHANDLER::AddThis( const G4Torus& )
} // void G4FRSCENEHANDLER::AddSolid( const G4Torus& )
//----- Add a shape which is not treated above
void G4FRSCENEHANDLER::AddThis ( const G4VSolid& solid )
void G4FRSCENEHANDLER::AddSolid ( const G4VSolid& solid )
{
//----- skip drawing invisible primitive
if( !IsVisible() ) { return ; }
@@ -853,9 +849,9 @@ void G4FRSCENEHANDLER::AddThis ( const G4VSolid& solid )
// SendNdiv();
//----- Send a primitive
G4VSceneHandler::AddThis( solid ) ;
G4VSceneHandler::AddSolid( solid ) ;
} //G4FRSCENEHANDLER::AddThis ( const G4VSolid& )
} //G4FRSCENEHANDLER::AddSolid ( const G4VSolid& )
//-----
@@ -22,7 +22,7 @@
//
//
// $Id: G4FRofstream.hh,v 1.6 2003/06/16 17:13:28 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include <fstream>
@@ -22,7 +22,7 @@
//
//
// $Id: G4FukuiRenderer.hh,v 1.7 2001/07/11 10:08:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Satoshi TANAKA
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4FukuiRendererSceneHandler.hh,v 1.11 2002/12/11 15:58:02 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4FukuiRendererSceneHandler.hh,v 1.14 2005/06/02 17:43:46 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 11:19:19 JST 1996
@@ -76,32 +76,31 @@ public:
virtual void BeginPrimitives (const G4Transform3D& objectTransformation);
virtual void EndPrimitives ();
void AddThis ( const G4Box& box );
void AddThis ( const G4Cons& cons );
void AddThis ( const G4Tubs& tubs );
void AddThis ( const G4Trd& trd );
void AddThis ( const G4Trap& trap );
void AddThis ( const G4Sphere& sphere );
void AddThis ( const G4Para& para );
void AddThis ( const G4Torus& torus );
void AddThis ( const G4Polycone& polycone) {
G4VSceneHandler::AddThis (polycone);
void AddSolid ( const G4Box& box );
void AddSolid ( const G4Cons& cons );
void AddSolid ( const G4Tubs& tubs );
void AddSolid ( const G4Trd& trd );
void AddSolid ( const G4Trap& trap );
void AddSolid ( const G4Sphere& sphere );
void AddSolid ( const G4Para& para );
void AddSolid ( const G4Torus& torus );
void AddSolid ( const G4Polycone& polycone) {
G4VSceneHandler::AddSolid (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
void AddSolid ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddSolid (polyhedra);
}
void AddThis ( const G4VSolid& solid );
void AddThis ( const G4VTrajectory& traj) {
G4VSceneHandler::AddThis(traj);
void AddSolid ( const G4VSolid& solid );
void AddCompound ( const G4VTrajectory& traj) {
G4VSceneHandler::AddCompound(traj);
}
void AddThis ( const G4VHit& hit) {
G4VSceneHandler::AddThis(hit);
void AddCompound ( const G4VHit& hit) {
G4VSceneHandler::AddCompound(hit);
}
void ClearTransientStore(); // Used for triggering detector re-drawing.
//----- methods inherent to this class
static G4int GetSceneCount ();
void FRBeginModeling () ;
void FREndModeling () ;
G4bool FRIsInModeling () { return FRflag_in_modeling ; }
@@ -230,7 +229,6 @@ public:
private:
G4FukuiRenderer& fSystem; // Graphics system for this scene.
static G4int fSceneIdCount;
static G4int fSceneCount; // No. of existing scenes.
G4FRClientServer& fPrimDest ; // defined in G4FukuiRenderer
G4bool FRflag_in_modeling ;
@@ -22,7 +22,7 @@
//
//
// $Id: G4FukuiRendererViewer.hh,v 1.7 2001/07/11 10:08:44 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 12:10:14 JST 1996