Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
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

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

Definition at line 247 of file G4PhysicsTable.cc.

References G4endl, and G4PhysicsTable::GetFlag().

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 }
int G4int
Definition: G4Types.hh:78
G4PhysicsTable::iterator G4PhysicsTableIterator
#define G4endl
Definition: G4ios.hh:61
G4bool GetFlag(size_t i) const