G4hCoulombScatteringModel.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 // GEANT4 Class header file
00031 //
00032 //
00033 // File name:     G4hCoulombScatteringModel
00034 //
00035 // Author:        Vladimir Ivanchenko 
00036 //
00037 // Creation date: 08.06.2012 from G4eCoulombScatteringModel
00038 //
00039 // Modifications:
00040 //
00041 // Class Description:
00042 //
00043 // Implementation of Coulomb Scattering of pointlike charge particle 
00044 // on Atomic Nucleus for interval of scattering anles in Lab system 
00045 // thetaMin - ThetaMax, nucleus recoil is neglected.
00046 //   The model based on analysis of J.M.Fernandez-Varea et al. 
00047 // NIM B73(1993)447 originated from G.Wentzel Z.Phys. 40(1927)590 with 
00048 // screening parameter from H.A.Bethe Phys. Rev. 89 (1953) 1256.
00049 // 
00050 
00051 // -------------------------------------------------------------------
00052 //
00053 
00054 #ifndef G4hCoulombScatteringModel_h
00055 #define G4hCoulombScatteringModel_h 1
00056 
00057 #include "G4VEmModel.hh"
00058 #include "globals.hh"
00059 #include "G4MaterialCutsCouple.hh"
00060 #include "G4WentzelVIRelXSection.hh"
00061 
00062 class G4ParticleChangeForGamma;
00063 class G4ParticleDefinition;
00064 class G4ParticleTable;
00065 class G4NistManager;
00066 
00067 class G4hCoulombScatteringModel : public G4VEmModel
00068 {
00069 
00070 public:
00071 
00072   G4hCoulombScatteringModel(const G4String& nam = "eCoulombScattering");
00073  
00074   virtual ~G4hCoulombScatteringModel();
00075 
00076   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00077 
00078   virtual G4double ComputeCrossSectionPerAtom(
00079                                 const G4ParticleDefinition*,
00080                                 G4double kinEnergy, 
00081                                 G4double Z, 
00082                                 G4double A, 
00083                                 G4double cut,
00084                                 G4double emax);
00085 
00086   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00087                                  const G4MaterialCutsCouple*,
00088                                  const G4DynamicParticle*,
00089                                  G4double tmin,
00090                                  G4double maxEnergy);
00091 
00092   // defines low energy limit of the model
00093   inline void SetLowEnergyThreshold(G4double val);
00094 
00095   // user definition of low-energy threshold of recoil
00096   inline void SetRecoilThreshold(G4double eth);
00097 
00098 protected:
00099 
00100   inline void DefineMaterial(const G4MaterialCutsCouple*);
00101 
00102   inline void SetupParticle(const G4ParticleDefinition*);
00103 
00104 private:
00105 
00106   // hide assignment operator
00107   G4hCoulombScatteringModel & operator=(const G4hCoulombScatteringModel &right);
00108   G4hCoulombScatteringModel(const  G4hCoulombScatteringModel&);
00109 
00110 protected:
00111  
00112   G4ParticleTable*          theParticleTable;
00113   G4ParticleChangeForGamma* fParticleChange;
00114   G4WentzelVIRelXSection*   wokvi;
00115   G4NistManager*            fNistManager;
00116 
00117   const std::vector<G4double>* pCuts;
00118 
00119   const G4MaterialCutsCouple* currentCouple;
00120   const G4Material*           currentMaterial;
00121   G4int                       currentMaterialIndex;
00122 
00123   G4double                  cosThetaMin;
00124   G4double                  cosThetaMax;
00125   G4double                  cosTetMinNuc;
00126   G4double                  cosTetMaxNuc;
00127   G4double                  recoilThreshold;
00128   G4double                  elecRatio;
00129   G4double                  mass;
00130 
00131   // projectile
00132   const G4ParticleDefinition* particle;
00133   const G4ParticleDefinition* theProton;
00134 
00135   G4double                  lowEnergyThreshold;
00136 
00137 private:
00138 
00139   G4bool                    isInitialised;             
00140 };
00141 
00142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00143 
00144 inline
00145 void G4hCoulombScatteringModel::DefineMaterial(const G4MaterialCutsCouple* cup) 
00146 { 
00147   if(cup != currentCouple) {
00148     currentCouple = cup;
00149     currentMaterial = cup->GetMaterial();
00150     currentMaterialIndex = currentCouple->GetIndex(); 
00151   }
00152 }
00153 
00154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00155 
00156 inline 
00157 void G4hCoulombScatteringModel::SetupParticle(const G4ParticleDefinition* p)
00158 {
00159   // Initialise mass and charge
00160   if(p != particle) {
00161     particle = p;
00162     mass = particle->GetPDGMass();
00163     wokvi->SetupParticle(p);
00164   }
00165 }
00166 
00167 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00168 
00169 inline void G4hCoulombScatteringModel::SetLowEnergyThreshold(G4double val)
00170 {
00171   lowEnergyThreshold = val;
00172 }
00173 
00174 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00175 
00176 inline void G4hCoulombScatteringModel::SetRecoilThreshold(G4double eth)
00177 {
00178   recoilThreshold = eth;
00179 }
00180 
00181 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00182 
00183 #endif

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