#include <G4PhysicsTable.hh>
Definition at line 66 of file G4PhysicsTable.hh.
◆ G4FlagCollection
◆ G4PhysCollection
◆ G4PhysicsTable() [1/3]
G4PhysicsTable::G4PhysicsTable |
( |
| ) |
|
Definition at line 51 of file G4PhysicsTable.cc.
std::vector< G4PhysicsVector * > G4PhysCollection
◆ G4PhysicsTable() [2/3]
G4PhysicsTable::G4PhysicsTable |
( |
size_t |
cap | ) |
|
|
explicit |
Definition at line 56 of file G4PhysicsTable.cc.
std::vector< G4PhysicsVector * > G4PhysCollection
◆ ~G4PhysicsTable()
G4PhysicsTable::~G4PhysicsTable |
( |
| ) |
|
|
virtual |
◆ G4PhysicsTable() [3/3]
Definition at line 63 of file G4PhysicsTable.cc.
std::vector< G4PhysicsVector * > G4PhysCollection
◆ clearAndDestroy()
void G4PhysicsTable::clearAndDestroy |
( |
| ) |
|
◆ ClearFlag()
void G4PhysicsTable::ClearFlag |
( |
size_t |
i | ) |
|
◆ CreatePhysicsVector()
◆ entries()
size_t G4PhysicsTable::entries |
( |
| ) |
const |
◆ ExistPhysicsTable()
G4bool G4PhysicsTable::ExistPhysicsTable |
( |
const G4String & |
fileName | ) |
const |
◆ GetFlag()
G4bool G4PhysicsTable::GetFlag |
( |
size_t |
i | ) |
const |
◆ insert()
◆ insertAt()
◆ isEmpty()
G4bool G4PhysicsTable::isEmpty |
( |
| ) |
const |
◆ length()
size_t G4PhysicsTable::length |
( |
| ) |
const |
◆ operator()() [1/2]
◆ operator()() [2/2]
◆ operator=()
Definition at line 69 of file G4PhysicsTable.cc.
74 for (G4PhysCollection::const_iterator itr=right.begin();
75 itr!=right.end(); ++itr )
77 G4PhysCollection::push_back(*itr);
G4bool GetFlag(size_t i) const
◆ push_back()
◆ ResetFlagArray()
void G4PhysicsTable::ResetFlagArray |
( |
| ) |
|
Definition at line 273 of file G4PhysicsTable.cc.
275 size_t tableSize = G4PhysCollection::size();
277 for (
size_t idx=0; idx<tableSize; idx++)
◆ resize()
◆ RetrievePhysicsTable()
Definition at line 165 of file G4PhysicsTable.cc.
179 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
193 fIn.read((
char*)(&tableSize),
sizeof tableSize);
203 for (
size_t idx=0; idx<tableSize; ++idx)
208 fIn.read( (
char*)(&vType),
sizeof vType);
218 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
219 G4cerr <<
" Illegal Physics Vector type: " << vType <<
" in: ";
229 G4cerr <<
"G4PhysicsTable::RetrievePhysicsTable():";
230 G4cerr <<
" Rrror in retreiving " << idx
231 <<
"-th Physics Vector from file: ";
239 G4PhysCollection::push_back(pVec);
G4PhysicsVector * CreatePhysicsVector(G4int type)
virtual G4bool Retrieve(std::ifstream &fIn, G4bool ascii=false)
G4GLOB_DLL std::ostream G4cerr
◆ StorePhysicsTable()
Definition at line 97 of file G4PhysicsTable.cc.
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);
G4PhysicsTable::iterator G4PhysicsTableIterator
G4GLOB_DLL std::ostream G4cerr
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
G4PhysicsTable & |
table |
|
) |
| |
|
friend |
Definition at line 247 of file G4PhysicsTable.cc.
254 out << std::setw(8) << i <<
"-th Vector ";
255 out <<
": Type " <<
G4int((*itr)->GetType()) ;
257 if (
right.GetFlag(i))
G4PhysicsTable::iterator G4PhysicsTableIterator
◆ vecFlag
The documentation for this class was generated from the following files: