|
|
|||
File indexing completed on 2026-04-17 07:51:43
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 // ClassName: MicroElecSdSey 0028 // 0029 // Description: The process to kill e- to save CPU 0030 // 0031 // Author: C. Inguimbert 16/02/2022 0032 // ONERA 0033 //---------------------------------------------------------------------------- 0034 // 0035 // Class description: 0036 // 0037 // SEY : Secondary Electron Emission Yield 0038 // detecteor to be used to count the number of secondary electrons 0039 // emitted by a surface of irradiated material 0040 // 0041 0042 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0044 0045 0046 0047 #ifndef SD_MicroElecSdSey 0048 #define SD_MicroElecSdSey 1 0049 0050 #include <iostream> 0051 #include <fstream> 0052 #include <vector> 0053 0054 #include "MicroElecHitSey.hh" 0055 #include "globals.hh" 0056 #include "G4Timer.hh" 0057 #include "G4VSensitiveDetector.hh" 0058 #include "G4GeneralParticleSource.hh" 0059 #include "G4Vector3D.hh" 0060 #include "G4LogicalVolume.hh" 0061 0062 0063 class G4Step; 0064 class G4HCofThisEvent; 0065 0066 class MicroElecSdSey : public G4VSensitiveDetector 0067 { 0068 0069 public: 0070 0071 MicroElecSdSey(const G4String& name, 0072 const G4String& hitsCollectionName); 0073 ~MicroElecSdSey(); 0074 0075 G4double nbHitsTotal_; 0076 G4double nbHitsTotal_bis; 0077 0078 void Initialize(G4HCofThisEvent*); 0079 G4bool ProcessHits(G4Step*, G4TouchableHistory*); 0080 void EndOfEvent(G4HCofThisEvent*); 0081 0082 G4double GetCompteurPrim() { return compteurPrimaire; }; 0083 G4double GetCompteurSec() { return compteurSec; }; 0084 G4double GetCompteurTot() { return compteurTot; }; 0085 G4double GetCompteur50() { return compteur50; }; 0086 0087 void ResetCounters() { 0088 compteurPrimaire = 0; compteurSec = 0; compteurTot = 0; compteur50=0; 0089 } 0090 0091 inline void SetEdep(G4double de) { Sensitive_Detector_Edep = de; }; 0092 inline G4double GetEdep() { return Sensitive_Detector_Edep; }; 0093 inline void AddEdep(G4double de) { Sensitive_Detector_Edep = Sensitive_Detector_Edep + de; }; 0094 0095 private: 0096 G4double compteurPrimaire, compteurSec, compteurTot, compteur50, nbPrim, nbSec, nbSup50; 0097 MicroElecHitSeyCollection* fHitsCollection; 0098 0099 0100 public: 0101 G4bool FileFlag; 0102 G4double Sensitive_Detector_Edep; 0103 0104 }; 0105 0106 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|