Import Geant4 5.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:28:22 +02:00
parent fbd4999cf7
commit 4aea781e80
5454 changed files with 223141 additions and 67347 deletions
+14 -18
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4PhysicsTable.cc,v 1.7 2003/03/25 14:56:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4PhysicsTable.cc,v 1.8 2003/06/06 16:17:17 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
//
// ------------------------------------------------------------
@@ -34,9 +34,9 @@
#include "G4PhysicsVector.hh"
#include "G4PhysicsTable.hh"
#include "g4std/iostream"
#include "g4std/fstream"
#include "g4std/iomanip"
#include <iostream>
#include <fstream>
#include <iomanip>
G4PhysicsTable::G4PhysicsTable()
: G4PhysCollection()
@@ -77,15 +77,13 @@ G4PhysicsTable::~G4PhysicsTable()
G4bool G4PhysicsTable::StorePhysicsTable(const G4String& fileName,
G4bool ascii)
{
G4std::ofstream fOut;
std::ofstream fOut;
// open output file //
#ifdef G4USE_STD_NAMESPACE
if (!ascii)
fOut.open(fileName, G4std::ios::out|G4std::ios::binary);
fOut.open(fileName, std::ios::out|std::ios::binary);
else
#endif
fOut.open(fileName, G4std::ios::out);
fOut.open(fileName, std::ios::out);
// check if the file has been opened successfully
if (!fOut) {
@@ -125,14 +123,12 @@ G4bool G4PhysicsTable::StorePhysicsTable(const G4String& fileName,
G4bool G4PhysicsTable::RetrievePhysicsTable(const G4String& fileName,
G4bool ascii)
{
G4std::ifstream fIn;
std::ifstream fIn;
// open input file //
#ifdef G4USE_STD_NAMESPACE
if (ascii)
fIn.open(fileName,G4std::ios::in|G4std::ios::binary);
fIn.open(fileName,std::ios::in|std::ios::binary);
else
#endif
fIn.open(fileName,G4std::ios::in);
fIn.open(fileName,std::ios::in);
// check if the file has been opened successfully
if (!fIn) {
@@ -192,14 +188,14 @@ G4bool G4PhysicsTable::RetrievePhysicsTable(const G4String& fileName,
return true;
}
G4std::ostream& operator<<(G4std::ostream& out,
G4PhysicsTable& right)
std::ostream& operator<<(std::ostream& out,
G4PhysicsTable& right)
{
// Printout Physics Vector
G4PhysicsTableIterator itr;
size_t i=0;
for (itr=right.begin(); itr!=right.end(); ++itr) {
out << G4std::setw(8) << i << "-th Vector ";
out << std::setw(8) << i << "-th Vector ";
out << ": Type " << G4int((*itr)->GetType()) << G4endl;
out << *(*itr);
i +=1;