Import Geant4 9.0.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4AllocatorPool.cc,v 1.4 2006/06/29 19:03:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DataVector.cc,v 1.8 2006/06/29 19:03:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ErrorPropagatorData.cc,v 1.3 2007/06/05 13:04:30 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#include "G4ErrorPropagatorData.hh"
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
G4ErrorPropagatorData* G4ErrorPropagatorData::theErrorPropagatorData = 0;
|
||||
|
||||
G4int G4ErrorPropagatorData::theVerbosity = 0;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
G4ErrorPropagatorData::G4ErrorPropagatorData(){}
|
||||
G4ErrorPropagatorData::~G4ErrorPropagatorData(){}
|
||||
|
||||
G4ErrorPropagatorData* G4ErrorPropagatorData::GetErrorPropagatorData()
|
||||
{
|
||||
static G4ErrorPropagatorData errorPropagatorData;
|
||||
if( !theErrorPropagatorData )
|
||||
{
|
||||
theErrorPropagatorData = &errorPropagatorData;
|
||||
}
|
||||
return theErrorPropagatorData;
|
||||
}
|
||||
|
||||
G4int G4ErrorPropagatorData::verbose()
|
||||
{
|
||||
return theVerbosity;
|
||||
}
|
||||
|
||||
void G4ErrorPropagatorData::SetVerbose( G4int ver )
|
||||
{
|
||||
theVerbosity = ver;
|
||||
}
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Exception.cc,v 1.20 2006/06/29 19:04:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GeometryTolerance.cc,v 1.2 2007/06/18 13:26:40 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
// class G4GeometryTolerance
|
||||
//
|
||||
// Implementation
|
||||
//
|
||||
// Author:
|
||||
// 30.10.06 - G.Cosmo, first implementation
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#include "G4GeometryTolerance.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
// ***************************************************************************
|
||||
// Static class data
|
||||
// ***************************************************************************
|
||||
//
|
||||
G4GeometryTolerance* G4GeometryTolerance::fInstance = 0;
|
||||
G4bool G4GeometryTolerance::fInitialised = false;
|
||||
G4double G4GeometryTolerance::fCarTolerance = 1E-9*mm;
|
||||
G4double G4GeometryTolerance::fAngTolerance = 1E-9*rad;
|
||||
G4double G4GeometryTolerance::fRadTolerance = 1E-9*mm;
|
||||
|
||||
// ***************************************************************************
|
||||
// Constructor.
|
||||
// ***************************************************************************
|
||||
//
|
||||
G4GeometryTolerance::G4GeometryTolerance()
|
||||
{
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Empty destructor.
|
||||
// ***************************************************************************
|
||||
//
|
||||
G4GeometryTolerance::~G4GeometryTolerance()
|
||||
{
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Returns the instance of the singleton.
|
||||
// Creates it in case it's called for the first time.
|
||||
// ***************************************************************************
|
||||
//
|
||||
G4GeometryTolerance* G4GeometryTolerance::GetInstance()
|
||||
{
|
||||
static G4GeometryTolerance theToleranceManager;
|
||||
if (!fInstance)
|
||||
{
|
||||
fInstance = &theToleranceManager;
|
||||
}
|
||||
return fInstance;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Accessors.
|
||||
// ***************************************************************************
|
||||
//
|
||||
G4double G4GeometryTolerance::GetSurfaceTolerance() const
|
||||
{
|
||||
return fCarTolerance;
|
||||
}
|
||||
|
||||
G4double G4GeometryTolerance::GetAngularTolerance() const
|
||||
{
|
||||
return fAngTolerance;
|
||||
}
|
||||
|
||||
G4double G4GeometryTolerance::GetRadialTolerance() const
|
||||
{
|
||||
return fRadTolerance;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Sets the tolerance to a value computed on the basis of the world volume
|
||||
// extent provided as argument. The method can be called only once.
|
||||
// ***************************************************************************
|
||||
//
|
||||
void G4GeometryTolerance::SetSurfaceTolerance(G4double worldExtent)
|
||||
{
|
||||
if (!fInitialised)
|
||||
{
|
||||
fCarTolerance = worldExtent*1E-11*mm;
|
||||
fInitialised = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
G4cout << "WARNING - G4GeometryTolerance::SetSurfaceTolerance()" << G4endl
|
||||
<< " Tolerance can only be set once. Currently set to: "
|
||||
<< fCarTolerance/mm << " mm." << G4endl;
|
||||
G4Exception("G4GeometryTolerance::SetSurfaceTolerance()",
|
||||
"NotApplicable", JustWarning,
|
||||
"The tolerance has been already set!");
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LPhysicsFreeVector.cc,v 1.10 2006/06/29 19:04:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4LPhysicsFreeVector.cc,v 1.12 2007/05/14 10:27:06 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
@@ -36,12 +36,10 @@
|
||||
// F.W. Jones, TRIUMF, 04-JUN-96
|
||||
//
|
||||
// 27-MAR-97 FWJ: first version for Alpha release
|
||||
// 11-NOV-00 H.Kurashige : use STL vector for dataVector and binVector
|
||||
//
|
||||
|
||||
#include "G4LPhysicsFreeVector.hh"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "G4ios.hh"
|
||||
|
||||
G4LPhysicsFreeVector::G4LPhysicsFreeVector()
|
||||
: verboseLevel(0)
|
||||
@@ -66,9 +64,9 @@ G4LPhysicsFreeVector::G4LPhysicsFreeVector(size_t nbin,
|
||||
lastEnergy = 0.;
|
||||
lastValue = 0.;
|
||||
lastBin = 0;
|
||||
binVector.reserve(nbin);
|
||||
dataVector.reserve(nbin);
|
||||
for (size_t i=0; i<numberOfBin; i++)
|
||||
binVector.reserve(nbin+1);
|
||||
dataVector.reserve(nbin+1);
|
||||
for (size_t i=0; i<=numberOfBin; i++)
|
||||
{
|
||||
binVector.push_back(0.0);
|
||||
dataVector.push_back(0.0);
|
||||
@@ -83,6 +81,6 @@ void G4LPhysicsFreeVector::DumpValues()
|
||||
{
|
||||
for (size_t i = 0; i < numberOfBin; i++)
|
||||
{
|
||||
printf(" %12.4f %7.1f\n", binVector[i], dataVector[i]/millibarn);
|
||||
G4cout << binVector[i] << " " << dataVector[i]/millibarn << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4OrderedTable.cc,v 1.5 2006/06/29 19:04:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsFreeVector.cc,v 1.10 2006/06/29 19:04:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsLinearVector.cc,v 1.12 2006/06/29 19:04:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsLnVector.cc,v 1.15 2006/06/29 19:04:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsLogVector.cc,v 1.13 2006/06/29 19:04:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsOrderedFreeVector.cc,v 1.10 2006/06/29 19:04:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// PhysicsOrderedFreeVector Class Implementation
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsTable.cc,v 1.14 2006/06/29 19:04:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicsVector.cc,v 1.17 2006/06/29 19:04:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4SliceTimer.cc,v 1.2 2006/11/02 15:39:39 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4StateManager.cc,v 1.13 2006/11/23 00:41:56 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Timer.cc,v 1.15 2006/06/29 19:04:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UnitsTable.cc,v 1.36 2006/11/30 10:37:57 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VExceptionHandler.cc,v 1.3 2006/06/29 19:04:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VNotifier.cc,v 1.2 2006/06/29 19:04:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
// G4VNotifier
|
||||
//
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VStateDependent.cc,v 1.5 2006/06/29 19:04:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4coutDestination.cc,v 1.2 2006/06/29 19:04:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ios.cc,v 1.9 2006/06/29 19:04:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user