Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PhysicsVector.cc File Reference
#include <iomanip>
#include "G4PhysicsVector.hh"
Include dependency graph for G4PhysicsVector.cc:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 479 of file G4PhysicsVector.cc.

480 {
481  // binning
482  out << std::setprecision(12) << pv.edgeMin << " "
483  << pv.edgeMax << " " << pv.numberOfNodes << G4endl;
484 
485  // contents
486  out << pv.dataVector.size() << G4endl;
487  for(size_t i = 0; i < pv.dataVector.size(); i++)
488  {
489  out << pv.binVector[i] << " " << pv.dataVector[i] << G4endl;
490  }
491  out << std::setprecision(6);
492 
493  return out;
494 }
G4PVDataVector dataVector
G4PVDataVector binVector
#define G4endl
Definition: G4ios.hh:61