G4VRestProcess.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 //      History: first implementation, based on object model of
00034 //      2nd December 1995, G.Cosmo
00035 // 
00036 // Class Description 
00037 //  Abstract class which defines the public behavior of
00038 //  physics interactions at rest.
00039 //
00040 // ------------------------------------------------------------
00041 //   New Physics scheme           18 Dec. 1996  H.Kurahige
00042 // ------------------------------------------------------------
00043 //   modified                     25 Feb. 1997  H.Kurahige
00044 //   modified                      8 Mar. 1997  H.Kurahige
00045 //   modified                     26 Mar. 1997  H.Kurahige
00046 //   modified                     16 Apr. 1997  L.Urban    
00047 //   modified                     17 Dec. 1997  L.Urban    
00048 //   modified for new ParticleChange 12 Mar. 1998  H.Kurashige
00049 
00050 
00051 #ifndef G4VRestProcess_h
00052 #define G4VRestProcess_h 1
00053 
00054 #include "globals.hh"
00055 #include "G4ios.hh"
00056 
00057 #include "G4VProcess.hh"
00058 
00059 
00060 class G4VRestProcess : public G4VProcess 
00061 {
00062   //  Abstract class which defines the public behavior of
00063   //  physics interactions at rest.
00064 
00065   public:
00066       G4VRestProcess(const G4String&  ,
00067                      G4ProcessType   aType = fNotDefined );
00068       G4VRestProcess(G4VRestProcess& );
00069 
00070       virtual ~G4VRestProcess();
00071 
00072   public:   //  with description
00073       virtual G4double AtRestGetPhysicalInteractionLength(
00074                              const G4Track& track,
00075                              G4ForceCondition* condition
00076                             );
00077 
00078       virtual G4VParticleChange* AtRestDoIt(
00079                              const G4Track& ,
00080                              const G4Step&
00081                             );
00082 
00083      //  no operation in  PostStepDoIt and  AlongStepDoIt
00084       virtual G4double AlongStepGetPhysicalInteractionLength(
00085                              const G4Track&,
00086                              G4double  ,
00087                              G4double  ,
00088                              G4double& ,
00089                              G4GPILSelection*
00090                            ){ return -1.0; };
00091 
00092       virtual G4double PostStepGetPhysicalInteractionLength(
00093                              const G4Track& ,
00094                              G4double   ,
00095                              G4ForceCondition* 
00096                             ) { return -1.0; };
00097 
00098      //  no operation in  PostStepDoIt and  AlongStepDoIt
00099       virtual G4VParticleChange* PostStepDoIt(
00100                              const G4Track& ,
00101                              const G4Step&
00102                             ) {return 0;};
00103 
00104       virtual G4VParticleChange* AlongStepDoIt(
00105                              const G4Track& ,
00106                              const G4Step& 
00107                             ) {return 0;};
00108  
00109   protected: //  with description
00110 
00111       virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0;
00112       //  Calculates the mean life-time (i.e. for decays) of the
00113       //  particle at rest due to the occurence of the given process,
00114       //  or converts the probability of interaction (i.e. for
00115       //  annihilation) into the life-time of the particle for the
00116       //  occurence of the given process.
00117 
00118  private:
00119   // hide default constructor and assignment operator as private 
00120       G4VRestProcess();
00121       G4VRestProcess & operator=(const G4VRestProcess &right);
00122 };
00123 
00124 
00125 
00126 #endif
00127 
00128 
00129 

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