Geant4-11
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
G4CascadeChannelTables Class Reference

#include <G4CascadeChannelTables.hh>

Public Member Functions

 ~G4CascadeChannelTables ()
 

Static Public Member Functions

static const G4CascadeChannelGetTable (G4int had1, G4int had2)
 
static const G4CascadeChannelGetTable (G4int initialState)
 
static void Print (std::ostream &os=G4cout)
 
static void PrintTable (G4int initialState, std::ostream &os=G4cout)
 

Private Types

typedef std::map< G4int, G4CascadeChannel * > TableMap
 

Private Member Functions

const G4CascadeChannelFindTable (G4int initialState) const
 
 G4CascadeChannelTables ()
 

Static Private Member Functions

static const G4CascadeChannelTablesinstance ()
 

Private Attributes

TableMap tables
 

Static Private Attributes

static G4ThreadLocal G4CascadeChannelTablestheInstance
 

Detailed Description

Definition at line 52 of file G4CascadeChannelTables.hh.

Member Typedef Documentation

◆ TableMap

Definition at line 76 of file G4CascadeChannelTables.hh.

Constructor & Destructor Documentation

◆ ~G4CascadeChannelTables()

G4CascadeChannelTables::~G4CascadeChannelTables ( )

Definition at line 133 of file G4CascadeChannelTables.cc.

133 {
134 for(auto& itr : tables)
135 delete itr.second;
136 tables.clear();
137}

References tables.

◆ G4CascadeChannelTables()

G4CascadeChannelTables::G4CascadeChannelTables ( )
private

Definition at line 95 of file G4CascadeChannelTables.cc.

95 {
96 tables.clear();
131}
G4CascadeFunctions< G4CascadeGamNChannelData, G4PionNucSampler > G4CascadeGamNChannel
G4CascadeFunctions< G4CascadeGamPChannelData, G4PionNucSampler > G4CascadeGamPChannel
G4CascadeFunctions< G4CascadeKminusNChannelData, G4KaonSampler > G4CascadeKminusNChannel
G4CascadeFunctions< G4CascadeKminusPChannelData, G4KaonSampler > G4CascadeKminusPChannel
G4CascadeFunctions< G4CascadeKplusNChannelData, G4KaonSampler > G4CascadeKplusNChannel
G4CascadeFunctions< G4CascadeKplusPChannelData, G4KaonSampler > G4CascadeKplusPChannel
G4CascadeFunctions< G4CascadeKzeroBarNChannelData, G4KaonSampler > G4CascadeKzeroBarNChannel
G4CascadeFunctions< G4CascadeKzeroBarPChannelData, G4KaonSampler > G4CascadeKzeroBarPChannel
G4CascadeFunctions< G4CascadeKzeroNChannelData, G4KaonSampler > G4CascadeKzeroNChannel
G4CascadeFunctions< G4CascadeKzeroPChannelData, G4KaonSampler > G4CascadeKzeroPChannel
G4CascadeFunctions< G4CascadeLambdaNChannelData, G4KaonHypSampler > G4CascadeLambdaNChannel
G4CascadeFunctions< G4CascadeLambdaPChannelData, G4KaonHypSampler > G4CascadeLambdaPChannel
G4CascadeFunctions< G4CascadeMuMinusPChannelData, G4PionNucSampler > G4CascadeMuMinusPChannel
G4CascadeFunctions< G4CascadeOmegaMinusNChannelData, G4KaonHypSampler > G4CascadeOmegaMinusNChannel
G4CascadeFunctions< G4CascadeOmegaMinusPChannelData, G4KaonHypSampler > G4CascadeOmegaMinusPChannel
G4CascadeFunctions< G4CascadePiMinusNChannelData, G4PionNucSampler > G4CascadePiMinusNChannel
G4CascadeFunctions< G4CascadePiMinusPChannelData, G4PionNucSampler > G4CascadePiMinusPChannel
G4CascadeFunctions< G4CascadePiPlusNChannelData, G4PionNucSampler > G4CascadePiPlusNChannel
G4CascadeFunctions< G4CascadePiPlusPChannelData, G4PionNucSampler > G4CascadePiPlusPChannel
G4CascadeFunctions< G4CascadePiZeroNChannelData, G4PionNucSampler > G4CascadePiZeroNChannel
G4CascadeFunctions< G4CascadePiZeroPChannelData, G4PionNucSampler > G4CascadePiZeroPChannel
G4CascadeFunctions< G4CascadeSigmaMinusNChannelData, G4KaonHypSampler > G4CascadeSigmaMinusNChannel
G4CascadeFunctions< G4CascadeSigmaMinusPChannelData, G4KaonHypSampler > G4CascadeSigmaMinusPChannel
G4CascadeFunctions< G4CascadeSigmaPlusNChannelData, G4KaonHypSampler > G4CascadeSigmaPlusNChannel
G4CascadeFunctions< G4CascadeSigmaPlusPChannelData, G4KaonHypSampler > G4CascadeSigmaPlusPChannel
G4CascadeFunctions< G4CascadeSigmaZeroNChannelData, G4KaonHypSampler > G4CascadeSigmaZeroNChannel
G4CascadeFunctions< G4CascadeSigmaZeroPChannelData, G4KaonHypSampler > G4CascadeSigmaZeroPChannel
G4CascadeFunctions< G4CascadeXiMinusNChannelData, G4KaonHypSampler > G4CascadeXiMinusNChannel
G4CascadeFunctions< G4CascadeXiMinusPChannelData, G4KaonHypSampler > G4CascadeXiMinusPChannel
G4CascadeFunctions< G4CascadeXiZeroNChannelData, G4KaonHypSampler > G4CascadeXiZeroNChannel
G4CascadeFunctions< G4CascadeXiZeroPChannelData, G4KaonHypSampler > G4CascadeXiZeroPChannel

References G4InuclParticleNames::gam, G4InuclParticleNames::k0, G4InuclParticleNames::k0b, G4InuclParticleNames::kmi, G4InuclParticleNames::kpl, G4InuclParticleNames::lam, G4InuclParticleNames::mum, G4InuclParticleNames::neu, G4InuclParticleNames::om, G4InuclParticleNames::pi0, G4InuclParticleNames::pim, G4InuclParticleNames::pip, G4InuclParticleNames::pro, G4InuclParticleNames::s0, G4InuclParticleNames::sm, G4InuclParticleNames::sp, tables, G4InuclParticleNames::xi0, and G4InuclParticleNames::xim.

Member Function Documentation

◆ FindTable()

const G4CascadeChannel * G4CascadeChannelTables::FindTable ( G4int  initialState) const
private

Definition at line 156 of file G4CascadeChannelTables.cc.

156 {
157#ifdef G4CASCADE_DEBUG_SAMPLER
158 G4cout << "G4CascadeChannelTables::FindTable " << initialState << G4endl;
159#endif
160 TableMap::const_iterator entry = tables.find(initialState);
161 return (entry != tables.end()) ? entry->second : 0;
162}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

References G4cout, G4endl, and tables.

Referenced by GetTable().

◆ GetTable() [1/2]

const G4CascadeChannel * G4CascadeChannelTables::GetTable ( G4int  had1,
G4int  had2 
)
static

Definition at line 149 of file G4CascadeChannelTables.cc.

149 {
150 return GetTable(had1*had2);
151}
static const G4CascadeChannel * GetTable(G4int initialState)

References GetTable().

◆ GetTable() [2/2]

const G4CascadeChannel * G4CascadeChannelTables::GetTable ( G4int  initialState)
static

◆ instance()

const G4CascadeChannelTables & G4CascadeChannelTables::instance ( )
staticprivate

Definition at line 88 of file G4CascadeChannelTables.cc.

88 {
90 return _instance;
91}
#define G4ThreadLocalStatic
Definition: tls.hh:76

References G4ThreadLocalStatic.

Referenced by GetTable(), and Print().

◆ Print()

void G4CascadeChannelTables::Print ( std::ostream &  os = G4cout)
static

Definition at line 167 of file G4CascadeChannelTables.cc.

167 {
168 const TableMap& theTables = instance().tables; // For convenience
169 TableMap::const_iterator entry;
170 for (entry = theTables.begin(); entry != theTables.end(); ++entry) {
171 if (entry->second) entry->second->printTable(os);
172 }
173}
std::map< G4int, G4CascadeChannel * > TableMap

References instance(), and tables.

Referenced by G4ElementaryParticleCollider::collide().

◆ PrintTable()

void G4CascadeChannelTables::PrintTable ( G4int  initialState,
std::ostream &  os = G4cout 
)
static

Definition at line 175 of file G4CascadeChannelTables.cc.

175 {
176 const G4CascadeChannel* tbl = GetTable(initialState);
177 if (tbl) tbl->printTable(os);
178}
virtual void printTable(std::ostream &os=G4cout) const =0

References GetTable(), and G4CascadeChannel::printTable().

Field Documentation

◆ tables

TableMap G4CascadeChannelTables::tables
private

◆ theInstance

G4ThreadLocal G4CascadeChannelTables* G4CascadeChannelTables::theInstance
staticprivate

Definition at line 69 of file G4CascadeChannelTables.hh.


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