Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -21,15 +21,16 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G3PartTable.cc,v 1.10 2001/07/11 09:58:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: G3PartTable.cc,v 1.12 2003/06/16 16:50:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
|
||||
#include "g4std/strstream"
|
||||
#include "g4std/iomanip"
|
||||
#include "G4Types.hh"
|
||||
#include <strstream>
|
||||
#include <iomanip>
|
||||
#include "G3PartTable.hh"
|
||||
|
||||
typedef G4std::map<G4String, G4ParticleDefinition*, G4std::less<G4String> >
|
||||
typedef std::map<G4String, G4ParticleDefinition*, std::less<G4String> >
|
||||
::iterator PTDiterator;
|
||||
|
||||
G3PartTable::G3PartTable(){
|
||||
@@ -63,8 +64,8 @@ G3PartTable::Put(G4int partid, G4ParticleDefinition *partpt){
|
||||
void
|
||||
G3PartTable::HashID(G4int partid, G4String& theHashID){
|
||||
char s[20];
|
||||
G4std::ostrstream ostr(s, sizeof s);
|
||||
ostr << "Part" << partid << G4std::ends;
|
||||
std::ostrstream ostr(s, sizeof s);
|
||||
ostr << "Part" << partid << std::ends;
|
||||
theHashID = s;
|
||||
}
|
||||
|
||||
@@ -81,7 +82,7 @@ G3PartTable::PrintAll(){
|
||||
for (PTDiterator i=PTD.begin(); i != PTD.end(); i++) {
|
||||
count++;
|
||||
G4ParticleDefinition* aPTD = (*i).second;
|
||||
G4cout << "PTD entry " << G4std::setw(3) << count << " particle name: "
|
||||
G4cout << "PTD entry " << std::setw(3) << count << " particle name: "
|
||||
<< aPTD->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user