Geant4  10.02.p03
G4RegionModels Class Reference

#include <G4EmModelManager.hh>

Collaboration diagram for G4RegionModels:

Private Member Functions

 G4RegionModels (G4int nMod, std::vector< G4int > &indx, G4DataVector &lowE, const G4Region *reg)
 
 ~G4RegionModels ()
 
G4int SelectIndex (G4double e) const
 
G4int ModelIndex (G4int n) const
 
G4int NumberOfModels () const
 
G4double LowEdgeEnergy (G4int n) const
 
const G4RegionRegion () const
 
 G4RegionModels (G4RegionModels &)
 
G4RegionModelsoperator= (const G4RegionModels &right)
 

Private Attributes

const G4RegiontheRegion
 
G4int nModelsForRegion
 
G4inttheListOfModelIndexes
 
G4doublelowKineticEnergy
 

Friends

class G4EmModelManager
 

Detailed Description

Definition at line 82 of file G4EmModelManager.hh.

Constructor & Destructor Documentation

◆ G4RegionModels() [1/2]

G4RegionModels::G4RegionModels ( G4int  nMod,
std::vector< G4int > &  indx,
G4DataVector lowE,
const G4Region reg 
)
private

Definition at line 85 of file G4EmModelManager.cc.

87 {
88  nModelsForRegion = nMod;
91  for (G4int i=0; i<nModelsForRegion; ++i) {
92  theListOfModelIndexes[i] = indx[i];
93  lowKineticEnergy[i] = lowE[i];
94  }
96  theRegion = reg;
97 }
G4double * lowKineticEnergy
int G4int
Definition: G4Types.hh:78
static const G4double reg
double G4double
Definition: G4Types.hh:76
const G4Region * theRegion
G4int * theListOfModelIndexes
Here is the caller graph for this function:

◆ ~G4RegionModels()

G4RegionModels::~G4RegionModels ( )
private

Definition at line 101 of file G4EmModelManager.cc.

102 {
103  delete [] theListOfModelIndexes;
104  delete [] lowKineticEnergy;
105 }
G4double * lowKineticEnergy
G4int * theListOfModelIndexes

◆ G4RegionModels() [2/2]

G4RegionModels::G4RegionModels ( G4RegionModels )
private

Member Function Documentation

◆ LowEdgeEnergy()

G4double G4RegionModels::LowEdgeEnergy ( G4int  n) const
inlineprivate

Definition at line 114 of file G4EmModelManager.hh.

114  {
115  return lowKineticEnergy[n];
116  };
G4double * lowKineticEnergy
Char_t n[5]
Here is the caller graph for this function:

◆ ModelIndex()

G4int G4RegionModels::ModelIndex ( G4int  n) const
inlineprivate

Definition at line 106 of file G4EmModelManager.hh.

106  {
107  return theListOfModelIndexes[n];
108  };
Char_t n[5]
G4int * theListOfModelIndexes
Here is the caller graph for this function:

◆ NumberOfModels()

G4int G4RegionModels::NumberOfModels ( ) const
inlineprivate

Definition at line 110 of file G4EmModelManager.hh.

110  {
111  return nModelsForRegion;
112  };
Here is the caller graph for this function:

◆ operator=()

G4RegionModels& G4RegionModels::operator= ( const G4RegionModels right)
private
Here is the caller graph for this function:

◆ Region()

const G4Region* G4RegionModels::Region ( ) const
inlineprivate

Definition at line 118 of file G4EmModelManager.hh.

118  {
119  return theRegion;
120  };
const G4Region * theRegion
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SelectIndex()

G4int G4RegionModels::SelectIndex ( G4double  e) const
inlineprivate

Definition at line 96 of file G4EmModelManager.hh.

96  {
97  G4int idx = 0;
98  if (nModelsForRegion>1) {
99  idx = nModelsForRegion;
100  // Loop checking, 03-Aug-2015, Vladimir Ivanchenko
101  do {--idx;} while (idx > 0 && e <= lowKineticEnergy[idx]);
102  }
103  return theListOfModelIndexes[idx];
104  };
G4double * lowKineticEnergy
int G4int
Definition: G4Types.hh:78
G4int * theListOfModelIndexes

Friends And Related Function Documentation

◆ G4EmModelManager

friend class G4EmModelManager
friend

Definition at line 85 of file G4EmModelManager.hh.

Member Data Documentation

◆ lowKineticEnergy

G4double* G4RegionModels::lowKineticEnergy
private

Definition at line 128 of file G4EmModelManager.hh.

◆ nModelsForRegion

G4int G4RegionModels::nModelsForRegion
private

Definition at line 126 of file G4EmModelManager.hh.

◆ theListOfModelIndexes

G4int* G4RegionModels::theListOfModelIndexes
private

Definition at line 127 of file G4EmModelManager.hh.

◆ theRegion

const G4Region* G4RegionModels::theRegion
private

Definition at line 125 of file G4EmModelManager.hh.


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