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

#include <G4PhysicsModelCatalog.hh>

Public Member Functions

 ~G4PhysicsModelCatalog ()
 
 G4PhysicsModelCatalog (const G4PhysicsModelCatalog &)=delete
 
G4PhysicsModelCatalogoperator= (const G4PhysicsModelCatalog &)=delete
 

Static Public Member Functions

static G4int Register (const G4String &)
 
static const G4StringGetModelName (G4int)
 
static G4int GetIndex (const G4String &)
 
static G4int Entries ()
 
static void Destroy ()
 

Detailed Description

Definition at line 42 of file G4PhysicsModelCatalog.hh.

Constructor & Destructor Documentation

◆ ~G4PhysicsModelCatalog()

G4PhysicsModelCatalog::~G4PhysicsModelCatalog ( )

Definition at line 48 of file G4PhysicsModelCatalog.cc.

48{}

◆ G4PhysicsModelCatalog()

G4PhysicsModelCatalog::G4PhysicsModelCatalog ( const G4PhysicsModelCatalog )
delete

Member Function Documentation

◆ Destroy()

void G4PhysicsModelCatalog::Destroy ( )
static

Definition at line 92 of file G4PhysicsModelCatalog.cc.

92{}

◆ Entries()

G4int G4PhysicsModelCatalog::Entries ( )
static

Definition at line 86 of file G4PhysicsModelCatalog.cc.

87{
88 return (theCatalog != nullptr) ? G4int(theCatalog->size()) : -1;
89}
int G4int
Definition: G4Types.hh:85

Referenced by GetIndex(), GetModelName(), G4Track::RemoveAuxiliaryTrackInformation(), and G4Track::SetAuxiliaryTrackInformation().

◆ GetIndex()

G4int G4PhysicsModelCatalog::GetIndex ( const G4String name)
static

Definition at line 75 of file G4PhysicsModelCatalog.cc.

76{
77 for(G4int idx = 0; idx < Entries(); ++idx)
78 {
79 if((*theCatalog)[idx] == name)
80 return idx;
81 }
82 return -1;
83}
const char * name(G4int ptype)

Referenced by G4HadronicProcess::FillResult(), G4Channeling::G4Channeling(), Register(), and G4Track::RemoveAuxiliaryTrackInformation().

◆ GetModelName()

const G4String & G4PhysicsModelCatalog::GetModelName ( G4int  idx)
static

Definition at line 66 of file G4PhysicsModelCatalog.cc.

67{
68 static const G4String undef = "Undefined";
69 if(idx >= 0 && idx < Entries())
70 return (*theCatalog)[idx];
71 return undef;
72}

Referenced by G4RichTrajectory::CreateAttValues().

◆ operator=()

G4PhysicsModelCatalog & G4PhysicsModelCatalog::operator= ( const G4PhysicsModelCatalog )
delete

◆ Register()


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