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 // >> 23 // >> 24 // $Id: G4TransitionRadiation.hh,v 1.7 2003/06/03 08:11:01 vnivanch Exp $ >> 25 // GEANT4 tag $Name: geant4-05-02-patch-01 $ >> 26 // >> 27 // G4TransitionRadiation -- header file >> 28 // 26 // Class for description of transition radiat 29 // Class for description of transition radiation generated 27 // by charged particle crossed interface betw 30 // by charged particle crossed interface between material 1 28 // and material 2 (1 -> 2). Transition radiati 31 // and material 2 (1 -> 2). Transition radiation could be of kind: 29 // - optical back 32 // - optical back 30 // - optical forward 33 // - optical forward 31 // - X-ray forward (for relativistic case Tk 34 // - X-ray forward (for relativistic case Tkin/mass >= 10^2) 32 // 35 // 33 // GEANT 4 class header file --- Copyright CER 36 // GEANT 4 class header file --- Copyright CERN 1995 >> 37 // CERB Geneva Switzerland 34 // 38 // >> 39 // for information related to this code, please, contact >> 40 // CERN, CN Division, ASD Group 35 // History: 41 // History: 36 // 18.12.97, V. Grichine (Vladimir.Grichine@ce 42 // 18.12.97, V. Grichine (Vladimir.Grichine@cern.ch) 37 // 02.02.00, V.Grichine, new data fEnergy and 43 // 02.02.00, V.Grichine, new data fEnergy and fVarAngle for double 38 // numerical integration 44 // numerical integration in inherited classes 39 // 03.06.03, V.Ivanchenko fix compilation warn 45 // 03.06.03, V.Ivanchenko fix compilation warnings 40 // 28.07.05, P.Gumplinger add G4ProcessType to << 41 46 42 #ifndef G4TransitionRadiation_h 47 #ifndef G4TransitionRadiation_h 43 #define G4TransitionRadiation_h 48 #define G4TransitionRadiation_h 44 49 45 #include "globals.hh" << 50 46 #include "G4ParticleDefinition.hh" << 47 #include "G4Step.hh" << 48 #include "G4Track.hh" << 49 #include "G4VDiscreteProcess.hh" 51 #include "G4VDiscreteProcess.hh" 50 #include "G4VParticleChange.hh" << 52 #include "G4Material.hh" >> 53 // #include "G4OpBoundaryProcess.hh" 51 54 52 class G4TransitionRadiation : public G4VDiscre << 55 class G4TransitionRadiation : public G4VDiscreteProcess 53 { 56 { 54 public: << 57 public: 55 explicit G4TransitionRadiation(const G4Strin << 58 56 G4ProcessType << 59 // Constructors >> 60 >> 61 >> 62 G4TransitionRadiation( const G4String& processName = "TR") ; >> 63 >> 64 >> 65 // G4TransitionRadiation(const G4TransitionRadiation& right) ; >> 66 >> 67 // Destructor >> 68 >> 69 virtual ~G4TransitionRadiation() ; >> 70 >> 71 // Operators >> 72 // G4TransitionRadiation& operator=(const G4TransitionRadiation& right) ; >> 73 // G4int operator==(const G4TransitionRadiation& right)const ; >> 74 // G4int operator!=(const G4TransitionRadiation& right)const ; >> 75 >> 76 // Methods >> 77 >> 78 G4bool IsApplicable(const G4ParticleDefinition& aParticleType) >> 79 { >> 80 return ( aParticleType.GetPDGCharge() != 0.0 ); >> 81 } >> 82 >> 83 G4double GetMeanFreePath(const G4Track&, >> 84 G4double, >> 85 G4ForceCondition* condition) >> 86 { >> 87 *condition = Forced; >> 88 return DBL_MAX; // so TR doesn't limit mean free path >> 89 } >> 90 >> 91 G4VParticleChange* PostStepDoIt(const G4Track&, >> 92 const G4Step&) >> 93 { >> 94 ClearNumberOfInteractionLengthLeft(); >> 95 return &aParticleChange; >> 96 } >> 97 >> 98 >> 99 >> 100 >> 101 virtual >> 102 G4double SpectralAngleTRdensity( G4double energy, >> 103 G4double varAngle ) const = 0 ; 57 104 58 virtual ~G4TransitionRadiation(); << 105 G4double IntegralOverEnergy( G4double energy1, >> 106 G4double energy2, >> 107 G4double varAngle ) const ; 59 108 60 G4TransitionRadiation(const G4TransitionRadi << 109 G4double IntegralOverAngle( G4double energy, 61 G4TransitionRadiation& operator=(const G4Tra << 110 G4double varAngle1, >> 111 G4double varAngle2 ) const ; 62 112 63 // Methods << 113 G4double AngleIntegralDistribution( G4double varAngle1, >> 114 G4double varAngle2 ) const ; 64 115 65 G4bool IsApplicable(const G4ParticleDefiniti << 116 G4double EnergyIntegralDistribution( G4double energy1, >> 117 G4double energy2 ) const ; 66 118 67 virtual G4double GetMeanFreePath(const G4Tra << 68 G4ForceCond << 69 119 70 virtual G4VParticleChange* PostStepDoIt(cons << 71 cons << 72 120 73 virtual void ProcessDescription(std::ostream << 121 // Access functions 74 virtual void DumpInfo() const override { Pro << 75 122 76 virtual G4double SpectralAngleTRdensity(G4do << 77 G4do << 78 123 79 G4double IntegralOverEnergy(G4double energy1 << 124 protected : 80 G4double varAngl << 81 125 82 G4double IntegralOverAngle(G4double energy, << 126 G4int fMatIndex1 ; // index of the 1st material 83 G4double varAngle << 127 G4int fMatIndex2 ; // index of the 2nd material 84 128 85 G4double AngleIntegralDistribution(G4double << 129 // private : 86 G4double << 87 130 88 G4double EnergyIntegralDistribution(G4double << 131 G4double fGamma ; >> 132 G4double fEnergy ; >> 133 G4double fVarAngle ; 89 134 90 protected: << 135 // Local constants 91 // Local constants << 136 static const G4int fSympsonNumber ; // Accuracy of Sympson integration 10 92 // Accuracy of Sympson integration << 137 static const G4int fGammaNumber ; // = 15 93 static constexpr G4int fSympsonNumber = 100; << 138 static const G4int fPointNumber ; // = 100 94 static constexpr G4int fGammaNumber = 15; << 95 static constexpr G4int fPointNumber = 100; << 96 139 97 G4double fGamma; << 140 G4double fMinEnergy ; // min TR energy 98 G4double fEnergy; << 141 G4double fMaxEnergy ; // max TR energy 99 G4double fVarAngle; << 142 G4double fMaxTheta ; // max theta of TR quanta 100 143 101 G4double fMinEnergy; // min TR energy << 144 G4double fSigma1 ; // plasma energy Sq of matter1 102 G4double fMaxEnergy; // max TR energy << 145 G4double fSigma2 ; // plasma energy Sq of matter2 103 G4double fMaxTheta; // max theta of TR qu << 104 146 105 G4double fSigma1; // plasma energy Sq of ma << 106 G4double fSigma2; // plasma energy Sq of ma << 107 147 108 G4int fMatIndex1; // index of the 1st mater << 148 } ; 109 G4int fMatIndex2; // index of the 2nd mater << 110 }; << 111 149 112 #endif // G4TransitionRadiation_h << 150 #endif // G4TransitionRadiation_h 113 151