Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhysicsTable.cc File Reference
#include <iostream>
#include <fstream>
#include <iomanip>
#include "G4PhysicsVector.hh"
#include "G4PhysicsTable.hh"
#include "G4PhysicsVectorType.hh"
#include "G4LPhysicsFreeVector.hh"
#include "G4PhysicsLogVector.hh"
#include "G4PhysicsFreeVector.hh"
#include "G4PhysicsOrderedFreeVector.hh"
#include "G4PhysicsLinearVector.hh"
#include "G4PhysicsLnVector.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 247 of file G4PhysicsTable.cc.

249{
250 // Printout Physics Vector
251 size_t i=0;
252 for (G4PhysicsTableIterator itr=right.begin(); itr!=right.end(); ++itr)
253 {
254 out << std::setw(8) << i << "-th Vector ";
255 out << ": Type " << G4int((*itr)->GetType()) ;
256 out << ": Flag ";
257 if (right.GetFlag(i))
258 {
259 out << " T";
260 }
261 else
262 {
263 out << " F";
264 }
265 out << G4endl;
266 out << *(*itr);
267 i +=1;
268 }
269 out << G4endl;
270 return out;
271}
G4PhysicsTable::iterator G4PhysicsTableIterator
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4bool GetFlag(size_t i) const