Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DCtable.cc,v 2.1 1998/07/12 03:08:27 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
#include "G4DCtable.hh"
G4DCtable::G4DCtable() {;}
G4DCtable::~G4DCtable() {;}
G4int G4DCtable::Registor(G4String DMname,G4String DCname)
{
for(int i=0;i<DClist.entries();i++)
{ if(DClist[i]==DCname && DMlist[i]==DMname) return -1; }
DClist.insert(DCname);
DMlist.insert(DMname);
return DClist.entries();
}
G4int G4DCtable::GetCollectionID(G4String DCname)
{
G4int i = -1;
if(DCname.index("/")==RW_NPOS) // DCname only
{
for(G4int j=0;j<DClist.entries();j++)
{
if(DClist[j]==DCname)
{
if(i>=0) return -2;
i = j;
}
}
}
else
{
for(G4int j=0;j<DClist.entries();j++)
{
G4String tgt = DMlist[j];
tgt += "/";
tgt += DClist[j];
if(tgt==DCname)
{
if(i>=0) return -2;
i = j;
}
}
}
return i;
}