Import Geant4 3.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4DCtable.cc,v 1.1.8.1.2.1 1999/12/07 20:52:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4DCtable.cc,v 1.4 2001/02/08 06:07:21 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
|
||||
#include "G4DCtable.hh"
|
||||
@@ -17,11 +17,11 @@ G4DCtable::~G4DCtable() {;}
|
||||
|
||||
G4int G4DCtable::Registor(G4String DMname,G4String DCname)
|
||||
{
|
||||
for(int i=0;i<DClist.entries();i++)
|
||||
for(int i=0;i<DClist.size();i++)
|
||||
{ if(DClist[i]==DCname && DMlist[i]==DMname) return -1; }
|
||||
DClist.insert(DCname);
|
||||
DMlist.insert(DMname);
|
||||
return DClist.entries();
|
||||
DClist.push_back(DCname);
|
||||
DMlist.push_back(DMname);
|
||||
return DClist.size();
|
||||
}
|
||||
|
||||
G4int G4DCtable::GetCollectionID(G4String DCname)
|
||||
@@ -29,7 +29,7 @@ G4int G4DCtable::GetCollectionID(G4String DCname)
|
||||
G4int i = -1;
|
||||
if(DCname.index("/")==G4std::string::npos) // DCname only
|
||||
{
|
||||
for(G4int j=0;j<DClist.entries();j++)
|
||||
for(G4int j=0;j<DClist.size();j++)
|
||||
{
|
||||
if(DClist[j]==DCname)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ G4int G4DCtable::GetCollectionID(G4String DCname)
|
||||
}
|
||||
else
|
||||
{
|
||||
for(G4int j=0;j<DClist.entries();j++)
|
||||
for(G4int j=0;j<DClist.size();j++)
|
||||
{
|
||||
G4String tgt = DMlist[j];
|
||||
tgt += "/";
|
||||
|
||||
Reference in New Issue
Block a user