Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DataVector.cc File Reference
#include "G4DataVector.hh"
#include <iomanip>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 129 of file G4DataVector.cc.

130{
131 out << pv.size() << std::setprecision(12) << G4endl;
132 for(std::size_t i = 0; i < pv.size(); ++i)
133 {
134 out << pv[i] << G4endl;
135 }
136 out << std::setprecision(6);
137
138 return out;
139}
#define G4endl
Definition: G4ios.hh:57