Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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

◆ operator<<()

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

Definition at line 487 of file G4PhysicsVector.cc.

488{
489 // binning
490 out << std::setprecision(12) << pv.edgeMin << " "
491 << pv.edgeMax << " " << pv.numberOfNodes << G4endl;
492
493 // contents
494 out << pv.dataVector.size() << G4endl;
495 for(size_t i = 0; i < pv.dataVector.size(); i++)
496 {
497 out << pv.binVector[i] << " " << pv.dataVector[i] << G4endl;
498 }
499 out << std::setprecision(6);
500
501 return out;
502}
#define G4endl
Definition: G4ios.hh:52
G4PVDataVector binVector
G4PVDataVector dataVector

Variable Documentation

◆ aPVAllocator

Definition at line 59 of file G4PhysicsVector.cc.