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 // 26 // G4ForwardXrayTR << 27 // 23 // 28 // Class for description << 24 // $Id: G4ForwardXrayTR.hh,v 1.7 2001/07/11 10:03:42 gunter Exp $ >> 25 // GEANT4 tag $Name: geant4-04-00 $ 29 // 26 // 30 // Class for forward X-ray transition radiatio << 27 // G4ForwardXrayTR -- header file >> 28 // >> 29 // Class for description of forward X-ray transition radiation generated 31 // by relativistic charged particle crossed in 30 // by relativistic charged particle crossed interface between material 1 32 // and material 2 (1 -> 2) 31 // and material 2 (1 -> 2) 33 << 32 // >> 33 // GEANT 4 class header file --- Copyright CERN 1995 >> 34 // CERB Geneva Switzerland >> 35 // >> 36 // for information related to this code, please, contact >> 37 // CERN, CN Division, ASD Group 34 // History: 38 // History: 35 // 22.09.97, V. Grichine (Vladimir.Grichine@ce 39 // 22.09.97, V. Grichine (Vladimir.Grichine@cern.ch) 36 // 26.01.00, V.Grichine, new constructor and p 40 // 26.01.00, V.Grichine, new constructor and protected DM for fast sim. models 37 // 10.03.03, V.Ivanchenko migrade to "cut per << 38 // 03.06.03, V.Ivanchenko fix compilation warn << 39 41 40 #ifndef G4FORWARDXRAYTR_H 42 #ifndef G4FORWARDXRAYTR_H 41 #define G4FORWARDXRAYTR_H 43 #define G4FORWARDXRAYTR_H 42 44 >> 45 43 #include "globals.hh" 46 #include "globals.hh" 44 #include "G4Track.hh" << 47 #include "templates.hh" 45 #include "G4TransitionRadiation.hh" << 48 #include "geomdefs.hh" 46 #include "G4VParticleChange.hh" << 49 #include "Randomize.hh" >> 50 #include "G4Step.hh" >> 51 #include "G4VDiscreteProcess.hh" >> 52 #include "G4DynamicParticle.hh" >> 53 #include "G4Material.hh" >> 54 #include "G4LogicalBorderSurface.hh" >> 55 #include "G4LogicalSkinSurface.hh" >> 56 #include "G4OpticalSurface.hh" >> 57 #include "G4OpticalPhoton.hh" >> 58 #include "G4TransportationManager.hh" 47 59 48 class G4ParticleDefinition; << 60 #include "G4TransitionRadiation.hh" 49 class G4PhysicsTable; << 61 #include "G4PhysicsTable.hh" 50 class G4PhysicsLogVector; << 62 #include "G4Gamma.hh" 51 63 52 class G4ForwardXrayTR : public G4TransitionRad 64 class G4ForwardXrayTR : public G4TransitionRadiation 53 { 65 { 54 public: << 66 public: 55 explicit G4ForwardXrayTR(const G4String& mat << 67 56 const G4String& pro << 68 // Constructors >> 69 >> 70 // G4ForwardXrayTR() ; >> 71 >> 72 >> 73 G4ForwardXrayTR( const G4String& matName1, // G4Material* pMat1, >> 74 const G4String& matName2, // G4Material* pMat2, >> 75 const G4String& processName="XrayTR" ) ; >> 76 >> 77 G4ForwardXrayTR( const G4String& processName="XrayTR" ) ; >> 78 >> 79 // G4ForwardXrayTR(const G4ForwardXrayTR& right) ; >> 80 >> 81 // Destructor // virtual >> 82 >> 83 ~G4ForwardXrayTR() ; >> 84 >> 85 // Operators >> 86 // G4ForwardXrayTR& operator=(const G4ForwardXrayTR& right) ; >> 87 // G4int operator==(const G4ForwardXrayTR& right)const ; >> 88 // G4int operator!=(const G4ForwardXrayTR& right)const ; >> 89 >> 90 /////////////////////// Methods ///////////////////////////////// >> 91 >> 92 void BuildXrayTRtables(); >> 93 >> 94 G4double GetMeanFreePath(const G4Track& aTrack, >> 95 G4double previousStepSize, >> 96 G4ForceCondition* condition) >> 97 { >> 98 *condition = Forced; >> 99 return DBL_MAX; // so TR doesn't limit mean free path >> 100 } >> 101 >> 102 G4VParticleChange* PostStepDoIt( const G4Track& aTrack, >> 103 const G4Step& aStep ) ; >> 104 >> 105 G4double GetEnergyTR(G4int iMat, G4int jMat, G4int iTkin) const ; >> 106 >> 107 G4double GetThetaTR(G4int iMat, G4int jMat, G4int iTkin) const ; >> 108 >> 109 >> 110 ///////////////////// Angle distribution ///////////////////////////// >> 111 // >> 112 >> 113 G4double SpectralAngleTRdensity( G4double energy, >> 114 G4double varAngle ) const; >> 115 >> 116 >> 117 G4double AngleDensity( G4double energy, >> 118 G4double varAngle ) const ; 57 119 58 explicit G4ForwardXrayTR(const G4String& pro << 120 G4double EnergyInterval( G4double energy1, >> 121 G4double energy2, >> 122 G4double varAngle ) const ; 59 123 60 ~G4ForwardXrayTR(); << 124 G4double AngleSum( G4double varAngle1, >> 125 G4double varAngle2 ) const ; 61 126 62 G4ForwardXrayTR(const G4ForwardXrayTR& right << 127 ///////////////////////// Energy distribution /////////////////////////////// 63 G4ForwardXrayTR& operator=(const G4ForwardXr << 64 128 65 /////////////////////// Methods ////// << 129 G4double SpectralDensity( G4double energy, >> 130 G4double x ) const ; 66 131 67 void ProcessDescription(std::ostream&) const << 132 G4double AngleInterval( G4double energy, 68 void DumpInfo() const override { ProcessDesc << 133 G4double varAngle1, >> 134 G4double varAngle2 ) const ; 69 135 70 void BuildXrayTRtables(); << 136 G4double EnergySum( G4double energy1, >> 137 G4double energy2 ) const ; 71 138 72 G4double GetMeanFreePath(const G4Track&, G4d << 73 G4ForceCondition* c << 74 139 75 G4VParticleChange* PostStepDoIt(const G4Trac << 140 /////////////////////////// Access functions //////////////////////////// 76 const G4Step << 77 141 78 G4double GetEnergyTR(G4int iMat, G4int jMat, << 142 G4PhysicsTable* GetAngleDistrTable() { return fAngleDistrTable ; } ; >> 143 G4PhysicsTable* GetEnergyDistrTable() { return fEnergyDistrTable ; } ; 79 144 80 G4double GetThetaTR(G4int iMat, G4int jMat, << 145 static G4int GetSympsonNumber() { return fSympsonNumber ; } ; >> 146 static G4int GetBinTR() { return fBinTR ; } ; 81 147 82 ///////////////////// Angle distribution // << 148 static G4double GetMinProtonTkin() { return fMinProtonTkin ; } ; >> 149 static G4double GetMaxProtonTkin() { return fMaxProtonTkin ; } ; >> 150 static G4int GetTotBin() { return fTotBin ; } ; 83 151 84 G4double SpectralAngleTRdensity(G4double ene << 85 G4double var << 86 152 87 G4double AngleDensity(G4double energy, G4dou << 153 protected : // for access from X-ray TR fast simulation models 88 154 89 G4double EnergyInterval(G4double energy1, G4 << 155 // private : /////////////// Data members /////////////////////////// 90 G4double varAngle) c << 91 156 92 G4double AngleSum(G4double varAngle1, G4doub << 157 G4Gamma* fPtrGamma ; // pointer to TR photon 93 158 94 ///////////////////////// Energy distributi << 159 G4double* fGammaCutInKineticEnergy ; // TR photon cut in energy array >> 160 G4double fGammaTkinCut ; // Tkin cut of TR photon in current mat. 95 161 96 G4double SpectralDensity(G4double energy, G4 << 162 G4PhysicsTable* fAngleDistrTable ; >> 163 G4PhysicsTable* fEnergyDistrTable ; 97 164 98 G4double AngleInterval(G4double energy, G4do << 165 static G4PhysicsLogVector* fProtonEnergyVector ; 99 G4double varAngle2) c << 100 166 101 G4double EnergySum(G4double energy1, G4doubl << 167 static G4int fSympsonNumber ; // Accuracy of Sympson integration 102 168 103 /////////////////////////// Access functio << 169 static G4double fTheMinEnergyTR ; // static min TR energy >> 170 static G4double fTheMaxEnergyTR ; // static max TR energy >> 171 G4double fMinEnergyTR ; // min TR energy in material >> 172 G4double fMaxEnergyTR ; // max TR energy in material >> 173 static G4double fTheMaxAngle ; // max theta of TR quanta >> 174 static G4double fTheMinAngle ; // max theta of TR quanta >> 175 G4double fMaxThetaTR ; // max theta of TR quanta >> 176 static G4int fBinTR ; // number of bins in TR vectors 104 177 105 G4PhysicsTable* GetAngleDistrTable(); << 178 static G4double fMinProtonTkin ; // min Tkin of proton in tables 106 G4PhysicsTable* GetEnergyDistrTable(); << 179 static G4double fMaxProtonTkin ; // max Tkin of proton in tables >> 180 static G4int fTotBin ; // number of bins in log scale >> 181 G4double fGamma ; // current Lorentz factor 107 182 108 static G4int GetSympsonNumber(); << 183 static G4double fPlasmaCof ; // physical consts for plasma energy 109 static G4int GetBinTR(); << 184 static G4double fCofTR ; 110 185 111 static G4double GetMinProtonTkin(); << 186 G4double fSigma1 ; // plasma energy Sq of matter1 112 static G4double GetMaxProtonTkin(); << 187 G4double fSigma2 ; // plasma energy Sq of matter2 113 static G4int GetTotBin(); << 114 188 115 protected: // for access from X-ray TR fast << 116 static constexpr G4double fTheMinEnergyTR = << 117 1. * CLHEP::keV; // static min TR energy << 118 static constexpr G4double fTheMaxEnergyTR = << 119 100. * CLHEP::keV; << 120 static constexpr G4double fTheMaxAngle = 1.0 << 121 static constexpr G4double fTheMinAngle = 5.0 << 122 static constexpr G4double fMinProtonTkin = << 123 100. * CLHEP::GeV; // min Tkin of proton << 124 static constexpr G4double fMaxProtonTkin = << 125 100. * CLHEP::TeV; // max Tkin of proton << 126 static constexpr G4double fPlasmaCof = << 127 4.0 * CLHEP::pi * CLHEP::fine_structure_co << 128 CLHEP::hbarc * CLHEP::hbarc / << 129 CLHEP::electron_mass_c2; // physical cons << 130 static constexpr G4double fCofTR = CLHEP::fi << 131 189 132 static constexpr G4int fSympsonNumber = << 190 } ; // end of G4ForwardXrayTR class --------------------------- 133 100; // Acc << 134 static constexpr G4int fBinTR = 50; // nu << 135 static constexpr G4int fTotBin = 50; // num << 136 191 137 const std::vector<G4double>* fGammaCutInKine << 138 // TR photon cut in energy array << 139 192 140 G4ParticleDefinition* fPtrGamma; // pointer << 141 193 142 G4PhysicsTable* fAngleDistrTable; << 143 G4PhysicsTable* fEnergyDistrTable; << 144 194 145 G4PhysicsLogVector* fProtonEnergyVector; << 195 #endif // G4FORWARDXRAYTR_H 146 196 147 G4double fMinEnergyTR; // min TR energy i << 148 G4double fMaxEnergyTR; // max TR energy i << 149 G4double fMaxThetaTR; // max theta of TR << 150 G4double fGamma; // current Lorentz << 151 G4double fGammaTkinCut; // Tkin cut of TR p << 152 G4double fSigma1; // plasma energy Sq << 153 G4double fSigma2; // plasma energy Sq << 154 197 155 G4int secID = -1; // creator modelID << 156 }; << 157 198 158 #endif // G4FORWARDXRAYTR_H << 159 199