|
||||
File indexing completed on 2025-01-18 09:59:20
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // ------------------------------------------------------------------- 0028 // 0029 // GEANT4 Class header file 0030 // 0031 // 0032 // File name: G4VEmFluctuationModel 0033 // 0034 // Author: Vladimir Ivanchenko 0035 // 0036 // Creation date: 03.01.2002 0037 // 0038 // Modifications: 0039 // 0040 // 28-12-02 add method Dispersion (V.Ivanchenko) 0041 // 07-02-03 change signature (V.Ivanchenko) 0042 // 13-02-03 Add name (V.Ivanchenko) 0043 // 16-10-03 Changed interface to Initialisation (V.Ivanchenko) 0044 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 0045 // 25-07-05 Move constructor and destructor to the body (V.Ivanchenko) 0046 // 0047 // 0048 // Class Description: 0049 // 0050 // Abstract class for interface to simualtion of energy loss fluctuations 0051 0052 // ------------------------------------------------------------------- 0053 // 0054 0055 #ifndef G4VEmFluctuationModel_h 0056 #define G4VEmFluctuationModel_h 1 0057 0058 #include "globals.hh" 0059 #include <CLHEP/Random/RandomEngine.h> 0060 0061 class G4ParticleDefinition; 0062 class G4DynamicParticle; 0063 class G4Material; 0064 class G4MaterialCutsCouple; 0065 class G4LossTableManager; 0066 0067 class G4VEmFluctuationModel 0068 { 0069 0070 public: 0071 0072 explicit G4VEmFluctuationModel(const G4String& nam); 0073 0074 virtual ~G4VEmFluctuationModel(); 0075 0076 //------------------------------------------------------------------------ 0077 // Virtual methods to be implemented for the concrete model 0078 //------------------------------------------------------------------------ 0079 0080 virtual G4double SampleFluctuations(const G4MaterialCutsCouple*, 0081 const G4DynamicParticle*, 0082 const G4double tcut, 0083 const G4double tmax, 0084 const G4double length, 0085 const G4double meanLoss) = 0; 0086 0087 virtual G4double Dispersion(const G4Material*, 0088 const G4DynamicParticle*, 0089 const G4double tcut, 0090 const G4double tmax, 0091 const G4double length) = 0; 0092 0093 //------------------------------------------------------------------------ 0094 // Methods with standard implementation; may be overwritten if needed 0095 //------------------------------------------------------------------------ 0096 0097 virtual void InitialiseMe(const G4ParticleDefinition*); 0098 0099 virtual void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 0100 0101 //------------------------------------------------------------------------ 0102 // Generic methods common to all models 0103 //------------------------------------------------------------------------ 0104 0105 inline const G4String& GetName() const; 0106 0107 // hide assignment operator 0108 G4VEmFluctuationModel & 0109 operator=(const G4VEmFluctuationModel &right) = delete; 0110 G4VEmFluctuationModel(const G4VEmFluctuationModel&) = delete; 0111 0112 private: 0113 0114 const G4String name; 0115 G4LossTableManager* fManager; 0116 }; 0117 0118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0120 0121 inline const G4String& G4VEmFluctuationModel::GetName() const 0122 { 0123 return name; 0124 } 0125 0126 #endif 0127
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |