G4VRestContinuousDiscreteProcess.hh

Go to the documentation of this file.
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 //
00027 // $Id$
00028 //
00029 // 
00030 // ------------------------------------------------------------
00031 //      GEANT 4 class header file 
00032 //
00033 //
00034 // Class Description  
00035 //  Abstract class which defines the public behavior of
00036 //  continuous and discrete physics interactions.
00037 //
00038 // ------------------------------------------------------------
00039 //   New Physics scheme            8  Mar. 1997  H.Kurahige
00040 // ------------------------------------------------------------
00041 //   fix bugs in GetGPILSelection() 24 Jan. 1998 H.Kurashige
00042 //   modified for new ParticleChange 12 Mar. 1998  H.Kurashige
00043 //   Fixed a bug in PostStepGetPhysicalInteractionLength  
00044 //                                15 Apr. 2002 H.Kurashige 
00045 //
00046 
00047 #ifndef G4VRestContinuousDiscreteProcess_h
00048 #define G4VRestContinuousDiscreteProcess_h 1
00049 
00050 #include "globals.hh"
00051 #include "G4ios.hh"
00052 
00053 #include "G4VProcess.hh"
00054 
00055 class G4VRestContinuousDiscreteProcess : public G4VProcess 
00056 {
00057   //  Abstract class which defines the public behavior of
00058   //  discrete physics interactions.
00059   public:     
00060 
00061       G4VRestContinuousDiscreteProcess(const G4String& ,
00062                                        G4ProcessType   aType = fNotDefined );
00063       G4VRestContinuousDiscreteProcess(G4VRestContinuousDiscreteProcess &);
00064 
00065       virtual  ~G4VRestContinuousDiscreteProcess();
00066 
00067 
00068   public :// with description
00069       virtual  G4double PostStepGetPhysicalInteractionLength(
00070                              const G4Track& track,
00071                              G4double   previousStepSize,
00072                              G4ForceCondition* condition
00073                             );
00074 
00075       virtual  G4VParticleChange* PostStepDoIt(
00076                              const G4Track& ,
00077                              const G4Step& 
00078                             );
00079 
00080       virtual  G4double AlongStepGetPhysicalInteractionLength(
00081                              const G4Track& track,
00082                              G4double previousStepSize,
00083                              G4double currentMinimumStep,
00084                              G4double& currentSafety,
00085                              G4GPILSelection* selection
00086                             );
00087 
00088       virtual  G4VParticleChange* AlongStepDoIt(
00089                              const G4Track& ,
00090                              const G4Step& 
00091                             );
00092  
00093       virtual  G4double AtRestGetPhysicalInteractionLength(
00094                              const G4Track& ,
00095                              G4ForceCondition* 
00096                             );
00097 
00098       virtual  G4VParticleChange* AtRestDoIt(
00099                              const G4Track& ,
00100                              const G4Step&
00101                             );
00102 
00103   protected: // with description
00104       virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
00105       //  Calculates the mean life-time (i.e. for decays) of the
00106       //  particle at rest due to the occurence of the given process,
00107       //  or converts the probability of interaction (i.e. for
00108       //  annihilation) into the life-time of the particle for the
00109       //  occurence of the given process.
00110 
00111     virtual G4double GetContinuousStepLimit(const G4Track& aTrack,
00112                              G4double  previousStepSize,
00113                              G4double  currentMinimumStep,
00114                              G4double& currentSafety
00115                                                              )=0;
00116   private:
00117     // this is the returnd value of  G4GPILSelection in 
00118     // the arguments of AlongStepGPIL()
00119     G4GPILSelection  valueGPILSelection;
00120 
00121   protected: // with description
00122     // these two methods are set/get methods for valueGPILSelection
00123      void SetGPILSelection(G4GPILSelection selection)
00124     { valueGPILSelection = selection;};
00125 
00126     G4GPILSelection GetGPILSelection() const{return valueGPILSelection;};
00127 
00128   protected: // with description
00129      virtual G4double GetMeanFreePath(const G4Track& aTrack,
00130                              G4double   previousStepSize,
00131                              G4ForceCondition* condition
00132                                                                )=0;
00133       //  Calculates from the macroscopic cross section a mean
00134       //  free path, the value is returned in units of distance.
00135 
00136  private:
00137   // hide default constructor and assignment operator as private 
00138       G4VRestContinuousDiscreteProcess();
00139       G4VRestContinuousDiscreteProcess & operator=(const G4VRestContinuousDiscreteProcess &right);
00140 
00141 };
00142 
00143 
00144 #endif
00145 

Generated on Mon May 27 17:50:20 2013 for Geant4 by  doxygen 1.4.7