Geant4 11.2.2
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 414 of file G4PhysicsVector.cc.

415{
416 // binning
417 G4long prec = out.precision();
418 out << std::setprecision(12) << pv.edgeMin << " " << pv.edgeMax << " "
419 << pv.numberOfNodes << G4endl;
420
421 // contents
422 out << pv.dataVector.size() << G4endl;
423 for (std::size_t i = 0; i < pv.dataVector.size(); ++i)
424 {
425 out << pv.binVector[i] << " " << pv.dataVector[i] << G4endl;
426 }
427 out.precision(prec);
428
429 return out;
430}
long G4long
Definition G4Types.hh:87
#define G4endl
Definition G4ios.hh:67
std::size_t numberOfNodes
std::vector< G4double > dataVector
std::vector< G4double > binVector