Geant4 Cross Reference |
1 /* 1 2 # <<BEGIN-copyright>> 3 # <<END-copyright>> 4 */ 5 6 #include <iostream> 7 #include <stdlib.h> 8 9 #include "GIDI_settings.hh" 10 11 /* 12 ============================================== 13 */ 14 /** 15 This is the top settings class used when a 16 */ 17 GIDI_settings::GIDI_settings( ) { 18 19 } 20 /* 21 ============================================== 22 */ 23 GIDI_settings::~GIDI_settings( ) { 24 25 } 26 /* 27 ============================================== 28 */ 29 int GIDI_settings::addParticle( GIDI_settings_ 30 31 int PoPId = particle.getPoPId( ); 32 33 if( mParticles.find( PoPId ) != mParticles 34 mParticles.insert( std::pair<int, GIDI_set 35 return( 0 ); 36 } 37 /* 38 ============================================== 39 */ 40 GIDI_settings_particle const *GIDI_settings::g 41 42 std::map<int, GIDI_settings_particle>::con 43 44 if( particle == mParticles.end( ) ) return 45 return( &(particle->second) ); 46 } 47 /* 48 ============================================== 49 */ 50 int GIDI_settings::eraseParticle( int PoPId ) 51 52 std::map<int, GIDI_settings_particle>::ite 53 54 if( particle == mParticles.end( ) ) return 55 mParticles.erase( PoPId ); 56 return( 0 ); 57 } 58