Geant4-11
Data Structures | Public Member Functions | Private Attributes
G4SPBaryonTable Class Reference

#include <G4SPBaryonTable.hh>

Data Structures

struct  DeleteSPBaryon
 

Public Member Functions

const G4SPBaryonGetBaryon (G4ParticleDefinition *aDefinition)
 
void insert (G4SPBaryon *aBaryon)
 
std::size_t length ()
 
 ~G4SPBaryonTable ()
 

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

References theBaryons.

Member Function Documentation

◆ GetBaryon()

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

Definition at line 47 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}

References theBaryons.

Referenced by G4BaryonSplitter::FindDiquark(), G4BaryonSplitter::GetSPBaryon(), and G4BaryonSplitter::SplitBarion().

◆ insert()

void G4SPBaryonTable::insert ( G4SPBaryon aBaryon)
inline

Definition at line 38 of file G4SPBaryonTable.hh.

38{ theBaryons.push_back(aBaryon);}

References theBaryons.

Referenced by G4BaryonSplitter::G4BaryonSplitter().

◆ length()

std::size_t G4SPBaryonTable::length ( )
inline

Definition at line 39 of file G4SPBaryonTable.hh.

39{return theBaryons.size();}

References theBaryons.

Field Documentation

◆ theBaryons

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

Definition at line 44 of file G4SPBaryonTable.hh.

Referenced by GetBaryon(), insert(), length(), and ~G4SPBaryonTable().


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