Geant4 10.7.0
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 "G4LPhysicsFreeVector.hh"
#include "G4PhysicsFreeVector.hh"
#include "G4PhysicsLinearVector.hh"
#include "G4PhysicsLnVector.hh"
#include "G4PhysicsLogVector.hh"
#include "G4PhysicsOrderedFreeVector.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 235 of file G4PhysicsTable.cc.

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