|
||||
File indexing completed on 2025-01-18 09:58:45
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 // ----------------------------------------------------------------------------- 0028 // 0029 // GEANT4 Class header file 0030 // 0031 // Author: Vladimir Ivanchenko 0032 // 0033 // Creation date: 20 July 2009 0034 // 0035 // Modified: 0036 // 0037 //------------------------------------------------------------------------------ 0038 // 0039 0040 // class description 0041 // 0042 // The class simulates nuclear stopping due to multiple scattering 0043 // It should be instantiated after G4ionIonisation 0044 // 0045 // class description - end 0046 0047 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0049 0050 #ifndef G4NuclearStopping_h 0051 #define G4NuclearStopping_h 1 0052 0053 #include "G4VEmProcess.hh" 0054 #include "globals.hh" 0055 #include "G4Track.hh" 0056 #include "G4Step.hh" 0057 #include "G4ParticleDefinition.hh" 0058 #include "G4GPILSelection.hh" 0059 #include "G4ParticleChangeForLoss.hh" 0060 0061 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0062 0063 class G4NuclearStopping : public G4VEmProcess 0064 { 0065 0066 public: // with description 0067 0068 explicit G4NuclearStopping(const G4String& processName="nuclearStopping"); 0069 0070 ~G4NuclearStopping() override; 0071 0072 // returns true for charged particles, false otherwise 0073 G4bool IsApplicable (const G4ParticleDefinition& p) final; 0074 0075 // implementation of pure virtual method 0076 G4double AlongStepGetPhysicalInteractionLength( 0077 const G4Track& track, 0078 G4double previousStepSize, 0079 G4double currentMinimumStep, 0080 G4double& proposedSafety, 0081 G4GPILSelection* selection) final; 0082 0083 // implementation of energy loss along step 0084 G4VParticleChange* AlongStepDoIt(const G4Track& track, 0085 const G4Step& step) final; 0086 0087 // print documentation in html format 0088 void ProcessDescription(std::ostream&) const override; 0089 0090 protected: 0091 0092 // This function initialise process 0093 void InitialiseProcess(const G4ParticleDefinition*) final; 0094 0095 // copy constructor and hide assignment operator 0096 G4NuclearStopping(G4NuclearStopping &) = delete; 0097 G4NuclearStopping & operator=(const G4NuclearStopping &right) = delete; 0098 0099 private: 0100 0101 G4ParticleChangeForLoss nParticleChange; 0102 G4bool isInitialized; 0103 0104 }; 0105 0106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0107 0108 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |