00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id: G4UserSpecialCuts.hh 69887 2013-05-17 08:17:02Z gcosmo $ 00027 // 00028 // class description 00029 // 00030 // A "process" to be registered to the process manager of each particle, 00031 // in the UserPhysicsList, in order to take into account the user limits 00032 // defined in the G4UserLimits object attached to a logical volume. 00033 00034 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00035 00036 #ifndef G4UserSpecialCuts_h 00037 #define G4UserSpecialCuts_h 1 00038 00039 #include "G4ios.hh" 00040 #include "globals.hh" 00041 #include "G4VProcess.hh" 00042 00043 class G4LossTableManager; 00044 00045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00046 00047 class G4UserSpecialCuts : public G4VProcess 00048 { 00049 public: // with description 00050 00051 G4UserSpecialCuts(const G4String& processName ="UserSpecialCut" ); 00052 00053 virtual ~G4UserSpecialCuts(); 00054 00055 virtual G4double PostStepGetPhysicalInteractionLength( 00056 const G4Track& track, 00057 G4double previousStepSize, 00058 G4ForceCondition* condition 00059 ); 00060 00061 virtual G4VParticleChange* PostStepDoIt( 00062 const G4Track& , 00063 const G4Step& 00064 ); 00065 00066 public: // without description 00067 00068 // no operation in AtRestGPIL 00069 virtual G4double AtRestGetPhysicalInteractionLength( 00070 const G4Track& , 00071 G4ForceCondition* 00072 ){ return -1.0; }; 00073 00074 // no operation in AtRestDoIt 00075 virtual G4VParticleChange* AtRestDoIt( 00076 const G4Track& , 00077 const G4Step& 00078 ){return 0;}; 00079 00080 // no operation in AlongStepGPIL 00081 virtual G4double AlongStepGetPhysicalInteractionLength( 00082 const G4Track&, 00083 G4double , 00084 G4double , 00085 G4double& , 00086 G4GPILSelection* 00087 ){ return -1.0; }; 00088 00089 // no operation in AlongStepDoIt 00090 virtual G4VParticleChange* AlongStepDoIt( 00091 const G4Track& , 00092 const G4Step& 00093 ) {return 0;}; 00094 00095 private: 00096 00097 // hide assignment operator as private 00098 G4UserSpecialCuts(G4UserSpecialCuts&); 00099 G4UserSpecialCuts& operator=(const G4UserSpecialCuts& right); 00100 00101 G4LossTableManager* theLossTableManager; 00102 00103 }; 00104 00105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00106 00107 #endif 00108