Geant4 11.3.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 "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 if (nullptr == (*itr)) {
234 out << "empty" << G4endl;
235 ++i;
236 continue;
237 }
238 out << ": Type " << G4int((*itr)->GetType());
239 out << ": Flag ";
240 if(right.GetFlag(i))
241 {
242 out << " T";
243 }
244 else
245 {
246 out << " F";
247 }
248 out << G4endl;
249 out << *(*itr);
250 ++i;
251 }
252 out << G4endl;
253 return out;
254}
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4bool GetFlag(std::size_t i) const