G4MCCIndexConversionTable Class Reference

#include <G4MCCIndexConversionTable.hh>


Public Member Functions

 G4MCCIndexConversionTable ()
virtual ~G4MCCIndexConversionTable ()
void Reset (size_t size)
G4bool IsUsed (size_t index) const
void SetNewIndex (size_t index, size_t new_value)
G4int GetIndex (size_t index) const
size_t size () const

Protected Types

typedef std::vector< G4intG4IntVector

Protected Attributes

G4IntVector vecNewIndex


Detailed Description

Definition at line 54 of file G4MCCIndexConversionTable.hh.


Member Typedef Documentation

typedef std::vector<G4int> G4MCCIndexConversionTable::G4IntVector [protected]

Definition at line 82 of file G4MCCIndexConversionTable.hh.


Constructor & Destructor Documentation

G4MCCIndexConversionTable::G4MCCIndexConversionTable (  ) 

Definition at line 41 of file G4MCCIndexConversionTable.cc.

00042 {
00043 
00044 } 

G4MCCIndexConversionTable::~G4MCCIndexConversionTable (  )  [virtual]

Definition at line 46 of file G4MCCIndexConversionTable.cc.

References vecNewIndex.

00047 {
00048   vecNewIndex.clear();
00049 }


Member Function Documentation

G4int G4MCCIndexConversionTable::GetIndex ( size_t  index  )  const [inline]

Definition at line 106 of file G4MCCIndexConversionTable.hh.

References vecNewIndex.

Referenced by G4ProductionCutsTable::RetrieveCutsInfo(), and G4PhysicsTableHelper::RetrievePhysicsTable().

00107 {
00108   if (index >= vecNewIndex.size()) return -1;
00109   // get the index in the current production cut table
00110   // for the indicated MCC in the file
00111   return (vecNewIndex[index]);  
00112 }

G4bool G4MCCIndexConversionTable::IsUsed ( size_t  index  )  const [inline]

Definition at line 87 of file G4MCCIndexConversionTable.hh.

References vecNewIndex.

Referenced by G4ProductionCutsTable::RetrieveCutsInfo(), and G4PhysicsTableHelper::RetrievePhysicsTable().

00088 {
00089   if (index >= vecNewIndex.size()) return false;
00090 
00091   // returns 'true' if the indicated MCC in the file 
00092   // is used in the current production cut table
00093   return (vecNewIndex[index] >= 0); 
00094 }

void G4MCCIndexConversionTable::Reset ( size_t  size  ) 

Definition at line 51 of file G4MCCIndexConversionTable.cc.

References vecNewIndex.

Referenced by G4ProductionCutsTable::CheckMaterialCutsCoupleInfo().

00052 {
00053   // reset conversion table 
00054   vecNewIndex.clear();
00055   vecNewIndex.resize(siz, -1);
00056 }

void G4MCCIndexConversionTable::SetNewIndex ( size_t  index,
size_t  new_value 
) [inline]

Definition at line 97 of file G4MCCIndexConversionTable.hh.

References vecNewIndex.

Referenced by G4ProductionCutsTable::CheckMaterialCutsCoupleInfo().

00098 {
00099   if (index >= vecNewIndex.size()) return;
00100   // set the index in the current production cut table
00101   // for the indicated MCC in the file
00102   vecNewIndex[index]=new_value;  
00103 }  

size_t G4MCCIndexConversionTable::size (  )  const [inline]

Definition at line 115 of file G4MCCIndexConversionTable.hh.

References vecNewIndex.

Referenced by G4ProductionCutsTable::RetrieveCutsInfo(), and G4PhysicsTableHelper::RetrievePhysicsTable().

00116 {
00117   return vecNewIndex.size();
00118 }


Field Documentation

G4IntVector G4MCCIndexConversionTable::vecNewIndex [protected]

Definition at line 83 of file G4MCCIndexConversionTable.hh.

Referenced by GetIndex(), IsUsed(), Reset(), SetNewIndex(), size(), and ~G4MCCIndexConversionTable().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:28 2013 for Geant4 by  doxygen 1.4.7