G4PAIModel.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:     G4PAIModel
00034 //
00035 // Author:        V. Grichine based on Vladimir Ivanchenko  code
00036 //
00037 // Creation date: 05.10.2003
00038 //
00039 // Modifications:
00040 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
00041 // 26-09-07 Fixed tmax computation (V.Ivantchenko)
00042 //
00043 //
00044 // Class Description:
00045 //
00046 // Implementation of PAI model of energy loss and
00047 // delta-electron production by heavy charged particles
00048 
00049 // -------------------------------------------------------------------
00050 //
00051 
00052 #ifndef G4PAIModel_h
00053 #define G4PAIModel_h 1
00054 
00055 #include <vector>
00056 #include "G4VEmModel.hh"
00057 #include "globals.hh"
00058 #include "G4VEmFluctuationModel.hh"
00059 #include "G4PAIySection.hh"
00060 
00061 class G4PhysicsLogVector;
00062 class G4PhysicsTable;
00063 class G4Region;
00064 class G4MaterialCutsCouple;
00065 class G4ParticleChangeForLoss;
00066 
00067 class G4PAIModel : public G4VEmModel, public G4VEmFluctuationModel
00068 {
00069 
00070 public:
00071 
00072   G4PAIModel(const G4ParticleDefinition* p = 0, const G4String& nam = "PAI");
00073 
00074   virtual ~G4PAIModel();
00075 
00076   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00077 
00078   virtual void InitialiseMe(const G4ParticleDefinition*);
00079 
00080   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00081                                const G4ParticleDefinition*,
00082                                G4double kineticEnergy,
00083                                G4double cutEnergy);
00084 
00085   virtual G4double CrossSectionPerVolume(const G4Material*,
00086                                 const G4ParticleDefinition*,
00087                                 G4double kineticEnergy,
00088                                 G4double cutEnergy,
00089                                 G4double maxEnergy);
00090 
00091   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00092                                  const G4MaterialCutsCouple*,
00093                                  const G4DynamicParticle*,
00094                                  G4double tmin,
00095                                  G4double maxEnergy);
00096 
00097   virtual G4double SampleFluctuations(const G4Material*,
00098                                       const G4DynamicParticle*,
00099                                       G4double&,
00100                                       G4double&,
00101                                       G4double&);
00102 
00103   virtual G4double Dispersion(    const G4Material*,
00104                                   const G4DynamicParticle*,
00105                                   G4double&,
00106                                   G4double&);
00107 
00108   void     DefineForRegion(const G4Region* r) ;
00109   void     ComputeSandiaPhotoAbsCof();
00110   void     BuildPAIonisationTable();
00111   void     BuildLambdaVector();
00112 
00113   G4double GetdNdxCut( G4int iPlace, G4double transferCut);
00114   G4double GetdEdxCut( G4int iPlace, G4double transferCut);
00115   G4double GetPostStepTransfer( G4double scaledTkin );
00116   G4double GetEnergyTransfer( G4int iPlace,
00117                               G4double position,
00118                               G4int iTransfer );
00119 
00120   void SetVerboseLevel(G4int verbose){fVerbose=verbose;};
00121 
00122 protected:
00123 
00124   G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
00125                                     G4double kinEnergy);
00126 
00127 private:
00128 
00129   void SetParticle(const G4ParticleDefinition* p);
00130 
00131   // hide assignment operator 
00132   G4PAIModel & operator=(const  G4PAIModel &right);
00133   G4PAIModel(const  G4PAIModel&);
00134 
00135   // The vector over proton kinetic energies: the range of gammas
00136   G4int                fVerbose; 
00137   G4double             fLowestGamma;
00138   G4double             fHighestGamma;
00139   G4double             fLowestKineticEnergy;
00140   G4double             fHighestKineticEnergy;
00141   G4int                fTotBin;
00142   G4int                fMeanNumber;
00143   G4PhysicsLogVector*  fParticleEnergyVector ;
00144   G4PAIySection        fPAIySection;
00145 
00146   // vectors
00147 
00148   G4PhysicsTable*                    fPAItransferTable;
00149   std::vector<G4PhysicsTable*>       fPAIxscBank;
00150 
00151   G4PhysicsTable*                    fPAIdEdxTable;
00152   std::vector<G4PhysicsTable*>       fPAIdEdxBank;
00153 
00154   std::vector<const G4MaterialCutsCouple*> fMaterialCutsCoupleVector;
00155   std::vector<const G4Region*>       fPAIRegionVector;
00156 
00157   const G4MaterialCutsCouple*        fCutCouple;
00158   const G4Material*                  fMaterial;
00159   G4double                           fDeltaCutInKinEnergy; 
00160 
00161   size_t                             fMatIndex ;  
00162   G4double**                         fSandiaPhotoAbsCof ;
00163   G4int                              fSandiaIntervalNumber ;
00164 
00165   G4PhysicsLogVector*                fdEdxVector ;
00166   std::vector<G4PhysicsLogVector*>   fdEdxTable ;
00167 
00168   G4PhysicsLogVector*                fLambdaVector ;
00169   std::vector<G4PhysicsLogVector*>   fLambdaTable ;
00170 
00171   G4PhysicsLogVector*                fdNdxCutVector ;
00172   std::vector<G4PhysicsLogVector*>   fdNdxCutTable ;
00173 
00174   const G4ParticleDefinition* fParticle;
00175   const G4ParticleDefinition* fElectron;
00176   const G4ParticleDefinition* fPositron;
00177   G4ParticleChangeForLoss*    fParticleChange;
00178 
00179   G4double fMass;
00180   G4double fSpin;
00181   G4double fChargeSquare;
00182   G4double fRatio;
00183   G4double fHighKinEnergy;
00184   G4double fLowKinEnergy;
00185   G4double fTwoln10;
00186   G4double fBg2lim; 
00187   G4double fTaulim;
00188   G4double fQc;
00189 
00190   G4bool   isInitialised;
00191 };
00192 
00193 #endif
00194 
00195 
00196 
00197 
00198 
00199 
00200 

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