Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // >> 26 // $Id$ >> 27 // >> 28 // 26 // ------------------------------------------- 29 // ------------------------------------------------------------------- 27 // 30 // 28 // GEANT4 Class header file 31 // GEANT4 Class header file 29 // 32 // 30 // 33 // 31 // File name: G4LossTableManager 34 // File name: G4LossTableManager 32 // 35 // 33 // Author: Vladimir Ivanchenko on base 36 // Author: Vladimir Ivanchenko on base of G4LossTables class 34 // and Maria Grazia Pia ideas 37 // and Maria Grazia Pia ideas 35 // 38 // 36 // Creation date: 03.01.2002 39 // Creation date: 03.01.2002 37 // 40 // 38 // Modifications by V.Ivanchenko << 41 // Modifications: >> 42 // >> 43 // 20-01-03 Migrade to cut per region (V.Ivanchenko) >> 44 // 17-02-03 Fix problem of store/restore tables for ions (V.Ivanchenko) >> 45 // 10-03-03 Add Ion registration (V.Ivanchenko) >> 46 // 25-03-03 Add deregistration (V.Ivanchenko) >> 47 // 26-03-03 Add GetDEDXDispersion (V.Ivanchenko) >> 48 // 02-04-03 Change messenger (V.Ivanchenko) >> 49 // 23-07-03 Add exchange with G4EnergyLossTables (V.Ivanchenko) >> 50 // 05-10-03 Add G4VEmProcesses registration (V.Ivanchenko) >> 51 // 17-10-03 Add SetParameters method (V.Ivanchenko) >> 52 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko) >> 53 // 14-01-04 Activate precise range calculation (V.Ivanchenko) >> 54 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko) >> 55 // 10-01-06 PreciseRange -> CSDARange (V.Ivantchenko) >> 56 // 20-01-06 Introduce GetSubDEDX method (VI) >> 57 // 26-01-06 Rename GetRange -> GetRangeFromRestricteDEDX (V.Ivanchenko) >> 58 // 10-05-06 Add methods SetMscStepLimitation, FacRange and MscFlag (VI) >> 59 // 22-05-06 Add methods Set/Get bremsTh (VI) >> 60 // 12-02-07 Add SetSkin, SetLinearLossLimit (V.Ivanchenko) >> 61 // 18-06-07 Move definition of msc parameters to G4EmProcessOptions (V.Ivanchenko) >> 62 // 12-04-10 Added PreparePhsyicsTables and BuildPhysicsTables entries (V.Ivanchenko) 39 // 63 // 40 // Class Description: 64 // Class Description: 41 // 65 // 42 // A utility static class, responsable for the 66 // A utility static class, responsable for the energy loss tables 43 // for each particle 67 // for each particle 44 // 68 // 45 // Energy loss processes have to register thei 69 // Energy loss processes have to register their tables with this 46 // class. The responsibility of creating and d 70 // class. The responsibility of creating and deleting the tables 47 // remains with the energy loss classes. 71 // remains with the energy loss classes. 48 72 49 // ------------------------------------------- 73 // ------------------------------------------------------------------- 50 // 74 // 51 75 52 #ifndef G4LossTableManager_h 76 #ifndef G4LossTableManager_h 53 #define G4LossTableManager_h 1 77 #define G4LossTableManager_h 1 54 78 55 #include <map> 79 #include <map> 56 #include <vector> 80 #include <vector> 57 #include "globals.hh" 81 #include "globals.hh" 58 #include "G4ThreadLocalSingleton.hh" << 59 #include "G4VEnergyLossProcess.hh" 82 #include "G4VEnergyLossProcess.hh" 60 #include "G4EmParameters.hh" << 83 #include "G4EnergyLossTables.hh" 61 84 62 class G4PhysicsTable; 85 class G4PhysicsTable; 63 class G4MaterialCutsCouple; 86 class G4MaterialCutsCouple; >> 87 class G4EnergyLossMessenger; 64 class G4ParticleDefinition; 88 class G4ParticleDefinition; 65 class G4Region; << 66 class G4EmSaturation; << 67 class G4EmConfigurator; << 68 class G4ElectronIonPair; << 69 class G4NIELCalculator; << 70 class G4VMultipleScattering; 89 class G4VMultipleScattering; 71 class G4VEmProcess; 90 class G4VEmProcess; 72 class G4EmCorrections; 91 class G4EmCorrections; >> 92 class G4EmSaturation; >> 93 class G4EmConfigurator; >> 94 class G4ElectronIonPair; 73 class G4LossTableBuilder; 95 class G4LossTableBuilder; 74 class G4VAtomDeexcitation; 96 class G4VAtomDeexcitation; 75 class G4VSubCutProducer; << 97 class G4Region; 76 98 77 class G4LossTableManager 99 class G4LossTableManager 78 { 100 { 79 101 80 friend class G4ThreadLocalSingleton<G4LossTabl << 81 << 82 public: 102 public: 83 103 84 static G4LossTableManager* Instance(); 104 static G4LossTableManager* Instance(); 85 105 86 ~G4LossTableManager(); 106 ~G4LossTableManager(); 87 107 88 //------------------------------------------ 108 //------------------------------------------------- >> 109 // called from destructor >> 110 //------------------------------------------------- >> 111 >> 112 void Clear(); >> 113 >> 114 //------------------------------------------------- 89 // initialisation before a new run 115 // initialisation before a new run 90 //------------------------------------------ 116 //------------------------------------------------- 91 117 92 void PreparePhysicsTable(const G4ParticleDef 118 void PreparePhysicsTable(const G4ParticleDefinition* aParticle, 93 G4VEnergyLossProces << 119 G4VEnergyLossProcess* p); 94 120 95 void PreparePhysicsTable(const G4ParticleDef 121 void PreparePhysicsTable(const G4ParticleDefinition* aParticle, 96 G4VEmProcess* p); << 122 G4VEmProcess* p); 97 123 98 void PreparePhysicsTable(const G4ParticleDef 124 void PreparePhysicsTable(const G4ParticleDefinition* aParticle, 99 G4VMultipleScatteri << 125 G4VMultipleScattering* p); 100 126 101 void BuildPhysicsTable(const G4ParticleDefin 127 void BuildPhysicsTable(const G4ParticleDefinition* aParticle); 102 128 103 void BuildPhysicsTable(const G4ParticleDefin 129 void BuildPhysicsTable(const G4ParticleDefinition* aParticle, 104 G4VEnergyLossProcess* << 130 G4VEnergyLossProcess* p); 105 << 106 void LocalPhysicsTables(const G4ParticleDefi << 107 G4VEnergyLossProcess << 108 << 109 void DumpHtml(); << 110 131 111 //------------------------------------------ 132 //------------------------------------------------- 112 // Run time access to DEDX, range, energy fo 133 // Run time access to DEDX, range, energy for a given particle, 113 // energy, and G4MaterialCutsCouple 134 // energy, and G4MaterialCutsCouple 114 //------------------------------------------ 135 //------------------------------------------------- 115 136 116 inline G4double GetDEDX( << 137 G4double GetDEDX( >> 138 const G4ParticleDefinition *aParticle, >> 139 G4double kineticEnergy, >> 140 const G4MaterialCutsCouple *couple); >> 141 >> 142 G4double GetSubDEDX( 117 const G4ParticleDefinition *aParticle, 143 const G4ParticleDefinition *aParticle, 118 G4double kineticEnergy, 144 G4double kineticEnergy, 119 const G4MaterialCutsCouple *couple); 145 const G4MaterialCutsCouple *couple); 120 146 121 inline G4double GetRange( << 147 G4double GetRange( 122 const G4ParticleDefinition *aParticle, 148 const G4ParticleDefinition *aParticle, 123 G4double kineticEnergy, 149 G4double kineticEnergy, 124 const G4MaterialCutsCouple *couple); 150 const G4MaterialCutsCouple *couple); 125 151 126 inline G4double GetCSDARange( << 152 G4double GetCSDARange( 127 const G4ParticleDefinition *aParticle, 153 const G4ParticleDefinition *aParticle, 128 G4double kineticEnergy, 154 G4double kineticEnergy, 129 const G4MaterialCutsCouple *couple); 155 const G4MaterialCutsCouple *couple); 130 156 131 inline G4double GetRangeFromRestricteDEDX( << 157 G4double GetRangeFromRestricteDEDX( 132 const G4ParticleDefinition *aParticle, 158 const G4ParticleDefinition *aParticle, 133 G4double kineticEnergy, 159 G4double kineticEnergy, 134 const G4MaterialCutsCouple *couple); 160 const G4MaterialCutsCouple *couple); 135 161 136 inline G4double GetEnergy( << 162 G4double GetEnergy( 137 const G4ParticleDefinition *aParticle, 163 const G4ParticleDefinition *aParticle, 138 G4double range, 164 G4double range, 139 const G4MaterialCutsCouple *couple); 165 const G4MaterialCutsCouple *couple); 140 166 141 inline G4double GetDEDXDispersion( << 167 G4double GetDEDXDispersion( 142 const G4MaterialCutsCouple *couple, 168 const G4MaterialCutsCouple *couple, 143 const G4DynamicParticle* dp, 169 const G4DynamicParticle* dp, 144 G4double& length); 170 G4double& length); 145 171 146 //------------------------------------------ 172 //------------------------------------------------- 147 // Methods to be called only at initialisati 173 // Methods to be called only at initialisation 148 // and at the end of the job << 149 //------------------------------------------ 174 //------------------------------------------------- 150 175 151 void Register(G4VEnergyLossProcess* p); 176 void Register(G4VEnergyLossProcess* p); 152 177 153 void DeRegister(G4VEnergyLossProcess* p); 178 void DeRegister(G4VEnergyLossProcess* p); 154 179 155 void Register(G4VMultipleScattering* p); 180 void Register(G4VMultipleScattering* p); 156 181 157 void DeRegister(G4VMultipleScattering* p); 182 void DeRegister(G4VMultipleScattering* p); 158 183 159 void Register(G4VEmProcess* p); 184 void Register(G4VEmProcess* p); 160 185 161 void DeRegister(G4VEmProcess* p); 186 void DeRegister(G4VEmProcess* p); 162 187 163 void Register(G4VProcess* p); << 164 << 165 void DeRegister(G4VProcess* p); << 166 << 167 void Register(G4VEmModel* p); 188 void Register(G4VEmModel* p); 168 189 169 void DeRegister(G4VEmModel* p); 190 void DeRegister(G4VEmModel* p); 170 191 171 void Register(G4VEmFluctuationModel* p); 192 void Register(G4VEmFluctuationModel* p); 172 193 173 void DeRegister(G4VEmFluctuationModel* p); 194 void DeRegister(G4VEmFluctuationModel* p); 174 195 >> 196 void RegisterIon(const G4ParticleDefinition* aParticle, >> 197 G4VEnergyLossProcess* p); >> 198 175 void RegisterExtraParticle(const G4ParticleD 199 void RegisterExtraParticle(const G4ParticleDefinition* aParticle, 176 G4VEnergyLossProc << 200 G4VEnergyLossProcess* p); 177 201 178 void SetVerbose(G4int val); << 202 void SetLossFluctuations(G4bool val); 179 203 180 void ResetParameters(); << 204 void SetSubCutoff(G4bool val, const G4Region* r=0); 181 205 182 void SetAtomDeexcitation(G4VAtomDeexcitation << 206 void SetIntegral(G4bool val); >> 207 >> 208 void SetRandomStep(G4bool val); >> 209 >> 210 void SetMinSubRange(G4double val); >> 211 >> 212 void SetMinEnergy(G4double val); 183 213 184 void SetSubCutProducer(G4VSubCutProducer*); << 214 void SetMaxEnergy(G4double val); 185 215 186 void SetNIELCalculator(G4NIELCalculator*); << 216 void SetMaxEnergyForCSDARange(G4double val); >> 217 >> 218 void SetMaxEnergyForMuons(G4double val); >> 219 >> 220 void SetDEDXBinning(G4int val); >> 221 >> 222 void SetDEDXBinningForCSDARange(G4int val); >> 223 >> 224 void SetLambdaBinning(G4int val); >> 225 >> 226 G4int GetNumberOfBinsPerDecade() const; >> 227 >> 228 void SetStepFunction(G4double v1, G4double v2); >> 229 >> 230 void SetBuildCSDARange(G4bool val); >> 231 >> 232 void SetLPMFlag(G4bool val); >> 233 >> 234 void SetSplineFlag(G4bool val); >> 235 >> 236 void SetLinearLossLimit(G4double val); >> 237 >> 238 void SetBremsstrahlungTh(G4double val); >> 239 >> 240 void SetFactorForAngleLimit(G4double val); >> 241 >> 242 void SetVerbose(G4int val); 187 243 188 //------------------------------------------ 244 //------------------------------------------------- 189 // Access methods 245 // Access methods 190 //------------------------------------------ 246 //------------------------------------------------- 191 247 192 inline G4bool IsMaster() const; << 248 G4EnergyLossMessenger* GetMessenger(); 193 249 194 G4VEnergyLossProcess* GetEnergyLossProcess(c << 250 G4bool BuildCSDARange() const; 195 << 196 const std::vector<G4VEnergyLossProcess*>& Ge << 197 251 198 const std::vector<G4VEmProcess*>& GetEmProce << 252 G4bool LPMFlag() const; 199 253 200 const std::vector<G4VMultipleScattering*>& G << 254 G4bool SplineFlag() const; 201 255 202 G4EmSaturation* EmSaturation(); << 256 G4double BremsstrahlungTh() const; 203 257 204 G4EmConfigurator* EmConfigurator(); << 258 G4double FactorForAngleLimit() const; 205 259 206 G4ElectronIonPair* ElectronIonPair(); << 260 G4double MinKinEnergy() const; 207 261 208 G4NIELCalculator* NIELCalculator(); << 262 G4double MaxKinEnergy() const; 209 263 210 inline G4EmCorrections* EmCorrections(); << 264 const std::vector<G4VEnergyLossProcess*>& GetEnergyLossProcessVector(); 211 265 212 inline G4VAtomDeexcitation* AtomDeexcitation << 266 const std::vector<G4VEmProcess*>& GetEmProcessVector(); 213 267 214 inline G4VSubCutProducer* SubCutProducer(); << 268 const std::vector<G4VMultipleScattering*>& GetMultipleScatteringVector(); 215 269 216 inline G4LossTableBuilder* GetTableBuilder() << 270 G4VEnergyLossProcess* GetEnergyLossProcess(const G4ParticleDefinition*); 217 271 218 inline void SetGammaGeneralProcess(G4VEmProc << 272 G4EmCorrections* EmCorrections(); 219 273 220 inline G4VEmProcess* GetGammaGeneralProcess( << 274 G4EmSaturation* EmSaturation(); 221 275 222 inline void SetElectronGeneralProcess(G4VEmP << 276 G4EmConfigurator* EmConfigurator(); 223 277 224 inline G4VEmProcess* GetElectronGeneralProce << 278 G4ElectronIonPair* ElectronIonPair(); 225 279 226 inline void SetPositronGeneralProcess(G4VEmP << 280 G4VAtomDeexcitation* AtomDeexcitation(); 227 281 228 inline G4VEmProcess* GetPositronGeneralProce << 282 G4LossTableBuilder* GetTableBuilder(); 229 283 230 G4LossTableManager(G4LossTableManager &) = d << 284 void SetAtomDeexcitation(G4VAtomDeexcitation*); 231 G4LossTableManager & operator=(const G4LossT << 232 285 233 private: 286 private: 234 287 235 //------------------------------------------ 288 //------------------------------------------------- 236 // Private methods and members 289 // Private methods and members 237 //------------------------------------------ 290 //------------------------------------------------- 238 291 239 G4LossTableManager(); 292 G4LossTableManager(); 240 293 241 void Clear(); << 242 << 243 G4VEnergyLossProcess* BuildTables(const G4Pa 294 G4VEnergyLossProcess* BuildTables(const G4ParticleDefinition* aParticle); 244 295 245 void CopyTables(const G4ParticleDefinition* 296 void CopyTables(const G4ParticleDefinition* aParticle, 246 G4VEnergyLossProcess*); << 297 G4VEnergyLossProcess*); 247 298 248 void ParticleHaveNoLoss(const G4ParticleDefi 299 void ParticleHaveNoLoss(const G4ParticleDefinition* aParticle); 249 300 >> 301 void SetParameters(const G4ParticleDefinition* aParticle, >> 302 G4VEnergyLossProcess*); >> 303 250 void CopyDEDXTables(); 304 void CopyDEDXTables(); 251 305 252 void PrintEWarning(G4String, G4double); << 306 G4LossTableManager(G4LossTableManager &); >> 307 G4LossTableManager & operator=(const G4LossTableManager &right); 253 308 254 static G4ThreadLocal G4LossTableManager* ins << 309 static G4LossTableManager* theInstance; 255 310 256 typedef const G4ParticleDefinition* PD; 311 typedef const G4ParticleDefinition* PD; 257 312 258 // cache << 313 std::map<PD,G4VEnergyLossProcess*,std::less<PD> > loss_map; 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 314 287 std::vector<G4VEnergyLossProcess*> loss_vect 315 std::vector<G4VEnergyLossProcess*> loss_vector; 288 std::vector<PD> part_vector; 316 std::vector<PD> part_vector; 289 std::vector<PD> base_part_vector; 317 std::vector<PD> base_part_vector; >> 318 std::vector<G4bool> tables_are_built; >> 319 std::vector<G4bool> isActive; 290 std::vector<G4PhysicsTable*> dedx_vector; 320 std::vector<G4PhysicsTable*> dedx_vector; 291 std::vector<G4PhysicsTable*> range_vector; 321 std::vector<G4PhysicsTable*> range_vector; 292 std::vector<G4PhysicsTable*> inv_range_vecto 322 std::vector<G4PhysicsTable*> inv_range_vector; 293 std::vector<G4bool> tables_are_built; << 294 std::vector<G4bool> isActive; << 295 std::vector<G4VMultipleScattering*> msc_vect 323 std::vector<G4VMultipleScattering*> msc_vector; 296 std::vector<G4VEmProcess*> emp_vector; 324 std::vector<G4VEmProcess*> emp_vector; 297 std::vector<G4VEmModel*> mod_vector; 325 std::vector<G4VEmModel*> mod_vector; 298 std::vector<G4VEmFluctuationModel*> fmod_vec 326 std::vector<G4VEmFluctuationModel*> fmod_vector; 299 std::vector<G4VProcess*> p_vector; << 300 << 301 std::map<PD,G4VEnergyLossProcess*,std::less< << 302 }; << 303 << 304 //....oooOO0OOooo........oooOO0OOooo........oo << 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 << 328 << 329 inline << 330 G4double G4LossTableManager::GetRangeFromRestr << 331 const G4ParticleD << 332 G4double kineticE << 333 const G4MaterialC << 334 { << 335 if(aParticle != currentParticle) { GetEnergy << 336 return currentLoss ? currentLoss->GetRange(k << 337 } << 338 << 339 //....oooOO0OOooo........oooOO0OOooo........oo << 340 << 341 inline << 342 G4double G4LossTableManager::GetRange(const G4 << 343 G4double << 344 const G4 << 345 { << 346 if(aParticle != currentParticle) { GetEnergy << 347 return currentLoss ? currentLoss->GetRange(k << 348 } << 349 327 350 //....oooOO0OOooo........oooOO0OOooo........oo << 328 // cash >> 329 G4VEnergyLossProcess* currentLoss; >> 330 PD currentParticle; >> 331 PD theElectron; >> 332 PD firstParticle; >> 333 >> 334 G4int n_loss; >> 335 G4int run; >> 336 >> 337 G4bool all_tables_are_built; >> 338 G4bool startInitialisation; >> 339 >> 340 G4bool lossFluctuationFlag; >> 341 G4bool subCutoffFlag; >> 342 G4bool rndmStepFlag; >> 343 G4bool integral; >> 344 G4bool integralActive; >> 345 G4bool buildCSDARange; >> 346 G4bool minEnergyActive; >> 347 G4bool maxEnergyActive; >> 348 G4bool maxEnergyForMuonsActive; >> 349 G4bool stepFunctionActive; >> 350 G4bool flagLPM; >> 351 G4bool splineFlag; >> 352 >> 353 G4double minSubRange; >> 354 G4double maxRangeVariation; >> 355 G4double maxFinalStep; >> 356 G4double minKinEnergy; >> 357 G4double maxKinEnergy; >> 358 G4double maxKinEnergyForMuons; >> 359 G4double bremsTh; >> 360 G4double factorForAngleLimit; >> 361 >> 362 G4LossTableBuilder* tableBuilder; >> 363 G4EnergyLossMessenger* theMessenger; >> 364 G4EmCorrections* emCorrections; >> 365 G4EmSaturation* emSaturation; >> 366 G4EmConfigurator* emConfigurator; >> 367 G4ElectronIonPair* emElectronIonPair; >> 368 G4VAtomDeexcitation* atomDeexcitation; 351 369 352 inline << 370 G4int nbinsLambda; 353 G4double G4LossTableManager::GetEnergy(const G << 371 G4int nbinsPerDecade; 354 G4doubl << 372 G4int verbose; 355 const G << 356 { << 357 if(aParticle != currentParticle) { GetEnergy << 358 return currentLoss ? currentLoss->GetKinetic << 359 } << 360 << 361 //....oooOO0OOooo........oooOO0OOooo........oo << 362 << 363 inline << 364 G4double G4LossTableManager::GetDEDXDispersion << 365 const G4MaterialC << 366 const G4DynamicPa << 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 373 376 inline G4bool G4LossTableManager::IsMaster() c << 374 }; 377 { << 378 return isMaster; << 379 } << 380 375 381 //....oooOO0OOooo........oooOO0OOooo........oo 376 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 382 377 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 378 #endif >> 379 453 380