|
||||
File indexing completed on 2025-01-18 09:58:07
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 * G4DNAElectronHoleRecombination.hh 0028 * 0029 * Created on: Jun 17, 2015 0030 * Author: mkaramit 0031 */ 0032 0033 #pragma once 0034 #include <G4VITRestDiscreteProcess.hh> 0035 0036 class G4DNAElectronHoleRecombination : public G4VITRestDiscreteProcess 0037 { 0038 public: 0039 G4DNAElectronHoleRecombination(); 0040 ~G4DNAElectronHoleRecombination() override; 0041 void Create(); 0042 0043 void StartTracking(G4Track*) override; 0044 0045 G4bool IsApplicable(const G4ParticleDefinition&) override; 0046 0047 void BuildPhysicsTable(const G4ParticleDefinition&) override 0048 {} 0049 0050 //////////////////////////// 0051 // DoIt ///////////////// 0052 /////////////////////////// 0053 G4VParticleChange* AtRestDoIt(const G4Track& /*track*/, 0054 const G4Step& /*stepData*/) override; 0055 // A virtual base class function that has to be overridden 0056 // by any subclass. The DoIt method actually performs the 0057 // physics process and determines either momentum change 0058 // of the production of secondaries etc. 0059 // arguments 0060 // const G4Track& track: 0061 // reference to the current G4Track information 0062 // const G4Step& stepData: 0063 // reference to the current G4Step information 0064 0065 G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override; 0066 0067 0068 ////////////////////////// 0069 // GPIL ////////////// 0070 ///////////////////////// 0071 0072 G4double GetMeanFreePath(const G4Track& aTrack, 0073 G4double previousStepSize, 0074 G4ForceCondition* condition)override; 0075 // Calculates from the macroscopic cross section a mean 0076 // free path, the value is returned in units of distance. 0077 0078 G4double GetMeanLifeTime(const G4Track& aTrack, 0079 G4ForceCondition* condition) override; 0080 // Calculates the mean life-time (i.e. for decays) of the 0081 // particle at rest due to the occurrence of the given process, 0082 // or converts the probability of interaction (i.e. for 0083 // annihilation) into the life-time of the particle for the 0084 // occurence of the given process. 0085 0086 private: 0087 struct ReactantInfo 0088 { 0089 G4Track* fElectron; 0090 G4double fDistance; 0091 G4double fProbability; 0092 }; 0093 0094 struct State : public G4ProcessStateBase<G4DNAElectronHoleRecombination> 0095 { 0096 std::vector<ReactantInfo> fReactants; // distanceSqr; 0097 G4double fSampleProba; 0098 }; 0099 0100 G4bool FindReactant(const G4Track& track); 0101 void MakeReaction(const G4Track& track); 0102 0103 const std::vector<double>* fpMoleculeDensity; 0104 G4ParticleChange fParticleChange; 0105 G4bool fIsInitialized; 0106 std::map<int, std::pair<double, G4double> > fOnsagerRadiusPerMaterial; 0107 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |