Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4TablesForExtrapolator Class Reference

#include <G4TablesForExtrapolator.hh>

Public Member Functions

 G4TablesForExtrapolator (G4int verb, G4int bins, G4double e1, G4double e2)
 
 ~G4TablesForExtrapolator ()
 
const G4PhysicsTableGetPhysicsTable (ExtTableType type) const
 

Detailed Description

Definition at line 75 of file G4TablesForExtrapolator.hh.

Constructor & Destructor Documentation

G4TablesForExtrapolator::G4TablesForExtrapolator ( G4int  verb,
G4int  bins,
G4double  e1,
G4double  e2 
)
explicit

Definition at line 74 of file G4TablesForExtrapolator.cc.

76  : verbose(verb), nbins(bins), emin(e1), emax(e2)
77 {
78  Initialisation();
79 }
G4TablesForExtrapolator::~G4TablesForExtrapolator ( )

Definition at line 83 of file G4TablesForExtrapolator.cc.

84 {
85  for(G4int i=0; i<nmat; i++) {delete couples[i];}
86 
87  dedxElectron->clearAndDestroy();
88  dedxPositron->clearAndDestroy();
89  dedxProton->clearAndDestroy();
90  dedxMuon->clearAndDestroy();
91  rangeElectron->clearAndDestroy();
92  rangePositron->clearAndDestroy();
93  rangeProton->clearAndDestroy();
94  rangeMuon->clearAndDestroy();
95  invRangeElectron->clearAndDestroy();
96  invRangePositron->clearAndDestroy();
97  invRangeProton->clearAndDestroy();
98  invRangeMuon->clearAndDestroy();
99  mscElectron->clearAndDestroy();
100 
101  delete dedxElectron;
102  delete dedxPositron;
103  delete dedxProton;
104  delete dedxMuon;
105  delete rangeElectron;
106  delete rangePositron;
107  delete rangeProton;
108  delete rangeMuon;
109  delete invRangeElectron;
110  delete invRangePositron;
111  delete invRangeProton;
112  delete invRangeMuon;
113  delete mscElectron;
114  delete pcuts;
115 }
int G4int
Definition: G4Types.hh:78
void clearAndDestroy()

Here is the call graph for this function:

Member Function Documentation

const G4PhysicsTable * G4TablesForExtrapolator::GetPhysicsTable ( ExtTableType  type) const

Definition at line 120 of file G4TablesForExtrapolator.cc.

121 {
122  const G4PhysicsTable* table = nullptr;
123  switch (type)
124  {
125  case fDedxElectron:
126  table = dedxElectron;
127  break;
128  case fDedxPositron:
129  table = dedxPositron;
130  break;
131  case fDedxProton:
132  table = dedxProton;
133  break;
134  case fDedxMuon:
135  table = dedxMuon;
136  break;
137  case fRangeElectron:
138  table = rangeElectron;
139  break;
140  case fRangePositron:
141  table = rangePositron;
142  break;
143  case fRangeProton:
144  table = rangeProton;
145  break;
146  case fRangeMuon:
147  table = rangeMuon;
148  break;
149  case fInvRangeElectron:
150  table = invRangeElectron;
151  break;
152  case fInvRangePositron:
153  table = invRangePositron;
154  break;
155  case fInvRangeProton:
156  table = invRangeProton;
157  break;
158  case fInvRangeMuon:
159  table = invRangeMuon;
160  break;
161  case fMscElectron:
162  table = mscElectron;
163  }
164  return table;
165 }

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