Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTJpegCoder.cc,v 1.6 2006/06/29 21:23:55 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTJpegCoder.cc,v 1.6 2006-06-29 21:23:55 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -56,10 +56,7 @@ G4JpegCoder::G4JpegCoder(u_char* colorR,u_char* colorG,u_char* colorB)
}
G4JpegCoder::~G4JpegCoder(void)
{
if(mOBSP != 0)
delete mOBSP;
}
{}
void
G4JpegCoder::GetJpegData(char** aJpegData, int& size)
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTJpegMaker.cc,v 1.10 2006/06/29 21:23:57 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTJpegMaker.cc,v 1.10 2006-06-29 21:23:57 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTMessenger.cc,v 1.10 2006/11/17 21:34:12 perl Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTMessenger.cc,v 1.10 2006-11-17 21:34:12 perl Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTOutBitStream.cc,v 1.6 2008/04/04 13:52:48 allison Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTOutBitStream.cc,v 1.6 2008-04-04 13:52:48 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -53,6 +53,11 @@ G4OutBitStream::G4OutBitStream(int size)
mWriteFlag = 1;
}
G4OutBitStream::~G4OutBitStream()
{
delete mBuf;
}
void
G4OutBitStream::IncBuf( void )
{
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTSimpleScanner.cc,v 1.5 2010/06/14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-04-beta-01 $
// $Id: G4RTSimpleScanner.cc,v 1.5 2010-06-14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTSteppingAction.cc,v 1.7 2006/06/29 21:24:05 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTSteppingAction.cc,v 1.7 2006-06-29 21:24:05 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTTrackingAction.cc,v 1.5 2006/06/29 21:24:07 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RTTrackingAction.cc,v 1.5 2006-06-29 21:24:07 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RTXScanner.cc,v 1.8 2010/06/14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-04-beta-01 $
// $Id: G4RTXScanner.cc,v 1.8 2010-06-14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
@@ -47,7 +47,9 @@ extern "C" {
}
G4RTXScanner::G4RTXScanner():
G4VRTScanner(), theNRow(0), theNColumn(0), theIRow(0), theIColumn(0)
G4VRTScanner(), theNRow(0), theNColumn(0), theStep(0)
,theIRow(0), theIColumn(0)
,display(0), win(0), scmap(0)
{
theGSName = "RayTracerX";
theGSNickname = "RayTracerX";
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracer.cc,v 1.22 2007/06/14 15:25:20 allison Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RayTracer.cc,v 1.22 2007-06-14 15:25:20 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
#include "G4RayTracer.hh"
#include "G4RayTracerFeatures.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracerSceneHandler.cc,v 1.10 2006/11/14 14:46:37 allison Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RayTracerSceneHandler.cc,v 1.10 2006-11-14 14:46:37 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
#include "G4RayTracerSceneHandler.hh"
#include "G4VisManager.hh"
@@ -48,8 +48,6 @@ G4RayTracerSceneHandler::G4RayTracerSceneHandler(G4VGraphicsSystem& system,
// Add dummy run-duration model to avoid world being added and
// notifyHandler being invoked...
fpScene->AddWorldIfEmpty();
// Avoid code triggered at end of events...
fpScene->SetRefreshAtEndOfEvent(false);
// Add to vis manager list; ownership thereby passes to vis manager...
visManager->SetSceneList().push_back(fpScene);
// ...and make current...
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracerViewer.cc,v 1.18 2009/08/19 08:39:19 lgarnier Exp $
// GEANT4 tag $Name: geant4-09-03 $
// $Id: G4RayTracerViewer.cc,v 1.18 2009-08-19 08:39:19 lgarnier Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
#include "G4RayTracerViewer.hh"
@@ -86,6 +86,11 @@ void G4RayTracerViewer::ClearView() {}
void G4RayTracerViewer::DrawView()
{
// Trap recursive call
static G4bool called = false;
if (called) return;
called = true;
if (fVP.GetFieldHalfAngle() == 0.) { // Orthogonal (parallel) projection.
G4double fieldHalfAngle = perMillion;
fVP.SetFieldHalfAngle(fieldHalfAngle);
@@ -105,4 +110,7 @@ void G4RayTracerViewer::DrawView()
std::ostringstream filename;
filename << "g4RayTracer." << fShortName << '_' << fFileCount++ << ".jpeg";
theTracer->Trace(filename.str());
// Reset call flag
called = false;
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracerX.cc,v 1.5 2006/06/29 21:24:17 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RayTracerX.cc,v 1.5 2006-06-29 21:24:17 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracerXViewer.cc,v 1.8 2009/09/16 16:56:52 allison Exp $
// GEANT4 tag $Name: geant4-09-03 $
// $Id: G4RayTracerXViewer.cc,v 1.8 2009-09-16 16:56:52 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
#ifdef G4VIS_BUILD_RAYTRACERX_DRIVER
@@ -51,14 +51,19 @@ G4RayTracerXViewer::~G4RayTracerXViewer() {}
void G4RayTracerXViewer::Initialise() {
if (theTracer) {
theTracer->SetNColumn(fVP.GetWindowSizeHintX());
theTracer->SetNRow(fVP.GetWindowSizeHintY());
if (!theTracer) {
G4cerr << "G4RayTracerXViewer::Initialise: No tracer" << G4endl;
fViewId = -1; // This flags an error.
return;
}
theTracer->SetNColumn(fVP.GetWindowSizeHintX());
theTracer->SetNRow(fVP.GetWindowSizeHintY());
// Set up X Window...
G4RTXScanner* theXScanner = (G4RTXScanner*)theTracer->GetScanner();
if (!theXScanner->GetXWindow(fName,fVP)) {
G4cerr << "G4RayTracerXViewer::Initialise: No scanner" << G4endl;
fViewId = -1; // This flags an error.
return;
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTrajectory.cc,v 1.15 2006/06/29 21:24:21 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RayTrajectory.cc,v 1.15 2006-06-29 21:24:21 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RayTrajectoryPoint.cc,v 1.6 2006/06/29 21:24:23 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RayTrajectoryPoint.cc,v 1.6 2006-06-29 21:24:23 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -39,6 +39,9 @@
G4Allocator<G4RayTrajectoryPoint> G4RayTrajectoryPointAllocator;
G4RayTrajectoryPoint :: G4RayTrajectoryPoint()
:preStepAtt(0)
,postStepAtt(0)
,stepLength(0.)
{;}
G4RayTrajectoryPoint :: ~G4RayTrajectoryPoint()
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4TheRayTracer.cc,v 1.3 2006/06/29 21:24:25 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4TheRayTracer.cc,v 1.3 2006-06-29 21:24:25 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VRTScanner.cc,v 1.1 2010/06/14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-04-beta-01 $
// $Id: G4VRTScanner.cc,v 1.1 2010-06-14 14:33:34 gcosmo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//