Geant4-11
Functions
G4PhysicsTable.cc File Reference
#include <fstream>
#include <iomanip>
#include <iostream>
#include "G4PhysicsFreeVector.hh"
#include "G4PhysicsLinearVector.hh"
#include "G4PhysicsLogVector.hh"
#include "G4PhysicsTable.hh"
#include "G4PhysicsVector.hh"
#include "G4PhysicsVectorType.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, G4PhysicsTable &right)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
G4PhysicsTable right 
)

Definition at line 232 of file G4PhysicsTable.cc.

233{
234 // Printout Physics Vector
235 std::size_t i = 0;
236 for(auto itr = right.cbegin(); itr != right.cend(); ++itr)
237 {
238 out << std::setw(8) << i << "-th Vector ";
239 out << ": Type " << G4int((*itr)->GetType());
240 out << ": Flag ";
241 if(right.GetFlag(i))
242 {
243 out << " T";
244 }
245 else
246 {
247 out << " F";
248 }
249 out << G4endl;
250 out << *(*itr);
251 ++i;
252 }
253 out << G4endl;
254 return out;
255}
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4bool GetFlag(std::size_t i) const