|
||||
Warning, file /include/Geant4/G4MicroElecSurface.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 // G4MicroElecSurface.hh, 0028 // 2020/05/20 P. Caron, C. Inguimbert are with ONERA [b] 0029 // Q. Gibaru is with CEA [a], ONERA [b] and CNES [c] 0030 // D. Lambert is with CEA [a] 0031 // 0032 // A part of this work has been funded by the French space agency(CNES[c]) 0033 // [a] CEA, DAM, DIF - 91297 ARPAJON, France 0034 // [b] ONERA - DPHY, 2 avenue E.Belin, 31055 Toulouse, France 0035 // [c] CNES, 18 av.E.Belin, 31401 Toulouse CEDEX, France 0036 // 0037 // Based on the following publications 0038 // 0039 // - Q.Gibaru, C.Inguimbert, P.Caron, M.Raine, D.Lambert, J.Puech, 0040 // Geant4 physics processes for microdosimetry and secondary electron emission simulation : 0041 // Extension of MicroElec to very low energies and new materials 0042 // NIM B, 2020, in review. 0043 // 0044 // Based on: 0045 // -the class G4OpBoundaryProcess.cc for the surface crossing of 0046 // optical photons. 0047 // 0048 // 0049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0050 0051 #ifndef G4MicroElecSurface_h 0052 #define G4MicroElecSurface_h 1 0053 0054 ///////////// 0055 // Includes 0056 ///////////// 0057 0058 #include "globals.hh" 0059 #include "templates.hh" 0060 #include "geomdefs.hh" 0061 #include "Randomize.hh" 0062 #include "G4ProductionCutsTable.hh" 0063 #include "G4RandomTools.hh" 0064 #include "G4RandomDirection.hh" 0065 #include "G4MicroElecMaterialStructure.hh" 0066 #include "G4Step.hh" 0067 #include "G4VDiscreteProcess.hh" 0068 #include "G4DynamicParticle.hh" 0069 #include "G4Material.hh" 0070 #include "G4LogicalBorderSurface.hh" 0071 #include "G4LogicalSkinSurface.hh" 0072 #include "G4OpticalPhoton.hh" 0073 #include "G4Electron.hh" 0074 #include "G4TransportationManager.hh" 0075 0076 // Class Description: 0077 // Discrete Process -- reflection/refraction at interfaces for electrons. 0078 // Class inherits publicly from G4VDiscreteProcess. 0079 // Class Description - End: 0080 0081 ///////////////////// 0082 // Class Definition 0083 ///////////////////// 0084 0085 enum G4MicroElecSurfaceStatus { UndefinedSurf, 0086 NotAtBoundarySurf, 0087 SameMaterialSurf, 0088 StepTooSmallSurf }; 0089 0090 class G4MicroElecSurface : public G4VDiscreteProcess 0091 { 0092 public: 0093 explicit G4MicroElecSurface(const G4String& processName = "MicroElecSurface", 0094 G4ProcessType type = fElectromagnetic); 0095 0096 ~G4MicroElecSurface() override; 0097 0098 G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override; 0099 // Returns true -> 'is applicable' only for an electron. 0100 0101 void SetFlagFranchissement(); 0102 0103 G4double GetMeanFreePath(const G4Track& , 0104 G4double , 0105 G4ForceCondition* condition) override; 0106 // Returns infinity; i. e. the process does not limit the step, 0107 // but sets the 'Forced' condition for the DoIt to be invoked at 0108 // every step. However, only at a boundary will any action be 0109 // taken. 0110 0111 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 0112 const G4Step& aStep) override; 0113 // This is the method implementing boundary processes. 0114 0115 void BuildPhysicsTable(const G4ParticleDefinition&) override; 0116 // Initialisation 0117 0118 G4MicroElecSurfaceStatus GetStatus() const; 0119 // Returns the current status. 0120 0121 G4MicroElecSurface(const G4MicroElecSurface &right) = delete; 0122 G4MicroElecSurface& operator=(const G4MicroElecSurface &right) = delete; 0123 0124 void Initialise(); 0125 0126 private: 0127 // Returns the incident angle of electron 0128 G4double GetIncidentAngle(); 0129 G4ThreeVector Reflexion(const G4StepPoint* PostStepPoint); 0130 0131 // private elements 0132 typedef std::map<G4String, G4double, std::less<G4String> > WorkFunctionTable; 0133 WorkFunctionTable tableWF; //Table of all materials simulated 0134 0135 G4double theParticleMomentum; 0136 G4ThreeVector oldMomentum, previousMomentum; 0137 G4ThreeVector theGlobalNormal; 0138 G4ThreeVector theFacetNormal; 0139 const G4Material* material1; 0140 const G4Material* material2; 0141 G4MicroElecSurfaceStatus theStatus; 0142 0143 G4double kCarTolerance; 0144 G4double ekint, thetat, thetaft, energyThreshold, crossingProbability; 0145 G4bool flag_franchissement_surface, flag_reflexion,flag_normal, teleportToDo, teleportDone, isInitialised; 0146 0147 }; 0148 0149 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |