[822] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
[850] | 27 | // $Id: G4IonisParamMat.hh,v 1.12 2008/07/08 10:34:56 vnivanch Exp $ |
---|
| 28 | // GEANT4 tag $Name: HEAD $ |
---|
[822] | 29 | // |
---|
| 30 | |
---|
| 31 | // class description |
---|
| 32 | // |
---|
| 33 | // The class contains few (physical) quantities related to the Ionisation |
---|
| 34 | // process, for a material defined by its pointer G4Material* |
---|
| 35 | // |
---|
| 36 | |
---|
| 37 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo.... |
---|
| 38 | |
---|
| 39 | // 09-07-98: data moved from G4Material (mma) |
---|
| 40 | // 09-03-01: copy constructor and assignement operator in public (mma) |
---|
| 41 | // 28-10-02: add setMeanExcitationEnergy (V.Ivanchenko) |
---|
| 42 | // 27-09-07: add computation of parameters for ions (V.Ivanchenko) |
---|
[850] | 43 | // 04-03-08: add fBirks constant (mma) |
---|
[822] | 44 | |
---|
| 45 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo.... |
---|
| 46 | |
---|
| 47 | #ifndef G4IonisParamMat_HH |
---|
| 48 | #define G4IonisParamMat_HH |
---|
| 49 | |
---|
| 50 | #include "G4ios.hh" |
---|
| 51 | #include "globals.hh" |
---|
| 52 | |
---|
| 53 | class G4Material; // forward declaration |
---|
| 54 | |
---|
| 55 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo.... |
---|
| 56 | |
---|
| 57 | class G4IonisParamMat // with description |
---|
| 58 | { |
---|
| 59 | public: |
---|
| 60 | |
---|
| 61 | G4IonisParamMat(G4Material*); |
---|
| 62 | virtual ~G4IonisParamMat(); |
---|
| 63 | |
---|
| 64 | // |
---|
| 65 | // retrieval methods |
---|
| 66 | // |
---|
| 67 | |
---|
| 68 | // parameters for mean energy loss calculation: |
---|
| 69 | G4double GetMeanExcitationEnergy() const {return fMeanExcitationEnergy;}; |
---|
| 70 | void SetMeanExcitationEnergy(G4double value); |
---|
| 71 | G4double FindMeanExcitationEnergy(const G4String& chFormula); |
---|
| 72 | G4double GetLogMeanExcEnergy() const {return fLogMeanExcEnergy;}; |
---|
| 73 | G4double* GetShellCorrectionVector() const {return fShellCorrectionVector;}; |
---|
| 74 | G4double GetTaul() const {return fTaul;}; |
---|
| 75 | |
---|
| 76 | // parameters of the density correction: |
---|
| 77 | G4double GetCdensity() const {return fCdensity;}; |
---|
| 78 | G4double GetMdensity() const {return fMdensity;}; |
---|
| 79 | G4double GetAdensity() const {return fAdensity;}; |
---|
| 80 | G4double GetX0density() const {return fX0density;}; |
---|
| 81 | G4double GetX1density() const {return fX1density;}; |
---|
| 82 | |
---|
| 83 | // parameters of the energy loss fluctuation model: |
---|
| 84 | G4double GetF1fluct() const {return fF1fluct;}; |
---|
| 85 | G4double GetF2fluct() const {return fF2fluct;}; |
---|
| 86 | G4double GetEnergy1fluct() const {return fEnergy1fluct;}; |
---|
| 87 | G4double GetLogEnergy1fluct() const {return fLogEnergy1fluct;}; |
---|
| 88 | G4double GetEnergy2fluct() const {return fEnergy2fluct;}; |
---|
| 89 | G4double GetLogEnergy2fluct() const {return fLogEnergy2fluct;}; |
---|
| 90 | G4double GetEnergy0fluct() const {return fEnergy0fluct;}; |
---|
| 91 | G4double GetRateionexcfluct() const {return fRateionexcfluct;}; |
---|
| 92 | |
---|
| 93 | // parameters for ion corrections computations |
---|
| 94 | G4double GetZeffective() const {return fZeff;}; |
---|
| 95 | G4double GetFermiEnergy() const {return fFermiEnergy;}; |
---|
| 96 | G4double GetLFactor() const {return fLfactor;}; |
---|
[850] | 97 | |
---|
| 98 | // parameters for Birks attenuation: |
---|
| 99 | void SetBirksConstant(G4double value) {fBirks = value;}; |
---|
| 100 | G4double GetBirksConstant() const {return fBirks;}; |
---|
[822] | 101 | |
---|
[850] | 102 | // parameters for average energy per ion |
---|
| 103 | void SetMeanEnergyPerIonPair(G4double value) {fMeanEnergyPerIon = value;}; |
---|
| 104 | G4double GetMeanEnergyPerIonPair() const {return fMeanEnergyPerIon;}; |
---|
| 105 | |
---|
[822] | 106 | public: // without description |
---|
| 107 | |
---|
| 108 | G4IonisParamMat(const G4IonisParamMat&); |
---|
| 109 | const G4IonisParamMat& operator=(const G4IonisParamMat&); |
---|
| 110 | G4int operator==(const G4IonisParamMat&) const; |
---|
| 111 | G4int operator!=(const G4IonisParamMat&) const; |
---|
| 112 | |
---|
| 113 | G4IonisParamMat(__void__&); |
---|
| 114 | // Fake default constructor for usage restricted to direct object |
---|
| 115 | // persistency for clients requiring preallocation of memory for |
---|
| 116 | // persistifiable objects. |
---|
| 117 | |
---|
| 118 | private: |
---|
| 119 | |
---|
| 120 | // Compute mean parameters : ExcitationEnergy,Shell corretion vector ... |
---|
| 121 | void ComputeMeanParameters(); |
---|
| 122 | |
---|
| 123 | // Compute parameters for the density effect |
---|
| 124 | void ComputeDensityEffect(); |
---|
| 125 | |
---|
| 126 | // Compute parameters for the energy fluctuation model |
---|
| 127 | void ComputeFluctModel(); |
---|
| 128 | |
---|
| 129 | // Compute parameters for ion parameterizations |
---|
| 130 | void ComputeIonParameters(); |
---|
| 131 | |
---|
| 132 | private: |
---|
| 133 | |
---|
| 134 | // |
---|
| 135 | // data members |
---|
| 136 | // |
---|
| 137 | G4Material* fMaterial; // this material |
---|
| 138 | |
---|
| 139 | // parameters for mean energy loss calculation |
---|
| 140 | G4double fMeanExcitationEnergy; // |
---|
| 141 | G4double fLogMeanExcEnergy; // |
---|
| 142 | G4double* fShellCorrectionVector; // shell correction coefficients |
---|
| 143 | G4double fTaul; // lower limit of Bethe-Bloch formula |
---|
| 144 | |
---|
| 145 | // parameters of the density correction.... |
---|
| 146 | G4double fCdensity; // mat.constant |
---|
| 147 | G4double fMdensity; // exponent |
---|
| 148 | G4double fAdensity; // |
---|
| 149 | G4double fX0density; // |
---|
| 150 | G4double fX1density; // |
---|
| 151 | |
---|
| 152 | // parameters of the energy loss fluctuation model |
---|
| 153 | G4double fF1fluct; |
---|
| 154 | G4double fF2fluct; |
---|
| 155 | G4double fEnergy1fluct; |
---|
| 156 | G4double fLogEnergy1fluct; |
---|
| 157 | G4double fEnergy2fluct; |
---|
| 158 | G4double fLogEnergy2fluct; |
---|
| 159 | G4double fEnergy0fluct; |
---|
| 160 | G4double fRateionexcfluct; |
---|
| 161 | |
---|
| 162 | // parameters for ion corrections computations |
---|
| 163 | G4double fZeff; |
---|
| 164 | G4double fFermiEnergy; |
---|
| 165 | G4double fLfactor; |
---|
[850] | 166 | |
---|
| 167 | // parameter for Birks attenuation |
---|
| 168 | G4double fBirks; |
---|
| 169 | // average energy per ion pair |
---|
| 170 | G4double fMeanEnergyPerIon; |
---|
[822] | 171 | }; |
---|
| 172 | |
---|
| 173 | #endif |
---|