|
||||
File indexing completed on 2025-01-18 09:59: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 // 0028 // class description 0029 // 0030 // A "process" to be registered to the process manager of each particle, 0031 // in the UserPhysicsList, in order to take into account the MaxAllowedStep 0032 // defined in the G4UserLimits object attached to a logical volume. 0033 // 0034 // ------------------------------------------------------------ 0035 // 23 Jan. 2004 H.Kurashige 0036 // ------------------------------------------------------------ 0037 #ifndef G4StepLimiter_h 0038 #define G4StepLimiter_h 1 0039 0040 #include "G4ios.hh" 0041 #include "globals.hh" 0042 #include "G4VProcess.hh" 0043 0044 class G4StepLimiter : public G4VProcess 0045 { 0046 public: // with description 0047 0048 G4StepLimiter(const G4String& processName ="StepLimiter" ); 0049 0050 virtual ~G4StepLimiter(); 0051 0052 virtual G4double PostStepGetPhysicalInteractionLength( 0053 const G4Track& track, 0054 G4double previousStepSize, 0055 G4ForceCondition* condition 0056 ); 0057 0058 virtual G4VParticleChange* PostStepDoIt( 0059 const G4Track& , 0060 const G4Step& 0061 ); 0062 0063 public: // without description 0064 0065 // no operation in AtRestGPIL 0066 virtual G4double AtRestGetPhysicalInteractionLength( 0067 const G4Track& , 0068 G4ForceCondition* 0069 ){ return -1.0; }; 0070 0071 // no operation in AtRestDoIt 0072 virtual G4VParticleChange* AtRestDoIt( 0073 const G4Track& , 0074 const G4Step& 0075 ){return 0;}; 0076 0077 // no operation in AlongStepGPIL 0078 virtual G4double AlongStepGetPhysicalInteractionLength( 0079 const G4Track&, 0080 G4double , 0081 G4double , 0082 G4double& , 0083 G4GPILSelection* 0084 ){ return -1.0; }; 0085 0086 // no operation in AlongStepDoIt 0087 virtual G4VParticleChange* AlongStepDoIt( 0088 const G4Track& , 0089 const G4Step& 0090 ) {return 0;}; 0091 0092 private: 0093 0094 // hide assignment operator as private 0095 G4StepLimiter(G4StepLimiter&); 0096 G4StepLimiter& operator=(const G4StepLimiter& right); 0097 0098 }; 0099 0100 #endif 0101 0102 0103 0104 0105 0106 0107 0108 0109 0110
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |