G4PhysicsVector.cc File Reference

#include "G4PhysicsVector.hh"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const G4PhysicsVector &pv)

Variables

G4Allocator< G4PhysicsVectoraPVAllocator


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const G4PhysicsVector pv 
)

Definition at line 487 of file G4PhysicsVector.cc.

References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::edgeMax, G4PhysicsVector::edgeMin, G4endl, and G4PhysicsVector::numberOfNodes.

00488 {
00489   // binning
00490   out << std::setprecision(12) << pv.edgeMin << " "
00491       << pv.edgeMax << " " << pv.numberOfNodes << G4endl; 
00492 
00493   // contents
00494   out << pv.dataVector.size() << G4endl; 
00495   for(size_t i = 0; i < pv.dataVector.size(); i++)
00496   {
00497     out << pv.binVector[i] << "  " << pv.dataVector[i] << G4endl;
00498   }
00499   out << std::setprecision(6);
00500 
00501   return out;
00502 }


Variable Documentation

G4Allocator<G4PhysicsVector> aPVAllocator

Definition at line 59 of file G4PhysicsVector.cc.

Referenced by G4PhysicsVector::operator delete(), and G4PhysicsVector::operator new().


Generated on Mon May 27 17:51:01 2013 for Geant4 by  doxygen 1.4.7