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 // 26 // 27 // ------------------------------------------- 27 // ------------------------------------------------------------------- 28 // 28 // 29 // GEANT4 Class header file 29 // GEANT4 Class header file 30 // 30 // 31 // 31 // 32 // File name: G4VMultipleScattering 32 // File name: G4VMultipleScattering 33 // 33 // 34 // Author: Vladimir Ivanchenko on base 34 // Author: Vladimir Ivanchenko on base of Laszlo Urban code 35 // 35 // 36 // Creation date: 12.03.2002 36 // Creation date: 12.03.2002 37 // 37 // 38 // Modifications: 38 // Modifications: 39 // 39 // 40 // 16-07-03 Update GetRange interface (V.Ivanc 40 // 16-07-03 Update GetRange interface (V.Ivanchenko) 41 // 26-11-03 bugfix in AlongStepDoIt (L.Urban) 41 // 26-11-03 bugfix in AlongStepDoIt (L.Urban) 42 // 25-05-04 add protection against case when r 42 // 25-05-04 add protection against case when range is less than steplimit (VI) 43 // 27-08-04 Add InitialiseForRun method (V.Iva 43 // 27-08-04 Add InitialiseForRun method (V.Ivanchneko) 44 // 08-11-04 Migration to new interface of Stor 44 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivanchenko) 45 // 15-04-05 remove boundary flag (V.Ivanchenko 45 // 15-04-05 remove boundary flag (V.Ivanchenko) 46 // 07-10-05 error in a protection in GetContin 46 // 07-10-05 error in a protection in GetContinuousStepLimit corrected (L.Urban) 47 // 27-10-05 introduce virtual function MscStep 47 // 27-10-05 introduce virtual function MscStepLimitation() (V.Ivanchenko) 48 // 26-01-06 Rename GetRange -> GetRangeFromRes 48 // 26-01-06 Rename GetRange -> GetRangeFromRestricteDEDX (V.Ivanchenko) 49 // 17-02-06 Save table of transport cross sect 49 // 17-02-06 Save table of transport cross sections not mfp (V.Ivanchenko) 50 // 07-03-06 Move step limit calculation to mod 50 // 07-03-06 Move step limit calculation to model (V.Ivanchenko) 51 // 13-05-06 Add method to access model by inde 51 // 13-05-06 Add method to access model by index (V.Ivanchenko) 52 // 12-02-07 Add get/set skin (V.Ivanchenko) 52 // 12-02-07 Add get/set skin (V.Ivanchenko) 53 // 27-10-07 Virtual functions moved to source 53 // 27-10-07 Virtual functions moved to source (V.Ivanchenko) 54 // 15-07-08 Reorder class members for further 54 // 15-07-08 Reorder class members for further multi-thread development (VI) 55 // 07-04-09 Moved msc methods from G4VEmModel 55 // 07-04-09 Moved msc methods from G4VEmModel to G4VMscModel (VI) 56 // 56 // 57 // Class Description: 57 // Class Description: 58 // 58 // 59 // It is the generic process of multiple scatt 59 // It is the generic process of multiple scattering it includes common 60 // part of calculations for all charged partic 60 // part of calculations for all charged particles 61 61 62 // ------------------------------------------- 62 // ------------------------------------------------------------------- 63 // 63 // 64 64 65 #ifndef G4VMultipleScattering_h 65 #ifndef G4VMultipleScattering_h 66 #define G4VMultipleScattering_h 1 66 #define G4VMultipleScattering_h 1 67 67 68 #include "G4VContinuousDiscreteProcess.hh" 68 #include "G4VContinuousDiscreteProcess.hh" 69 #include "globals.hh" 69 #include "globals.hh" 70 #include "G4Material.hh" 70 #include "G4Material.hh" 71 #include "G4ParticleChangeForMSC.hh" 71 #include "G4ParticleChangeForMSC.hh" 72 #include "G4Track.hh" 72 #include "G4Track.hh" 73 #include "G4Step.hh" 73 #include "G4Step.hh" 74 #include "G4EmModelManager.hh" 74 #include "G4EmModelManager.hh" 75 #include "G4VMscModel.hh" 75 #include "G4VMscModel.hh" 76 #include "G4EmParameters.hh" 76 #include "G4EmParameters.hh" 77 #include "G4MscStepLimitType.hh" 77 #include "G4MscStepLimitType.hh" 78 78 79 class G4ParticleDefinition; 79 class G4ParticleDefinition; 80 class G4VEnergyLossProcess; 80 class G4VEnergyLossProcess; 81 class G4LossTableManager; 81 class G4LossTableManager; 82 class G4SafetyHelper; 82 class G4SafetyHelper; 83 83 84 //....oooOO0OOooo........oooOO0OOooo........oo 84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 85 85 86 class G4VMultipleScattering : public G4VContin 86 class G4VMultipleScattering : public G4VContinuousDiscreteProcess 87 { 87 { 88 public: 88 public: 89 89 90 explicit G4VMultipleScattering(const G4Strin 90 explicit G4VMultipleScattering(const G4String& name = "msc", 91 G4ProcessType 91 G4ProcessType type = fElectromagnetic); 92 92 93 ~G4VMultipleScattering() override; 93 ~G4VMultipleScattering() override; 94 94 95 //------------------------------------------ 95 //------------------------------------------------------------------------ 96 // Virtual methods to be implemented for the 96 // Virtual methods to be implemented for the concrete model 97 //------------------------------------------ 97 //------------------------------------------------------------------------ 98 98 99 void ProcessDescription(std::ostream& outFil 99 void ProcessDescription(std::ostream& outFile) const override; 100 100 101 virtual void InitialiseProcess(const G4Parti << 102 << 103 // Print out of generic class parameters << 104 void StreamInfo(std::ostream& outFile, const << 105 G4bool rst = false) const; << 106 << 107 protected: 101 protected: 108 102 >> 103 virtual void InitialiseProcess(const G4ParticleDefinition*) = 0; >> 104 109 virtual void StreamProcessInfo(std::ostream& 105 virtual void StreamProcessInfo(std::ostream&) const {}; 110 106 111 public: 107 public: 112 108 113 //------------------------------------------ 109 //------------------------------------------------------------------------ 114 // Generic methods common to all ContinuousD 110 // Generic methods common to all ContinuousDiscrete processes 115 //------------------------------------------ 111 //------------------------------------------------------------------------ 116 112 117 // Initialise for build of tables 113 // Initialise for build of tables 118 void PreparePhysicsTable(const G4ParticleDef 114 void PreparePhysicsTable(const G4ParticleDefinition&) override; 119 115 120 // Build physics table during initialisation 116 // Build physics table during initialisation 121 void BuildPhysicsTable(const G4ParticleDefin 117 void BuildPhysicsTable(const G4ParticleDefinition&) override; 122 118 123 // Store PhysicsTable in a file. 119 // Store PhysicsTable in a file. 124 // Return false in case of failure at I/O 120 // Return false in case of failure at I/O 125 G4bool StorePhysicsTable(const G4ParticleDef 121 G4bool StorePhysicsTable(const G4ParticleDefinition*, 126 const G4String& dir 122 const G4String& directory, 127 G4bool ascii = fals 123 G4bool ascii = false) override; 128 124 129 // Retrieve Physics from a file. 125 // Retrieve Physics from a file. 130 // (return true if the Physics Table can be 126 // (return true if the Physics Table can be build by using file) 131 // (return false if the process has no funct 127 // (return false if the process has no functionality or in case of failure) 132 // File name should is constructed as proces 128 // File name should is constructed as processName+particleName and the 133 // should be placed under the directory spec 129 // should be placed under the directory specified by the argument. 134 G4bool RetrievePhysicsTable(const G4Particle 130 G4bool RetrievePhysicsTable(const G4ParticleDefinition*, 135 const G4String& 131 const G4String& directory, 136 G4bool ascii) ov 132 G4bool ascii) override; 137 133 138 // This is called in the beginning of tracki 134 // This is called in the beginning of tracking for a new track 139 void StartTracking(G4Track*) override; 135 void StartTracking(G4Track*) override; 140 136 141 // The function overloads the corresponding 137 // The function overloads the corresponding function of the base 142 // class.It limits the step near to boundari 138 // class.It limits the step near to boundaries only 143 // and invokes the method GetMscContinuousSt 139 // and invokes the method GetMscContinuousStepLimit at every step. 144 G4double AlongStepGetPhysicalInteractionLeng 140 G4double AlongStepGetPhysicalInteractionLength( 145 const 141 const G4Track&, 146 G4doub 142 G4double previousStepSize, 147 G4doub 143 G4double currentMinimalStep, 148 G4doub 144 G4double& currentSafety, 149 G4GPIL 145 G4GPILSelection* selection) override; 150 146 151 // The function overloads the corresponding 147 // The function overloads the corresponding function of the base 152 // class. 148 // class. 153 G4double PostStepGetPhysicalInteractionLengt 149 G4double PostStepGetPhysicalInteractionLength( 154 const G4 150 const G4Track&, 155 G4double 151 G4double previousStepSize, 156 G4ForceC 152 G4ForceCondition* condition) override; 157 153 158 // Along step actions 154 // Along step actions 159 G4VParticleChange* AlongStepDoIt(const G4Tra 155 G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) override; 160 156 >> 157 // Post step actions >> 158 G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override; >> 159 161 // This method does not used for tracking, i 160 // This method does not used for tracking, it is intended only for tests 162 G4double ContinuousStepLimit(const G4Track& 161 G4double ContinuousStepLimit(const G4Track& track, 163 G4double previo 162 G4double previousStepSize, 164 G4double curren 163 G4double currentMinimalStep, 165 G4double& curre 164 G4double& currentSafety); 166 165 167 // hide assignment operator 166 // hide assignment operator 168 G4VMultipleScattering(G4VMultipleScattering 167 G4VMultipleScattering(G4VMultipleScattering &) = delete; 169 G4VMultipleScattering & operator=(const G4VM 168 G4VMultipleScattering & operator=(const G4VMultipleScattering &right) = delete; 170 169 171 //------------------------------------------ 170 //------------------------------------------------------------------------ 172 // Specific methods to set, access, modify m 171 // Specific methods to set, access, modify models 173 //------------------------------------------ 172 //------------------------------------------------------------------------ 174 173 175 // Select model in run time 174 // Select model in run time 176 inline G4VEmModel* SelectModel(G4double kinE 175 inline G4VEmModel* SelectModel(G4double kinEnergy, size_t idx); 177 176 178 public: 177 public: 179 178 180 // Add model for region, smaller value of or 179 // Add model for region, smaller value of order defines which 181 // model will be selected for a given energy 180 // model will be selected for a given energy interval 182 void AddEmModel(G4int order, G4VMscModel*, c << 181 void AddEmModel(G4int order, G4VEmModel*, const G4Region* region = nullptr); 183 182 184 // Assign a model to a process local list, t 183 // Assign a model to a process local list, to enable the list in run time 185 // the derived process should execute AddEmM 184 // the derived process should execute AddEmModel(..) for all such models 186 void SetEmModel(G4VMscModel*, G4int idx = 0) 185 void SetEmModel(G4VMscModel*, G4int idx = 0); 187 186 188 // return a model from the local list 187 // return a model from the local list 189 inline G4VMscModel* EmModel(size_t index = 0 188 inline G4VMscModel* EmModel(size_t index = 0) const; 190 189 191 // Access to run time models 190 // Access to run time models 192 inline G4int NumberOfModels() const; 191 inline G4int NumberOfModels() const; 193 192 194 inline G4VMscModel* GetModelByIndex(G4int id << 193 inline G4VMscModel* GetModelByIndex(G4int idx = 0, G4bool ver = false) const; 195 194 196 //------------------------------------------ 195 //------------------------------------------------------------------------ 197 // Get/Set parameters for simulation of mult 196 // Get/Set parameters for simulation of multiple scattering 198 //------------------------------------------ 197 //------------------------------------------------------------------------ 199 198 >> 199 void SetIonisation(G4VEnergyLossProcess*); >> 200 200 inline G4bool LateralDisplasmentFlag() const 201 inline G4bool LateralDisplasmentFlag() const; 201 202 202 inline G4double Skin() const; 203 inline G4double Skin() const; 203 204 204 inline G4double RangeFactor() const; 205 inline G4double RangeFactor() const; 205 206 206 inline G4double GeomFactor() const; 207 inline G4double GeomFactor() const; 207 208 208 inline G4double PolarAngleLimit() const; 209 inline G4double PolarAngleLimit() const; 209 210 210 inline G4bool UseBaseMaterial() const; 211 inline G4bool UseBaseMaterial() const; 211 212 212 inline G4MscStepLimitType StepLimitType() co 213 inline G4MscStepLimitType StepLimitType() const; 213 inline void SetStepLimitType(G4MscStepLimitT 214 inline void SetStepLimitType(G4MscStepLimitType val); 214 215 215 inline G4double LowestKinEnergy() const; 216 inline G4double LowestKinEnergy() const; 216 inline void SetLowestKinEnergy(G4double val) 217 inline void SetLowestKinEnergy(G4double val); 217 218 218 inline const G4ParticleDefinition* FirstPart 219 inline const G4ParticleDefinition* FirstParticle() const; 219 220 220 //------------------------------------------ 221 //------------------------------------------------------------------------ 221 // Run time methods 222 // Run time methods 222 //------------------------------------------ 223 //------------------------------------------------------------------------ 223 224 224 protected: 225 protected: 225 226 226 // This method is not used for tracking, it 227 // This method is not used for tracking, it returns mean free path value 227 G4double GetMeanFreePath(const G4Track& trac 228 G4double GetMeanFreePath(const G4Track& track, 228 G4double, 229 G4double, 229 G4ForceCondition* c 230 G4ForceCondition* condition) override; 230 231 231 // This method is not used for tracking, it 232 // This method is not used for tracking, it returns step limit 232 G4double GetContinuousStepLimit(const G4Trac 233 G4double GetContinuousStepLimit(const G4Track& track, 233 G4double pre 234 G4double previousStepSize, 234 G4double cur 235 G4double currentMinimalStep, 235 G4double& cu 236 G4double& currentSafety) override; 236 237 237 private: 238 private: 238 239 >> 240 // Print out of generic class parameters >> 241 void StreamInfo(std::ostream& outFile, const G4ParticleDefinition&, >> 242 G4bool rst = false) const; >> 243 239 // ======== Parameters of the class fixed at 244 // ======== Parameters of the class fixed at construction ========= 240 245 241 G4EmModelManager* modelManager; 246 G4EmModelManager* modelManager; 242 G4LossTableManager* emManager; 247 G4LossTableManager* emManager; 243 G4EmParameters* theParameters; 248 G4EmParameters* theParameters; 244 249 245 // ======== Parameters of the class fixed at 250 // ======== Parameters of the class fixed at initialisation ======= 246 251 247 G4SafetyHelper* safetyHelper = n 252 G4SafetyHelper* safetyHelper = nullptr; 248 const G4ParticleDefinition* firstParticle = 253 const G4ParticleDefinition* firstParticle = nullptr; 249 const G4ParticleDefinition* currParticle = n 254 const G4ParticleDefinition* currParticle = nullptr; 250 255 251 std::vector<G4VMscModel*> mscModels; 256 std::vector<G4VMscModel*> mscModels; 252 257 253 G4double facrange = 0.04; 258 G4double facrange = 0.04; 254 G4double lowestKinEnergy; 259 G4double lowestKinEnergy; 255 260 256 // ======== Cached values - may be state dep 261 // ======== Cached values - may be state dependent ================ 257 262 258 protected: 263 protected: 259 264 260 G4ParticleChangeForMSC fParticleChange; 265 G4ParticleChangeForMSC fParticleChange; 261 266 262 private: 267 private: 263 268 264 G4ThreeVector fNewPosition; 269 G4ThreeVector fNewPosition; 265 G4ThreeVector fNewDirection; 270 G4ThreeVector fNewDirection; 266 271 267 G4VMscModel* currentModel = n 272 G4VMscModel* currentModel = nullptr; 268 G4VEnergyLossProcess* fIonisation = nu 273 G4VEnergyLossProcess* fIonisation = nullptr; 269 274 270 G4double geomMin; 275 G4double geomMin; 271 G4double minDisplacement2 276 G4double minDisplacement2; 272 G4double physStepLimit = 277 G4double physStepLimit = 0.0; 273 G4double tPathLength = 0. 278 G4double tPathLength = 0.0; 274 G4double gPathLength = 0. 279 G4double gPathLength = 0.0; 275 280 276 G4MscStepLimitType stepLimit = fUse 281 G4MscStepLimitType stepLimit = fUseSafety; 277 G4int numberOfModels = 282 G4int numberOfModels = 0; 278 283 279 G4bool latDisplacement 284 G4bool latDisplacement = true; 280 G4bool isIon = false; 285 G4bool isIon = false; 281 G4bool fPositionChanged 286 G4bool fPositionChanged = false; 282 G4bool isActive = false 287 G4bool isActive = false; 283 G4bool baseMat = false; 288 G4bool baseMat = false; 284 }; 289 }; 285 290 286 // ======== Run time inline methods ========== 291 // ======== Run time inline methods ================ 287 292 288 //....oooOO0OOooo........oooOO0OOooo........oo 293 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 289 294 290 inline G4VEmModel* 295 inline G4VEmModel* 291 G4VMultipleScattering::SelectModel(G4double ki 296 G4VMultipleScattering::SelectModel(G4double kinEnergy, size_t coupleIndex) 292 { 297 { 293 return modelManager->SelectModel(kinEnergy, 298 return modelManager->SelectModel(kinEnergy, coupleIndex); 294 } 299 } 295 300 296 //....oooOO0OOooo........oooOO0OOooo........oo 301 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 297 302 298 inline G4bool G4VMultipleScattering::LateralD 303 inline G4bool G4VMultipleScattering::LateralDisplasmentFlag() const 299 { 304 { 300 return latDisplacement; 305 return latDisplacement; 301 } 306 } 302 307 303 //....oooOO0OOooo........oooOO0OOooo........oo 308 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 304 309 305 inline G4double G4VMultipleScattering::Skin() 310 inline G4double G4VMultipleScattering::Skin() const 306 { 311 { 307 return theParameters->MscSkin(); 312 return theParameters->MscSkin(); 308 } 313 } 309 314 310 //....oooOO0OOooo........oooOO0OOooo........oo 315 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 311 316 312 inline G4double G4VMultipleScattering::RangeF 317 inline G4double G4VMultipleScattering::RangeFactor() const 313 { 318 { 314 return facrange; 319 return facrange; 315 } 320 } 316 321 317 //....oooOO0OOooo........oooOO0OOooo........oo 322 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 318 323 319 inline G4double G4VMultipleScattering::GeomFa 324 inline G4double G4VMultipleScattering::GeomFactor() const 320 { 325 { 321 return theParameters->MscGeomFactor(); 326 return theParameters->MscGeomFactor(); 322 } 327 } 323 328 324 //....oooOO0OOooo........oooOO0OOooo........oo 329 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 325 330 326 inline G4double G4VMultipleScattering::PolarA 331 inline G4double G4VMultipleScattering::PolarAngleLimit() const 327 { 332 { 328 return theParameters->MscThetaLimit(); 333 return theParameters->MscThetaLimit(); 329 } 334 } 330 335 331 //....oooOO0OOooo........oooOO0OOooo........oo 336 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 332 337 333 inline G4MscStepLimitType G4VMultipleScatterin 338 inline G4MscStepLimitType G4VMultipleScattering::StepLimitType() const 334 { 339 { 335 return stepLimit; << 340 return theParameters->MscStepLimitType(); 336 } 341 } 337 342 338 //....oooOO0OOooo........oooOO0OOooo........oo 343 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 339 344 340 inline void G4VMultipleScattering::SetStepLimi 345 inline void G4VMultipleScattering::SetStepLimitType(G4MscStepLimitType val) 341 { 346 { 342 theParameters->SetMscStepLimitType(val); 347 theParameters->SetMscStepLimitType(val); 343 } 348 } 344 349 345 //....oooOO0OOooo........oooOO0OOooo........oo 350 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 346 351 347 inline G4double G4VMultipleScattering::LowestK 352 inline G4double G4VMultipleScattering::LowestKinEnergy() const 348 { 353 { 349 return lowestKinEnergy; 354 return lowestKinEnergy; 350 } 355 } 351 356 352 //....oooOO0OOooo........oooOO0OOooo........oo 357 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 353 358 354 inline void G4VMultipleScattering::SetLowestKi 359 inline void G4VMultipleScattering::SetLowestKinEnergy(G4double val) 355 { 360 { 356 lowestKinEnergy = val; 361 lowestKinEnergy = val; 357 } 362 } 358 363 359 //....oooOO0OOooo........oooOO0OOooo........oo 364 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 360 365 361 inline const G4ParticleDefinition* G4VMultiple 366 inline const G4ParticleDefinition* G4VMultipleScattering::FirstParticle() const 362 { 367 { 363 return firstParticle; 368 return firstParticle; 364 } 369 } 365 370 366 //....oooOO0OOooo........oooOO0OOooo........oo 371 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 367 372 368 inline G4VMscModel* G4VMultipleScattering::EmM 373 inline G4VMscModel* G4VMultipleScattering::EmModel(size_t index) const 369 { 374 { 370 return (index < mscModels.size()) ? mscModel 375 return (index < mscModels.size()) ? mscModels[index] : nullptr; 371 } 376 } 372 377 373 //....oooOO0OOooo........oooOO0OOooo........oo 378 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 374 379 375 inline G4int G4VMultipleScattering::NumberOfMo 380 inline G4int G4VMultipleScattering::NumberOfModels() const 376 { 381 { 377 return numberOfModels; 382 return numberOfModels; 378 } 383 } 379 384 380 //....oooOO0OOooo........oooOO0OOooo........oo 385 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 381 386 382 inline G4VMscModel* 387 inline G4VMscModel* 383 G4VMultipleScattering::GetModelByIndex(G4int i 388 G4VMultipleScattering::GetModelByIndex(G4int idx, G4bool ver) const 384 { 389 { 385 // static cast is possible inside this class << 386 return static_cast<G4VMscModel*>(modelManage 390 return static_cast<G4VMscModel*>(modelManager->GetModel(idx, ver)); 387 } 391 } 388 392 389 //....oooOO0OOooo........oooOO0OOooo........oo 393 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 390 394 391 inline G4bool G4VMultipleScattering::UseBaseMa 395 inline G4bool G4VMultipleScattering::UseBaseMaterial() const 392 { 396 { 393 return baseMat; 397 return baseMat; 394 } 398 } 395 399 396 //....oooOO0OOooo........oooOO0OOooo........oo 400 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 397 401 398 #endif 402 #endif 399 403