Geant4 9.6.0
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)
 
G4double 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 48 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}

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

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: