Geant4 10.7.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 499 of file G4PhysicsVector.cc.

500{
501 // binning
502 G4int prec = out.precision();
503 out << std::setprecision(12) << pv.edgeMin << " " << pv.edgeMax << " "
504 << pv.numberOfNodes << G4endl;
505
506 // contents
507 out << pv.dataVector.size() << G4endl;
508 for(std::size_t i = 0; i < pv.dataVector.size(); ++i)
509 {
510 out << pv.binVector[i] << " " << pv.dataVector[i] << G4endl;
511 }
512 out << std::setprecision(prec);
513
514 return out;
515}
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4PVDataVector binVector
std::size_t numberOfNodes
G4PVDataVector dataVector