#include <G4PhysicsTable.hh>
Definition at line 66 of file G4PhysicsTable.hh.
G4PhysicsTable::G4PhysicsTable |
( |
| ) |
|
G4PhysicsTable::G4PhysicsTable |
( |
size_t |
cap | ) |
|
|
explicit |
G4PhysicsTable::~G4PhysicsTable |
( |
| ) |
|
|
virtual |
void G4PhysicsTable::clearAndDestroy |
( |
| ) |
|
void G4PhysicsTable::ClearFlag |
( |
size_t |
i | ) |
|
size_t G4PhysicsTable::entries |
( |
| ) |
const |
G4bool G4PhysicsTable::ExistPhysicsTable |
( |
const G4String & |
fileName | ) |
const |
Definition at line 150 of file G4PhysicsTable.cc.
155 fIn.open(fileName,std::ios::in);
const XML_Char int const XML_Char * value
G4bool G4PhysicsTable::GetFlag |
( |
size_t |
i | ) |
const |
G4bool G4PhysicsTable::isEmpty |
( |
| ) |
const |
size_t G4PhysicsTable::length |
( |
| ) |
const |
void G4PhysicsTable::ResetFlagArray |
( |
| ) |
|
Definition at line 274 of file G4PhysicsTable.cc.
276 size_t tableSize = G4PhysCollection::size();
278 for (
size_t idx=0; idx<tableSize; idx++)
Definition at line 166 of file G4PhysicsTable.cc.
172 { fIn.open(fileName,std::ios::in|std::ios::binary); }
174 { fIn.open(fileName,std::ios::in);}
180 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
194 fIn.read((
char*)(&tableSize),
sizeof tableSize);
204 for (
size_t idx=0; idx<tableSize; ++idx)
209 fIn.read( (
char*)(&vType),
sizeof vType);
219 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
220 G4cerr <<
" Illegal Physics Vector type: " << vType <<
" in: ";
230 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
231 G4cerr <<
" Rrror in retreiving " << idx
232 <<
"-th Physics Vector from file: ";
240 G4PhysCollection::push_back(pVec);
G4PhysicsVector * CreatePhysicsVector(G4int type)
virtual G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)
G4GLOB_DLL std::ostream G4cerr
Definition at line 98 of file G4PhysicsTable.cc.
105 { fOut.open(fileName, std::ios::out|std::ios::binary); }
107 { fOut.open(fileName, std::ios::out); }
113 G4cerr <<
"G4PhysicsTable::StorePhysicsTable():";
121 size_t tableSize = size();
124 fOut.write( (
char*)(&tableSize),
sizeof tableSize);
128 fOut << tableSize <<
G4endl;
134 G4int vType = (*itr)->GetType();
137 fOut.write( (
char*)(&vType),
sizeof vType);
143 (*itr)->Store(fOut,ascii);
G4PhysicsTable::iterator G4PhysicsTableIterator
G4GLOB_DLL std::ostream G4cerr
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
G4PhysicsTable & |
table |
|
) |
| |
|
friend |
Definition at line 248 of file G4PhysicsTable.cc.
255 out << std::setw(8) << i <<
"-th Vector ";
256 out <<
": Type " <<
G4int((*itr)->GetType()) ;
258 if (right.GetFlag(i))
G4PhysicsTable::iterator G4PhysicsTableIterator
G4FlagCollection G4PhysicsTable::vecFlag |
|
protected |
The documentation for this class was generated from the following files: