G4VContinuousDiscreteProcess.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 //  Abstract class which defines the public behavior of
00034 // 
00035 // Class Description 
00036 //  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 G4VContinuousDiscreteProcess_h
00048 #define G4VContinuousDiscreteProcess_h 1
00049 
00050 #include "globals.hh"
00051 #include "G4ios.hh"
00052 
00053 #include "G4VProcess.hh"
00054 
00055 class G4VContinuousDiscreteProcess : public G4VProcess 
00056 {
00057   //  Abstract class which defines the public behavior of
00058   //  discrete physics interactions.
00059   public:     
00060 
00061       G4VContinuousDiscreteProcess(const G4String& ,
00062                                    G4ProcessType   aType = fNotDefined );
00063       G4VContinuousDiscreteProcess(G4VContinuousDiscreteProcess &);
00064 
00065       virtual ~G4VContinuousDiscreteProcess();
00066 
00067   public :// with description
00068       virtual G4double PostStepGetPhysicalInteractionLength(
00069                              const G4Track& track,
00070                              G4double   previousStepSize,
00071                              G4ForceCondition* condition
00072                             );
00073 
00074       virtual G4VParticleChange* PostStepDoIt(
00075                              const G4Track& ,
00076                              const G4Step& 
00077                             );
00078 
00079       virtual G4double AlongStepGetPhysicalInteractionLength(
00080                              const G4Track&,
00081                              G4double  previousStepSize,
00082                              G4double  currentMinimumStep,
00083                              G4double& currentSafety,
00084                              G4GPILSelection* selection
00085                             );
00086 
00087       virtual G4VParticleChange* AlongStepDoIt(
00088                              const G4Track& ,
00089                              const G4Step& 
00090                             );
00091  
00092      //  no operation in  AtRestDoIt
00093       virtual G4double AtRestGetPhysicalInteractionLength(
00094                              const G4Track& ,
00095                              G4ForceCondition* 
00096                             ) { return -1.0; };
00097 
00098      //  no operation in  AtRestDoIt
00099       virtual G4VParticleChange* AtRestDoIt(
00100                              const G4Track& ,
00101                              const G4Step&
00102                             ) {return 0;};
00103  
00104  protected:// with description
00105      virtual G4double GetMeanFreePath(const G4Track& aTrack,
00106                              G4double   previousStepSize,
00107                              G4ForceCondition* condition
00108                                                                )=0;
00109       //  Calculates from the macroscopic cross section a mean
00110       //  free path, the value is returned in units of distance.
00111 
00112   protected:// with description
00113     virtual G4double GetContinuousStepLimit(const G4Track& aTrack,
00114                              G4double  previousStepSize,
00115                              G4double  currentMinimumStep,
00116                              G4double& currentSafety
00117                                                              )=0;
00118   private:
00119     // this is the returnd value of  G4GPILSelection in 
00120     // the arguments of AlongStepGPIL()
00121     G4GPILSelection  valueGPILSelection;
00122 
00123   protected:// with description
00124     // these two methods are set/get methods for valueGPILSelection
00125     void SetGPILSelection(G4GPILSelection selection)
00126     { valueGPILSelection = selection;};
00127 
00128     G4GPILSelection GetGPILSelection() const{return valueGPILSelection;};
00129 
00130    private:
00131   // hide default constructor and assignment operator as private 
00132       G4VContinuousDiscreteProcess();
00133       G4VContinuousDiscreteProcess & operator=(const G4VContinuousDiscreteProcess &right);
00134 
00135 };
00136 
00137 #endif
00138 
00139 
00140 
00141 
00142 
00143 

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