Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4SPBaryonTable Class Reference

#include <G4SPBaryonTable.hh>

Classes

struct  DeleteSPBaryon
 

Public Member Functions

 ~G4SPBaryonTable ()
 
void insert (G4SPBaryon *aBaryon)
 
G4double length ()
 
const G4SPBaryonGetBaryon (G4ParticleDefinition *aDefinition)
 

Detailed Description

Definition at line 32 of file G4SPBaryonTable.hh.

Constructor & Destructor Documentation

G4SPBaryonTable::~G4SPBaryonTable ( )
inline

Definition at line 37 of file G4SPBaryonTable.hh.

37 {std::for_each(theBaryons.begin(), theBaryons.end(), G4SPBaryonTable::DeleteSPBaryon());}

Member Function Documentation

const G4SPBaryon * G4SPBaryonTable::GetBaryon ( G4ParticleDefinition aDefinition)
inline

Definition at line 48 of file G4SPBaryonTable.hh.

49 {
50  G4SPBaryon * result = 0;
51  for(unsigned int i=0; i<theBaryons.size(); i++)
52  {
53  if(theBaryons[i]->GetDefinition()==aDefinition)
54  {
55  result = theBaryons[i];
56  break;
57  }
58  }
59  return result;
60 }
G4double G4ParticleHPJENDLHEData::G4double result

Here is the caller graph for this function:

void G4SPBaryonTable::insert ( G4SPBaryon aBaryon)
inline

Definition at line 38 of file G4SPBaryonTable.hh.

38 { theBaryons.push_back(aBaryon);}

Here is the caller graph for this function:

G4double G4SPBaryonTable::length ( )
inline

Definition at line 39 of file G4SPBaryonTable.hh.

39 {return theBaryons.size();}

The documentation for this class was generated from the following file: