Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // >> 23 // $Id: G4LossTableManager.hh,v 1.20 2004/01/14 18:01:56 vnivanch Exp $ >> 24 // GEANT4 tag $Name: geant4-06-00-patch-01 $ >> 25 // >> 26 // 26 // ------------------------------------------- 27 // ------------------------------------------------------------------- 27 // 28 // 28 // GEANT4 Class header file 29 // GEANT4 Class header file 29 // 30 // 30 // 31 // 31 // File name: G4LossTableManager 32 // File name: G4LossTableManager 32 // 33 // 33 // Author: Vladimir Ivanchenko on base 34 // Author: Vladimir Ivanchenko on base of G4LossTables class 34 // and Maria Grazia Pia ideas 35 // and Maria Grazia Pia ideas 35 // 36 // 36 // Creation date: 03.01.2002 37 // Creation date: 03.01.2002 37 // 38 // 38 // Modifications by V.Ivanchenko << 39 // Modifications: >> 40 // >> 41 // 20-01-03 Migrade to cut per region (V.Ivanchenko) >> 42 // 17-02-03 Fix problem of store/restore tables for ions (V.Ivanchenko) >> 43 // 10-03-03 Add Ion registration (V.Ivanchenko) >> 44 // 25-03-03 Add deregistration (V.Ivanchenko) >> 45 // 26-03-03 Add GetDEDXDispersion (V.Ivanchenko) >> 46 // 02-04-03 Change messenger (V.Ivanchenko) >> 47 // 23-07-03 Add exchange with G4EnergyLossTables (V.Ivanchenko) >> 48 // 05-10-03 Add G4VEmProcesses registration (V.Ivanchenko) >> 49 // 17-10-03 Add SetParameters method (V.Ivanchenko) >> 50 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko) >> 51 // 14-01-04 Activate precise range calculation (V.Ivanchenko) 39 // 52 // 40 // Class Description: 53 // Class Description: 41 // 54 // 42 // A utility static class, responsable for the 55 // A utility static class, responsable for the energy loss tables 43 // for each particle 56 // for each particle 44 // 57 // 45 // Energy loss processes have to register thei 58 // Energy loss processes have to register their tables with this 46 // class. The responsibility of creating and d 59 // class. The responsibility of creating and deleting the tables 47 // remains with the energy loss classes. 60 // remains with the energy loss classes. 48 61 49 // ------------------------------------------- 62 // ------------------------------------------------------------------- 50 // 63 // 51 64 52 #ifndef G4LossTableManager_h 65 #ifndef G4LossTableManager_h 53 #define G4LossTableManager_h 1 66 #define G4LossTableManager_h 1 54 67 >> 68 55 #include <map> 69 #include <map> 56 #include <vector> 70 #include <vector> 57 #include "globals.hh" 71 #include "globals.hh" 58 #include "G4ThreadLocalSingleton.hh" << 72 #include "G4LossTableBuilder.hh" 59 #include "G4VEnergyLossProcess.hh" 73 #include "G4VEnergyLossProcess.hh" 60 #include "G4EmParameters.hh" << 74 #include "G4EnergyLossTables.hh" 61 75 62 class G4PhysicsTable; 76 class G4PhysicsTable; 63 class G4MaterialCutsCouple; 77 class G4MaterialCutsCouple; >> 78 class G4EnergyLossMessenger; 64 class G4ParticleDefinition; 79 class G4ParticleDefinition; 65 class G4Region; << 66 class G4EmSaturation; << 67 class G4EmConfigurator; << 68 class G4ElectronIonPair; << 69 class G4NIELCalculator; << 70 class G4VMultipleScattering; 80 class G4VMultipleScattering; 71 class G4VEmProcess; 81 class G4VEmProcess; 72 class G4EmCorrections; << 73 class G4LossTableBuilder; << 74 class G4VAtomDeexcitation; << 75 class G4VSubCutProducer; << 76 82 77 class G4LossTableManager 83 class G4LossTableManager 78 { 84 { 79 85 80 friend class G4ThreadLocalSingleton<G4LossTabl << 81 << 82 public: 86 public: 83 87 84 static G4LossTableManager* Instance(); 88 static G4LossTableManager* Instance(); 85 89 86 ~G4LossTableManager(); 90 ~G4LossTableManager(); 87 91 88 //------------------------------------------ << 92 void Clear(); 89 // initialisation before a new run << 90 //------------------------------------------ << 91 << 92 void PreparePhysicsTable(const G4ParticleDef << 93 G4VEnergyLossProces << 94 << 95 void PreparePhysicsTable(const G4ParticleDef << 96 G4VEmProcess* p); << 97 << 98 void PreparePhysicsTable(const G4ParticleDef << 99 G4VMultipleScatteri << 100 << 101 void BuildPhysicsTable(const G4ParticleDefin << 102 << 103 void BuildPhysicsTable(const G4ParticleDefin << 104 G4VEnergyLossProcess* << 105 << 106 void LocalPhysicsTables(const G4ParticleDefi << 107 G4VEnergyLossProcess << 108 << 109 void DumpHtml(); << 110 << 111 //------------------------------------------ << 112 // Run time access to DEDX, range, energy fo << 113 // energy, and G4MaterialCutsCouple << 114 //------------------------------------------ << 115 << 116 inline G4double GetDEDX( << 117 const G4ParticleDefinition *aParticle, << 118 G4double kineticEnergy, << 119 const G4MaterialCutsCouple *couple); << 120 << 121 inline G4double GetRange( << 122 const G4ParticleDefinition *aParticle, << 123 G4double kineticEnergy, << 124 const G4MaterialCutsCouple *couple); << 125 93 126 inline G4double GetCSDARange( << 94 // get the DEDX or the range for a given particle/energy/material >> 95 G4double GetDEDX( 127 const G4ParticleDefinition *aParticle, 96 const G4ParticleDefinition *aParticle, 128 G4double kineticEnergy, 97 G4double kineticEnergy, 129 const G4MaterialCutsCouple *couple); 98 const G4MaterialCutsCouple *couple); 130 99 131 inline G4double GetRangeFromRestricteDEDX( << 100 G4double GetRange( 132 const G4ParticleDefinition *aParticle, 101 const G4ParticleDefinition *aParticle, 133 G4double kineticEnergy, 102 G4double kineticEnergy, 134 const G4MaterialCutsCouple *couple); 103 const G4MaterialCutsCouple *couple); 135 104 136 inline G4double GetEnergy( << 105 G4double GetEnergy( 137 const G4ParticleDefinition *aParticle, 106 const G4ParticleDefinition *aParticle, 138 G4double range, 107 G4double range, 139 const G4MaterialCutsCouple *couple); 108 const G4MaterialCutsCouple *couple); 140 109 141 inline G4double GetDEDXDispersion( << 110 G4double GetDEDXDispersion( 142 const G4MaterialCutsCouple *couple, 111 const G4MaterialCutsCouple *couple, 143 const G4DynamicParticle* dp, 112 const G4DynamicParticle* dp, 144 G4double& length); 113 G4double& length); 145 114 146 //------------------------------------------ << 115 // to be called only by energy loss processes 147 // Methods to be called only at initialisati << 148 // and at the end of the job << 149 //------------------------------------------ << 150 << 151 void Register(G4VEnergyLossProcess* p); 116 void Register(G4VEnergyLossProcess* p); 152 117 153 void DeRegister(G4VEnergyLossProcess* p); 118 void DeRegister(G4VEnergyLossProcess* p); 154 119 155 void Register(G4VMultipleScattering* p); 120 void Register(G4VMultipleScattering* p); 156 121 157 void DeRegister(G4VMultipleScattering* p); 122 void DeRegister(G4VMultipleScattering* p); 158 123 159 void Register(G4VEmProcess* p); 124 void Register(G4VEmProcess* p); 160 125 161 void DeRegister(G4VEmProcess* p); 126 void DeRegister(G4VEmProcess* p); 162 127 163 void Register(G4VProcess* p); << 128 void RegisterIon(const G4ParticleDefinition* aParticle, G4VEnergyLossProcess* p); 164 << 165 void DeRegister(G4VProcess* p); << 166 << 167 void Register(G4VEmModel* p); << 168 << 169 void DeRegister(G4VEmModel* p); << 170 << 171 void Register(G4VEmFluctuationModel* p); << 172 << 173 void DeRegister(G4VEmFluctuationModel* p); << 174 129 175 void RegisterExtraParticle(const G4ParticleD << 130 void BuildPhysicsTable(const G4ParticleDefinition* aParticle); 176 G4VEnergyLossProc << 177 << 178 void SetVerbose(G4int val); << 179 << 180 void ResetParameters(); << 181 << 182 void SetAtomDeexcitation(G4VAtomDeexcitation << 183 << 184 void SetSubCutProducer(G4VSubCutProducer*); << 185 << 186 void SetNIELCalculator(G4NIELCalculator*); << 187 << 188 //------------------------------------------ << 189 // Access methods << 190 //------------------------------------------ << 191 << 192 inline G4bool IsMaster() const; << 193 << 194 G4VEnergyLossProcess* GetEnergyLossProcess(c << 195 << 196 const std::vector<G4VEnergyLossProcess*>& Ge << 197 << 198 const std::vector<G4VEmProcess*>& GetEmProce << 199 131 200 const std::vector<G4VMultipleScattering*>& G << 132 void RetrievePhysicsTables(const G4ParticleDefinition* aParticle, G4VEnergyLossProcess* em); 201 133 202 G4EmSaturation* EmSaturation(); << 134 void SetLossFluctuations(G4bool val); 203 135 204 G4EmConfigurator* EmConfigurator(); << 136 void SetSubCutoff(G4bool val); 205 137 206 G4ElectronIonPair* ElectronIonPair(); << 138 void SetIntegral(G4bool val); 207 139 208 G4NIELCalculator* NIELCalculator(); << 140 void SetRandomStep(G4bool val); 209 141 210 inline G4EmCorrections* EmCorrections(); << 142 void SetMinSubRange(G4double val); 211 143 212 inline G4VAtomDeexcitation* AtomDeexcitation << 144 void SetMinEnergy(G4double val); 213 145 214 inline G4VSubCutProducer* SubCutProducer(); << 146 void SetMaxEnergy(G4double val); 215 147 216 inline G4LossTableBuilder* GetTableBuilder() << 148 void SetMaxEnergyForPreciseRange(G4double val); 217 149 218 inline void SetGammaGeneralProcess(G4VEmProc << 150 void SetMaxEnergyForMuons(G4double val); >> 151 >> 152 void SetDEDXBinning(G4int val); >> 153 >> 154 void SetDEDXBinningForPreciseRange(G4int val); 219 155 220 inline G4VEmProcess* GetGammaGeneralProcess( << 156 void SetLambdaBinning(G4int val); 221 157 222 inline void SetElectronGeneralProcess(G4VEmP << 158 void SetStepLimits(G4double v1, G4double v2); 223 159 224 inline G4VEmProcess* GetElectronGeneralProce << 160 void SetBuildPreciseRange(G4bool val); 225 161 226 inline void SetPositronGeneralProcess(G4VEmP << 162 void SetVerbose(G4int val); 227 163 228 inline G4VEmProcess* GetPositronGeneralProce << 164 G4EnergyLossMessenger* GetMessenger(); 229 165 230 G4LossTableManager(G4LossTableManager &) = d << 166 G4bool IsRecalcNeeded(const G4ParticleDefinition* aParticle); 231 G4LossTableManager & operator=(const G4LossT << 232 167 233 private: 168 private: 234 169 235 //------------------------------------------ << 236 // Private methods and members << 237 //------------------------------------------ << 238 << 239 G4LossTableManager(); 170 G4LossTableManager(); 240 171 241 void Clear(); << 172 void Initialise(); 242 173 243 G4VEnergyLossProcess* BuildTables(const G4Pa 174 G4VEnergyLossProcess* BuildTables(const G4ParticleDefinition* aParticle); 244 175 245 void CopyTables(const G4ParticleDefinition* << 246 G4VEnergyLossProcess*); << 247 << 248 void ParticleHaveNoLoss(const G4ParticleDefi 176 void ParticleHaveNoLoss(const G4ParticleDefinition* aParticle); 249 177 250 void CopyDEDXTables(); << 178 void SetParameters(G4VEnergyLossProcess*); 251 179 252 void PrintEWarning(G4String, G4double); << 180 private: 253 181 254 static G4ThreadLocal G4LossTableManager* ins << 182 static G4LossTableManager* theInstance; 255 183 256 typedef const G4ParticleDefinition* PD; 184 typedef const G4ParticleDefinition* PD; 257 << 185 std::map<PD,G4VEnergyLossProcess*,std::less<PD> > loss_map; 258 // cache << 259 G4VEnergyLossProcess* currentLoss{nullptr}; << 260 PD currentParticle{nullptr}; << 261 PD theElectron; << 262 PD theGenericIon{nullptr}; << 263 PD firstParticle{nullptr}; << 264 << 265 G4LossTableBuilder* tableBuilder; << 266 G4EmCorrections* emCorrections; << 267 G4EmConfigurator* emConfigurator{nullptr}; << 268 G4ElectronIonPair* emElectronIonPair{nullptr << 269 G4NIELCalculator* nielCalculator{nullptr}; << 270 G4VAtomDeexcitation* atomDeexcitation{nullpt << 271 G4VSubCutProducer* subcutProducer{nullptr}; << 272 << 273 G4EmParameters* theParameters; << 274 G4VEmProcess* gGeneral{nullptr}; << 275 G4VEmProcess* eGeneral{nullptr}; << 276 G4VEmProcess* pGeneral{nullptr}; << 277 << 278 G4int verbose; << 279 G4int n_loss{0}; << 280 G4int run{-1}; << 281 << 282 G4bool all_tables_are_built{false}; << 283 G4bool startInitialisation{false}; << 284 G4bool resetParam{true}; << 285 G4bool isMaster{false}; << 286 186 287 std::vector<G4VEnergyLossProcess*> loss_vect 187 std::vector<G4VEnergyLossProcess*> loss_vector; 288 std::vector<PD> part_vector; 188 std::vector<PD> part_vector; 289 std::vector<PD> base_part_vector; 189 std::vector<PD> base_part_vector; >> 190 std::vector<G4bool> tables_are_built; 290 std::vector<G4PhysicsTable*> dedx_vector; 191 std::vector<G4PhysicsTable*> dedx_vector; 291 std::vector<G4PhysicsTable*> range_vector; 192 std::vector<G4PhysicsTable*> range_vector; 292 std::vector<G4PhysicsTable*> inv_range_vecto 193 std::vector<G4PhysicsTable*> inv_range_vector; 293 std::vector<G4bool> tables_are_built; << 294 std::vector<G4bool> isActive; << 295 std::vector<G4VMultipleScattering*> msc_vect 194 std::vector<G4VMultipleScattering*> msc_vector; 296 std::vector<G4VEmProcess*> emp_vector; 195 std::vector<G4VEmProcess*> emp_vector; 297 std::vector<G4VEmModel*> mod_vector; << 298 std::vector<G4VEmFluctuationModel*> fmod_vec << 299 std::vector<G4VProcess*> p_vector; << 300 196 301 std::map<PD,G4VEnergyLossProcess*,std::less< << 197 // cash >> 198 G4VEnergyLossProcess* currentLoss; >> 199 PD currentParticle; >> 200 PD theElectron; >> 201 >> 202 G4int n_loss; >> 203 >> 204 G4bool all_tables_are_built; >> 205 G4bool first_entry; >> 206 G4bool electron_table_are_built; >> 207 G4bool lossFluctuationFlag; >> 208 G4bool subCutoffFlag; >> 209 G4bool rndmStepFlag; >> 210 G4bool integral; >> 211 G4bool integralActive; >> 212 G4bool all_tables_are_stored; >> 213 G4bool buildPreciseRange; >> 214 G4bool minEnergyActive; >> 215 G4bool maxEnergyActive; >> 216 G4bool maxEnergyForMuonsActive; >> 217 G4bool stepFunctionActive; >> 218 >> 219 G4double minSubRange; >> 220 G4double maxRangeVariation; >> 221 G4double maxFinalStep; >> 222 G4double minKinEnergy; >> 223 G4double maxKinEnergy; >> 224 G4double maxKinEnergyForMuons; >> 225 >> 226 G4VEnergyLossProcess* eIonisation; >> 227 G4LossTableBuilder* tableBuilder; >> 228 G4EnergyLossMessenger* theMessenger; >> 229 const G4ParticleDefinition* firstParticle; >> 230 G4int verbose; >> 231 302 }; 232 }; 303 233 304 //....oooOO0OOooo........oooOO0OOooo........oo 234 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 305 //....oooOO0OOooo........oooOO0OOooo........oo << 306 << 307 inline << 308 G4double G4LossTableManager::GetDEDX(const G4P << 309 G4double << 310 const G4M << 311 { << 312 if(aParticle != currentParticle) { GetEnergy << 313 return currentLoss ? currentLoss->GetDEDX(ki << 314 } << 315 << 316 //....oooOO0OOooo........oooOO0OOooo........oo << 317 << 318 inline << 319 G4double G4LossTableManager::GetCSDARange(cons << 320 G4do << 321 cons << 322 { << 323 if(aParticle != currentParticle) { GetEnergy << 324 return currentLoss ? currentLoss->GetCSDARan << 325 } << 326 << 327 //....oooOO0OOooo........oooOO0OOooo........oo 235 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 328 236 329 inline << 237 inline G4double G4LossTableManager::GetDEDX( 330 G4double G4LossTableManager::GetRangeFromRestr << 238 const G4ParticleDefinition *aParticle, 331 const G4ParticleD << 239 G4double kineticEnergy, 332 G4double kineticE << 240 const G4MaterialCutsCouple *couple) 333 const G4MaterialC << 241 { 334 { << 242 if(aParticle != currentParticle) { 335 if(aParticle != currentParticle) { GetEnergy << 243 currentParticle = aParticle; 336 return currentLoss ? currentLoss->GetRange(k << 244 std::map<PD, G4VEnergyLossProcess*,std::less<PD> >::const_iterator pos; >> 245 if ((pos = loss_map.find(aParticle)) != loss_map.end()) { >> 246 currentLoss = (*pos).second; >> 247 } else { >> 248 currentLoss = 0; >> 249 // ParticleHaveNoLoss(aParticle); >> 250 } >> 251 } >> 252 G4double x; >> 253 if(currentLoss) x = currentLoss->GetDEDX(kineticEnergy, couple); >> 254 else x = G4EnergyLossTables::GetDEDX(currentParticle,kineticEnergy,couple,false); >> 255 return x; >> 256 // return currentLoss->GetDEDX(kineticEnergy, couple); 337 } 257 } 338 258 339 //....oooOO0OOooo........oooOO0OOooo........oo 259 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 340 260 341 inline << 261 inline G4double G4LossTableManager::GetRange( 342 G4double G4LossTableManager::GetRange(const G4 << 262 const G4ParticleDefinition *aParticle, 343 G4double << 263 G4double kineticEnergy, 344 const G4 << 264 const G4MaterialCutsCouple *couple) 345 { << 265 { 346 if(aParticle != currentParticle) { GetEnergy << 266 if(aParticle != currentParticle) { 347 return currentLoss ? currentLoss->GetRange(k << 267 currentParticle = aParticle; >> 268 std::map<PD, G4VEnergyLossProcess*, std::less<PD> >::const_iterator pos; >> 269 if ((pos = loss_map.find(currentParticle)) != loss_map.end()) { >> 270 currentLoss = (*pos).second; >> 271 } else { >> 272 currentLoss = 0; >> 273 // ParticleHaveNoLoss(aParticle); >> 274 } >> 275 } >> 276 G4double x; >> 277 if(currentLoss) x = currentLoss->GetRange(kineticEnergy, couple); >> 278 else x = G4EnergyLossTables::GetRange(currentParticle,kineticEnergy,couple,false); >> 279 return x; >> 280 // return currentLoss->GetRange(kineticEnergy, couple); 348 } 281 } 349 282 350 //....oooOO0OOooo........oooOO0OOooo........oo 283 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 351 284 352 inline << 285 inline G4double G4LossTableManager::GetEnergy( 353 G4double G4LossTableManager::GetEnergy(const G << 286 const G4ParticleDefinition *aParticle, 354 G4doubl << 287 G4double range, 355 const G << 288 const G4MaterialCutsCouple *couple) 356 { << 289 { 357 if(aParticle != currentParticle) { GetEnergy << 290 if(aParticle != currentParticle) { 358 return currentLoss ? currentLoss->GetKinetic << 291 currentParticle = aParticle; >> 292 std::map<PD,G4VEnergyLossProcess*,std::less<PD> >::const_iterator pos; >> 293 if ((pos = loss_map.find(aParticle)) != loss_map.end()) { >> 294 currentLoss = (*pos).second; >> 295 } else { >> 296 currentLoss = 0; >> 297 // ParticleHaveNoLoss(aParticle); >> 298 } >> 299 } >> 300 G4double x; >> 301 if(currentLoss) x = currentLoss->GetKineticEnergy(range, couple); >> 302 else x = G4EnergyLossTables::GetPreciseEnergyFromRange(currentParticle,range,couple,false); >> 303 return x; >> 304 // return currentLoss->GetKineticEnergy(range, couple); 359 } 305 } 360 306 361 //....oooOO0OOooo........oooOO0OOooo........oo 307 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 362 308 363 inline << 309 inline G4double G4LossTableManager::GetDEDXDispersion( 364 G4double G4LossTableManager::GetDEDXDispersion << 310 const G4MaterialCutsCouple *couple, 365 const G4MaterialC << 311 const G4DynamicParticle* dp, 366 const G4DynamicPa << 312 G4double& length) 367 G4double& length) << 368 { << 369 const G4ParticleDefinition* aParticle = dp-> << 370 if(aParticle != currentParticle) { GetEnergy << 371 return currentLoss ? currentLoss->GetDEDXDis << 372 } << 373 << 374 //....oooOO0OOooo........oooOO0OOooo........oo << 375 << 376 inline G4bool G4LossTableManager::IsMaster() c << 377 { 313 { 378 return isMaster; << 314 const G4ParticleDefinition* aParticle = dp->GetDefinition(); >> 315 if(aParticle != currentParticle) { >> 316 std::map<PD,G4VEnergyLossProcess*,std::less<PD> >::const_iterator pos; >> 317 if ((pos = loss_map.find(aParticle)) != loss_map.end()) { >> 318 currentParticle = aParticle; >> 319 currentLoss = (*pos).second; >> 320 } else { >> 321 ParticleHaveNoLoss(aParticle); >> 322 } >> 323 } >> 324 return currentLoss->GetDEDXDispersion(couple, dp, length); 379 } 325 } 380 326 381 //....oooOO0OOooo........oooOO0OOooo........oo 327 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 382 328 383 inline G4EmCorrections* G4LossTableManager::Em << 384 { << 385 return emCorrections; << 386 } << 387 << 388 //....oooOO0OOooo........oooOO0OOooo........oo << 389 << 390 inline G4VAtomDeexcitation* G4LossTableManager << 391 { << 392 return atomDeexcitation; << 393 } << 394 << 395 //....oooOO0OOooo........oooOO0OOooo........oo << 396 << 397 inline G4VSubCutProducer* G4LossTableManager:: << 398 { << 399 return subcutProducer; << 400 } << 401 << 402 //....oooOO0OOooo........oooOO0OOooo........oo << 403 << 404 inline G4LossTableBuilder* G4LossTableManager: << 405 { << 406 return tableBuilder; << 407 } << 408 << 409 //....oooOO0OOooo........oooOO0OOooo........oo << 410 << 411 inline void G4LossTableManager::SetGammaGenera << 412 { << 413 gGeneral = ptr; << 414 } << 415 << 416 //....oooOO0OOooo........oooOO0OOooo........oo << 417 << 418 inline G4VEmProcess* G4LossTableManager::GetGa << 419 { << 420 return gGeneral; << 421 } << 422 << 423 //....oooOO0OOooo........oooOO0OOooo........oo << 424 << 425 inline void G4LossTableManager::SetElectronGen << 426 { << 427 eGeneral = ptr; << 428 } << 429 << 430 //....oooOO0OOooo........oooOO0OOooo........oo << 431 << 432 inline G4VEmProcess* G4LossTableManager::GetEl << 433 { << 434 return eGeneral; << 435 } << 436 << 437 //....oooOO0OOooo........oooOO0OOooo........oo << 438 << 439 inline void G4LossTableManager::SetPositronGen << 440 { << 441 pGeneral = ptr; << 442 } << 443 << 444 //....oooOO0OOooo........oooOO0OOooo........oo << 445 << 446 inline G4VEmProcess* G4LossTableManager::GetPo << 447 { << 448 return pGeneral; << 449 } << 450 //....oooOO0OOooo........oooOO0OOooo........oo << 451 << 452 #endif 329 #endif >> 330 453 331