93 G4PhysCollection::resize(siz, vec);
104 { fOut.open(fileName, std::ios::out|std::ios::binary); }
106 { fOut.open(fileName, std::ios::out); }
112 G4cerr <<
"G4PhysicsTable::StorePhysicsTable():";
120 size_t tableSize = size();
123 fOut.write( (
char*)(&tableSize),
sizeof tableSize);
127 fOut << tableSize <<
G4endl;
133 G4int vType = (*itr)->GetType();
136 fOut.write( (
char*)(&vType),
sizeof vType);
142 (*itr)->Store(fOut,ascii);
179 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
193 fIn.read((
char*)(&tableSize),
sizeof tableSize);
208 fIn.read( (
char*)(&vType),
sizeof vType);
218 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
219 G4cerr <<
" Illegal Physics Vector type: " << vType <<
" in: ";
229 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
231 <<
"-th Physics Vector from file: ";
239 G4PhysCollection::push_back(pVec);
254 out << std::setw(8) << i <<
"-th Vector ";
255 out <<
": Type " <<
G4int((*itr)->GetType()) ;
275 size_t tableSize = G4PhysCollection::size();