|
||||
File indexing completed on 2025-01-18 09:59:24
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 * G4VITDiscreteProcess.hh 0028 * 0029 * Created on: 9 août 2015 0030 * Author: matkara 0031 */ 0032 0033 #ifndef SOURCE_PROCESSES_ELECTROMAGNETIC_DNA_MANAGEMENT_INCLUDE_G4VITDISCRETEPROCESS_HH_ 0034 #define SOURCE_PROCESSES_ELECTROMAGNETIC_DNA_MANAGEMENT_INCLUDE_G4VITDISCRETEPROCESS_HH_ 0035 0036 #include <G4VITProcess.hh> 0037 #include "globals.hh" 0038 #include "G4ios.hh" 0039 0040 class G4VITDiscreteProcess: public G4VITProcess 0041 { 0042 // Abstract class which defines the public behavior of 0043 // discrete physics interactions. 0044 public: 0045 0046 G4VITDiscreteProcess(const G4String&, G4ProcessType aType = fNotDefined); 0047 G4VITDiscreteProcess(G4VITDiscreteProcess &); 0048 0049 ~G4VITDiscreteProcess() override; 0050 0051 G4VITDiscreteProcess & operator=(const G4VITDiscreteProcess &right) = delete; 0052 0053 public: 0054 // with description 0055 G4double PostStepGetPhysicalInteractionLength(const G4Track& track, 0056 G4double previousStepSize, 0057 G4ForceCondition* condition) override; 0058 0059 G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override; 0060 0061 // no operation in AtRestDoIt and AlongStepDoIt 0062 G4double AlongStepGetPhysicalInteractionLength(const G4Track&, 0063 G4double, 0064 G4double, 0065 G4double&, 0066 G4GPILSelection*) override 0067 { 0068 return -1.0; 0069 } 0070 ; 0071 0072 G4double AtRestGetPhysicalInteractionLength(const G4Track&, 0073 G4ForceCondition*) override 0074 { 0075 return -1.0; 0076 } 0077 ; 0078 0079 // no operation in AtRestDoIt and AlongStepDoIt 0080 G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) override 0081 { 0082 return nullptr; 0083 } 0084 ; 0085 0086 G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) override 0087 { 0088 return nullptr; 0089 } 0090 ; 0091 0092 protected: 0093 // with description 0094 virtual G4double GetMeanFreePath(const G4Track& aTrack, 0095 G4double previousStepSize, 0096 G4ForceCondition* condition)=0; 0097 // Calculates from the macroscopic cross section a mean 0098 // free path, the value is returned in units of distance. 0099 0100 private: 0101 // hide default constructor and assignment operator as private 0102 G4VITDiscreteProcess(); 0103 0104 }; 0105 0106 #endif /* SOURCE_PROCESSES_ELECTROMAGNETIC_DNA_MANAGEMENT_INCLUDE_G4VITDISCRETEPROCESS_HH_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |