G4MollerBhabhaModel.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:     G4MollerBhabhaModel
00034 //
00035 // Author:        Vladimir Ivanchenko on base of Laszlo Urban code
00036 //
00037 // Creation date: 07.01.2002
00038 //
00039 // Modifications:
00040 //
00041 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
00042 // 24-01-03 Make models region aware (V.Ivanchenko)
00043 // 13-02-03 Add name (V.Ivanchenko)
00044 // 06-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
00045 // 14-01-07 promote SetParticle() from private to protected (mma)
00046 
00047 //
00048 // Class Description:
00049 //
00050 // Implementation of energy loss process and delta-electrons production
00051 // of electrons and positrons
00052 
00053 // -------------------------------------------------------------------
00054 //
00055 
00056 #ifndef G4MollerBhabhaModel_h
00057 #define G4MollerBhabhaModel_h 1
00058 
00059 #include "G4VEmModel.hh"
00060 
00061 class G4ParticleChangeForLoss;
00062 
00063 class G4MollerBhabhaModel : public G4VEmModel
00064 {
00065 
00066 public:
00067 
00068   G4MollerBhabhaModel(const G4ParticleDefinition* p = 0, 
00069                       const G4String& nam = "MollerBhabha");
00070 
00071   virtual ~G4MollerBhabhaModel();
00072 
00073   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00074 
00075   virtual G4double ComputeCrossSectionPerElectron(
00076                                  const G4ParticleDefinition*,
00077                                  G4double kineticEnergy,
00078                                  G4double cutEnergy,
00079                                  G4double maxEnergy);
00080                                  
00081   virtual G4double ComputeCrossSectionPerAtom(
00082                                  const G4ParticleDefinition*,
00083                                  G4double kineticEnergy,
00084                                  G4double Z, G4double A,
00085                                  G4double cutEnergy,
00086                                  G4double maxEnergy);
00087                                                                  
00088   virtual G4double CrossSectionPerVolume(const G4Material*,
00089                                  const G4ParticleDefinition*,
00090                                  G4double kineticEnergy,
00091                                  G4double cutEnergy,
00092                                  G4double maxEnergy);
00093                                  
00094   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00095                                 const G4ParticleDefinition*,
00096                                 G4double kineticEnergy,
00097                                 G4double cutEnergy);
00098 
00099   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00100                                  const G4MaterialCutsCouple*,
00101                                  const G4DynamicParticle*,
00102                                  G4double tmin,
00103                                  G4double maxEnergy);
00104 
00105 protected:
00106 
00107   virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
00108                                       G4double kinEnergy);
00109                               
00110   inline void SetParticle(const G4ParticleDefinition* p);                             
00111 
00112   const G4ParticleDefinition* particle;
00113   G4ParticleDefinition*       theElectron;
00114   G4ParticleChangeForLoss*    fParticleChange;
00115 
00116   G4bool   isElectron;
00117   G4double twoln10;
00118   G4double lowLimit;
00119   
00120 private:
00121 
00122   // hide assignment operator 
00123   G4MollerBhabhaModel & operator=(const  G4MollerBhabhaModel &right);
00124   G4MollerBhabhaModel(const  G4MollerBhabhaModel&);
00125 
00126   G4bool   isInitialised;
00127 
00128 };
00129 
00130 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00131 
00132 inline void G4MollerBhabhaModel::SetParticle(const G4ParticleDefinition* p)
00133 {
00134   particle = p;
00135   if(p != theElectron) { isElectron = false; }
00136 }
00137 
00138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00139 
00140 #endif

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