Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 226 of file G4PhysicsTable.cc.

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