Geant4  10.02.p03
G4SPBaryonTable Class Reference

#include <G4SPBaryonTable.hh>

Collaboration diagram for G4SPBaryonTable:

Classes

struct  DeleteSPBaryon
 

Public Member Functions

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

Private Attributes

std::vector< G4SPBaryon * > theBaryons
 

Detailed Description

Definition at line 32 of file G4SPBaryonTable.hh.

Constructor & Destructor Documentation

◆ ~G4SPBaryonTable()

G4SPBaryonTable::~G4SPBaryonTable ( )
inline

Definition at line 37 of file G4SPBaryonTable.hh.

37 {std::for_each(theBaryons.begin(), theBaryons.end(), G4SPBaryonTable::DeleteSPBaryon());}
std::vector< G4SPBaryon * > theBaryons

Member Function Documentation

◆ GetBaryon()

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

Definition at line 49 of file G4SPBaryonTable.hh.

50 {
51  G4SPBaryon * result = 0;
52  for(unsigned int i=0; i<theBaryons.size(); i++)
53  {
54  if(theBaryons[i]->GetDefinition()==aDefinition)
55  {
56  result = theBaryons[i];
57  break;
58  }
59  }
60  return result;
61 }
std::vector< G4SPBaryon * > theBaryons
Here is the caller graph for this function:

◆ insert()

void G4SPBaryonTable::insert ( G4SPBaryon aBaryon)
inline

Definition at line 38 of file G4SPBaryonTable.hh.

38 { theBaryons.push_back(aBaryon);}
std::vector< G4SPBaryon * > theBaryons
Here is the caller graph for this function:

◆ length()

G4double G4SPBaryonTable::length ( )
inline

Definition at line 39 of file G4SPBaryonTable.hh.

39 {return theBaryons.size();}
std::vector< G4SPBaryon * > theBaryons
Here is the call graph for this function:

Member Data Documentation

◆ theBaryons

std::vector<G4SPBaryon *> G4SPBaryonTable::theBaryons
private

Definition at line 44 of file G4SPBaryonTable.hh.


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