G4UrbanMscModel90.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: G4UrbanMscModel90.hh 66592 2012-12-23 09:34:55Z vnivanch $
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 //
00031 // GEANT4 Class header file
00032 //
00033 //
00034 // File name:     G4UrbanMscModel90
00035 //
00036 // Author:        V.Ivanchenko clone Laszlo Urban model
00037 //
00038 // Creation date: 07.12.2007
00039 //
00040 // Modifications:
00041 //
00042 //
00043 // Class Description:
00044 //
00045 // Implementation of the model of multiple scattering based on
00046 // H.W.Lewis Phys Rev 78 (1950) 526 and L.Urban model
00047 
00048 // -------------------------------------------------------------------
00049 //
00050 
00051 #ifndef G4UrbanMscModel90_h
00052 #define G4UrbanMscModel90_h 1
00053 
00054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00055 
00056 #include <CLHEP/Units/SystemOfUnits.h>
00057 
00058 #include "G4VMscModel.hh"
00059 #include "G4MscStepLimitType.hh"
00060 
00061 class G4ParticleChangeForMSC;
00062 class G4LossTableManager;
00063 
00064 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00065 
00066 class G4UrbanMscModel90 : public G4VMscModel
00067 {
00068 
00069 public:
00070 
00071   G4UrbanMscModel90(const G4String& nam = "UrbanMsc90");
00072 
00073   virtual ~G4UrbanMscModel90();
00074 
00075   void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00076 
00077   void StartTracking(G4Track*);
00078 
00079   G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition* particle,
00080                                       G4double KineticEnergy,
00081                                       G4double AtomicNumber,
00082                                       G4double AtomicWeight=0., 
00083                                       G4double cut =0.,
00084                                       G4double emax=DBL_MAX);
00085 
00086   void SampleSecondaries(std::vector<G4DynamicParticle*>*, 
00087                          const G4MaterialCutsCouple*,
00088                          const G4DynamicParticle*,
00089                          G4double,
00090                          G4double);
00091 
00092   G4ThreeVector& SampleScattering(const G4ThreeVector&, G4double safety);
00093 
00094   G4double ComputeTruePathLengthLimit(const G4Track& track,
00095                                       G4double& currentMinimalStep);
00096 
00097   G4double ComputeGeomPathLength(G4double truePathLength);
00098 
00099   G4double ComputeTrueStepLength(G4double geomStepLength);
00100 
00101   G4double ComputeTheta0(G4double truePathLength,
00102                          G4double KineticEnergy);
00103 
00104 private:
00105 
00106   G4double SampleCosineTheta(G4double trueStepLength, G4double KineticEnergy);
00107 
00108   G4double SampleDisplacement();
00109 
00110   G4double LatCorrelation();
00111 
00112   inline void SetParticle(const G4ParticleDefinition*);
00113 
00114   //  hide assignment operator
00115   G4UrbanMscModel90 & operator=(const  G4UrbanMscModel90 &right);
00116   G4UrbanMscModel90(const  G4UrbanMscModel90&);
00117 
00118   const G4ParticleDefinition* particle;
00119   G4ParticleChangeForMSC*     fParticleChange;
00120 
00121   const G4MaterialCutsCouple* couple;
00122   G4LossTableManager*         theManager;
00123 
00124   G4double mass;
00125   G4double charge;
00126 
00127   G4double masslimite,masslimitmu;
00128 
00129   G4double taubig;
00130   G4double tausmall;
00131   G4double taulim;
00132   G4double currentTau;
00133   G4double frscaling1,frscaling2;
00134   G4double tlimit;
00135   G4double tlimitmin;
00136   G4double tlimitminfix;
00137 
00138   G4double nstepmax;
00139   G4double geombig;
00140   G4double geommin;
00141   G4double geomlimit;
00142   G4double skindepth;
00143   G4double smallstep;
00144 
00145   G4double presafety;
00146 
00147   G4double lambda0;
00148   G4double lambdaeff;
00149   G4double tPathLength;
00150   G4double zPathLength;
00151   G4double par1,par2,par3;
00152 
00153   G4double stepmin;
00154 
00155   G4double currentKinEnergy;
00156   G4double currentRange; 
00157   G4double currentRadLength;
00158 
00159   G4double Zeff;
00160 
00161   G4int    currentMaterialIndex;
00162 
00163   G4bool   firstStep;
00164   G4bool   inside;
00165   G4bool   insideskin;
00166 
00167 };
00168 
00169 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00170 
00171 inline
00172 void G4UrbanMscModel90::SetParticle(const G4ParticleDefinition* p)
00173 {
00174   if (p != particle) {
00175     particle = p;
00176     mass = p->GetPDGMass();
00177     charge = p->GetPDGCharge()/CLHEP::eplus;
00178   }
00179 }
00180 
00181 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00182 
00183 #endif
00184 

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