Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:11:34

0001 // ----------------------------------------------------------------------
0002 //
0003 // ParticleDataTable.icc
0004 // Author: Lynn Garren, Walter Brown
0005 //
0006 // ----------------------------------------------------------------------
0007 
0008 namespace HepPDT {
0009 
0010 // default constructor
0011 inline ParticleDataTable::ParticleDataTable( std::string name, 
0012                                              ProcessUnknownID* process )
0013 : itsTableName ( name ), itsProcessUnknownID( process )
0014 { 
0015     version(); 
0016 }
0017 
0018 inline ParticleDataTable::~ParticleDataTable()
0019 { 
0020   delete itsProcessUnknownID; 
0021 }
0022 
0023 inline ParticleData * ParticleDataTable::operator [] ( ParticleID key )
0024 {
0025   return particle( key );
0026 }
0027 
0028 inline ParticleData const * ParticleDataTable::operator [] ( ParticleID key ) const
0029 {
0030   return particle( key );
0031 }
0032 
0033 inline ParticleData * ParticleDataTable::operator [] ( std::string nkey )
0034 {
0035   return particle( nkey );
0036 }
0037 
0038 inline ParticleData const * ParticleDataTable::operator [] ( std::string nkey ) const
0039 {
0040   return particle( nkey );
0041 }
0042 
0043 }   // HepPDT