Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SPBaryonTable Class Reference

#include <G4SPBaryonTable.hh>

Classes

struct  DeleteSPBaryon
 

Public Member Functions

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

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());}

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}

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);}

Referenced by G4BaryonSplitter::G4BaryonSplitter().

◆ length()

std::size_t 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: