Geant4 11.4.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)

Function Documentation

◆ operator<<()

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

Definition at line 434 of file G4PhysicsVector.cc.

435{
436 // binning
437 G4long prec = out.precision();
438 out << std::setprecision(12) << pv.edgeMin << " " << pv.edgeMax << " "
439 << pv.numberOfNodes << G4endl;
440
441 // contents
442 out << pv.dataVector.size() << G4endl;
443 for (std::size_t i = 0; i < pv.dataVector.size(); ++i)
444 {
445 out << pv.binVector[i] << " " << pv.dataVector[i] << G4endl;
446 }
447 out.precision(prec);
448
449 return out;
450}
long G4long
Definition G4Types.hh:87
#define G4endl
Definition G4ios.hh:67
std::size_t numberOfNodes
std::vector< G4double > dataVector
std::vector< G4double > binVector