G4ICRU49NuclearStoppingModel.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 // $Id$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 //
00031 // GEANT4 Class header file
00032 //
00033 //
00034 // File name:     G4ICRU49NuclearStoppingModel
00035 //
00036 // Author:        V.Ivanchenko 
00037 //
00038 // Creation date: 20.07.2009 
00039 //
00040 // Modifications:
00041 //
00042 //
00043 // Class Description:
00044 //
00045 // Implementation of the ICRU'49 model of nuclear stopping 
00046 
00047 // -------------------------------------------------------------------
00048 //
00049 
00050 #ifndef G4ICRU49NuclearStoppingModel_h
00051 #define G4ICRU49NuclearStoppingModel_h 1
00052 
00053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00054 
00055 #include "G4VEmModel.hh"
00056 
00057 class G4ParticleChangeForLoss;
00058 class G4Pow;
00059 
00060 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00061 
00062 class G4ICRU49NuclearStoppingModel : public G4VEmModel
00063 {
00064 
00065 public:
00066 
00067   G4ICRU49NuclearStoppingModel(const G4String& nam = "ICRU49NucStopping");
00068 
00069   virtual ~G4ICRU49NuclearStoppingModel();
00070 
00071   virtual void Initialise(const G4ParticleDefinition*, 
00072                           const G4DataVector&);
00073 
00074   // main method to compute dEdx
00075   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00076                                         const G4ParticleDefinition*,
00077                                         G4double kineticEnergy,
00078                                         G4double cutEnergy = DBL_MAX);
00079 
00080   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00081                                  const G4MaterialCutsCouple*,
00082                                  const G4DynamicParticle*, 
00083                                  G4double, G4double);
00084 
00085   inline void SetFluctuationFlag(G4bool);
00086 
00087 private:
00088 
00089   void InitialiseNuclearStopping();
00090 
00091   G4double NuclearStoppingPower(G4double kineticEnergy,
00092                                 G4double Z1, G4double Z2,
00093                                 G4double A1, G4double A2);
00094 
00095   //  hide assignment operator
00096   G4ICRU49NuclearStoppingModel & operator=(const  G4ICRU49NuclearStoppingModel &right);
00097   G4ICRU49NuclearStoppingModel(const  G4ICRU49NuclearStoppingModel&);
00098 
00099   G4Pow* g4pow;
00100 
00101   static G4double ed[104];
00102   static G4double ad[104];
00103 
00104   G4double theZieglerFactor;
00105 
00106   // flags
00107   G4bool   lossFlucFlag;
00108 };
00109 
00110 inline void G4ICRU49NuclearStoppingModel::SetFluctuationFlag(G4bool val)
00111 {
00112   lossFlucFlag = val;
00113 }
00114 
00115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00116 
00117 #endif
00118 

Generated on Mon May 27 17:48:33 2013 for Geant4 by  doxygen 1.4.7