Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -22,7 +22,7 @@
//
//
// $Id: G4RTJpegCoder.cc,v 1.4 2001/07/11 10:09:03 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4RTJpegMaker.cc,v 1.7 2001/11/22 17:29:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RTMessenger.cc,v 1.5 2001/07/11 10:09:03 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4RTMessenger.cc,v 1.6 2002/12/05 01:37:36 asaim Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -54,7 +54,7 @@ G4RTMessenger::G4RTMessenger(G4RayTracer* p1,G4RTSteppingAction* p2)
fileCmd->SetGuidance("Define the name of output JPEG file.");
fileCmd->SetParameterName("fileName",true);
fileCmd->SetDefaultValue("g4RayTracer.jpeg");
fileCmd->AvailableForStates(Idle);
fileCmd->AvailableForStates(G4State_Idle);
columnCmd = new G4UIcmdWithAnInteger("/vis/rayTracer/column",this);
columnCmd->SetGuidance("Define the number of horizontal pixels.");
@@ -22,7 +22,7 @@
//
//
// $Id: G4RTOutBitStream.cc,v 1.4 2001/07/11 10:09:04 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4RTSteppingAction.cc,v 1.6 2001/07/11 10:09:04 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4RTTrackingAction.cc,v 1.3 2001/07/11 10:09:04 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4RayShooter.cc,v 1.2 2001/07/11 10:09:04 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4RayShooter.hh"
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RayTracer.cc,v 1.8 2001/07/11 10:09:04 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4RayTracer.cc,v 1.11 2002/12/11 16:00:00 johna Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -84,13 +84,14 @@ G4RayTracer::~G4RayTracer()
delete theRayTracerTrackingAction;
delete theRayTracerSteppingAction;
delete theMessenger;
delete theFigMaker;
}
void G4RayTracer::Trace(G4String fileName)
{
G4StateManager* theStateMan = G4StateManager::GetStateManager();
G4ApplicationState currentState = theStateMan->GetCurrentState();
if(currentState!=Idle)
if(currentState!=G4State_Idle)
{
G4cerr << "Illegal application state - Trace() ignored." << G4endl;
return;
@@ -348,7 +349,10 @@ G4Colour G4RayTracer::Attenuate(G4RayTrajectoryPoint* point, G4Colour sourceCol)
G4double stepAlpha = objCol.GetAlpha();
G4double stepLength = point->GetStepLength();
G4double attenuationFuctor = -stepAlpha/(1.0-stepAlpha)*stepLength/attenuationLength;
G4double attenuationFuctor;
if(stepAlpha > 0.9999999){ stepAlpha = 0.9999999; } // patch to the next line
attenuationFuctor = -stepAlpha/(1.0-stepAlpha)*stepLength/attenuationLength;
G4double KtRed = exp((1.0-stepRed)*attenuationFuctor);
G4double KtGreen = exp((1.0-stepGreen)*attenuationFuctor);
G4double KtBlue = exp((1.0-stepBlue)*attenuationFuctor);
@@ -22,7 +22,7 @@
//
//
// $Id: G4RayTracerSceneHandler.cc,v 1.2 2001/07/11 10:09:05 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
#include "G4RayTracerSceneHandler.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: G4RayTracerViewer.cc,v 1.10 2002/04/22 14:14:38 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
#include "G4RayTracerViewer.hh"
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RayTrajectory.cc,v 1.8 2001/07/11 10:09:05 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4RayTrajectory.cc,v 1.9 2002/10/16 11:42:48 johna Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
@@ -44,7 +44,6 @@
G4Allocator<G4RayTrajectory> G4RayTrajectoryAllocator;
G4RayTrajectory :: G4RayTrajectory()
{
positionRecord = new G4std::vector<G4RayTrajectoryPoint*>;
@@ -112,7 +111,7 @@ void G4RayTrajectory::AppendStep(const G4Step* aStep)
positionRecord->push_back(trajectoryPoint);
}
void G4RayTrajectory::ShowTrajectory() const
void G4RayTrajectory::ShowTrajectory(G4std::ostream& os) const
{ }
void G4RayTrajectory::MergeTrajectory(G4VTrajectory* secondTrajectory)
@@ -22,7 +22,7 @@
//
//
// $Id: G4RayTrajectoryPoint.cc,v 1.3 2001/07/11 10:09:05 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//