G4hPairProduction.cc

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: G4hPairProduction.cc 66996 2013-01-29 14:50:52Z gcosmo $
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class file
00031 //
00032 //
00033 // File name:     G4hPairProduction
00034 //
00035 // Author:        Vladimir Ivanchenko on base of model for muons
00036 //
00037 // Creation date: 01.03.2008
00038 //
00039 // Modifications:
00040 //
00041 //
00042 // -------------------------------------------------------------------
00043 //
00044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00046 
00047 #include "G4hPairProduction.hh"
00048 #include "G4SystemOfUnits.hh"
00049 #include "G4Electron.hh"
00050 #include "G4Positron.hh"
00051 #include "G4hPairProductionModel.hh"
00052 #include "G4UniversalFluctuation.hh"
00053 
00054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00055 
00056 using namespace std;
00057 
00058 G4hPairProduction::G4hPairProduction(const G4String& name)
00059   : G4VEnergyLossProcess(name),
00060     theParticle(0),
00061     theBaseParticle(0),
00062     lowestKinEnergy(1.*GeV),
00063     isInitialised(false)
00064 {
00065   SetProcessSubType(fPairProdByCharged);
00066   SetSecondaryParticle(G4Positron::Positron());
00067   SetIonisation(false);
00068 }
00069 
00070 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00071 
00072 G4hPairProduction::~G4hPairProduction()
00073 {}
00074 
00075 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00076 
00077 G4bool G4hPairProduction::IsApplicable(const G4ParticleDefinition& p)
00078 {
00079   return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 110.0*MeV);
00080 }
00081 
00082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00083 
00084 G4double G4hPairProduction::MinPrimaryEnergy(const G4ParticleDefinition*,
00085                                              const G4Material*,
00086                                              G4double)
00087 {
00088   return lowestKinEnergy;
00089 }
00090 
00091 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00092 
00093 void G4hPairProduction::InitialiseEnergyLossProcess(
00094                          const G4ParticleDefinition* part,
00095                          const G4ParticleDefinition*)
00096 {
00097   if (!isInitialised) {
00098     isInitialised = true;
00099 
00100     theParticle = part;
00101     if (!EmModel()) { SetEmModel(new G4hPairProductionModel()); }
00102 
00103     G4VEmFluctuationModel* fm = 0;
00104     EmModel()->SetLowEnergyLimit(MinKinEnergy());
00105     EmModel()->SetHighEnergyLimit(MaxKinEnergy());
00106     AddEmModel(1, EmModel(), fm);
00107   }
00108 }
00109 
00110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00111 
00112 void G4hPairProduction::PrintInfo()
00113 {}
00114 
00115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00116 
00117 
00118 
00119 

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