G4MuPairProduction.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$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class file
00031 //
00032 //
00033 // File name:     G4MuPairProduction
00034 //
00035 // Author:        Laszlo Urban
00036 //
00037 // Creation date: 30.05.1998
00038 //
00039 // Modifications:
00040 //
00041 // 04-06-98 in DoIt,secondary production condition:
00042 //          range>std::min(threshold,safety)
00043 // 26-10-98 new stuff from R. Kokoulin + cleanup , L.Urban
00044 // 06-05-99 bug fixed , L.Urban
00045 // 10-02-00 modifications+bug fix , new e.m. structure, L.Urban
00046 // 29-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation
00047 // 10-08-01 new methods Store/Retrieve PhysicsTable (mma)
00048 // 17-09-01 migration of Materials to pure STL (mma)
00049 // 20-09-01 (L.Urban) in ComputeMicroscopicCrossSection, remove:
00050 //          if(MaxPairEnergy<CutInPairEnergy) MaxPairEnergy=CutInPairEnergy
00051 // 26-09-01 completion of store/retrieve PhysicsTable
00052 // 28-09-01 suppression of theMuonPlus ..etc..data members (mma)
00053 // 29-10-01 all static functions no more inlined (mma)
00054 // 07-11-01 particleMass becomes a local variable (mma)
00055 // 19-08-02 V.Ivanchenko update to new design
00056 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
00057 // 26-12-02 Secondary production moved to derived classes (V.Ivanchenko)
00058 // 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
00059 // 08-08-03 STD substitute standard  (V.Ivanchenko)
00060 // 27-09-03 e+ set to be a secondary particle (V.Ivanchenko)
00061 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
00062 // 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
00063 // 17-08-04 Utilise mu+ tables for mu- (V.Ivanchenko)
00064 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
00065 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
00066 //
00067 // -------------------------------------------------------------------
00068 //
00069 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00070 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00071 
00072 #include "G4MuPairProduction.hh"
00073 #include "G4SystemOfUnits.hh"
00074 #include "G4Electron.hh"
00075 #include "G4Positron.hh"
00076 #include "G4MuonPlus.hh"
00077 #include "G4MuonMinus.hh"
00078 #include "G4MuPairProductionModel.hh"
00079 #include "G4UniversalFluctuation.hh"
00080 
00081 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00082 
00083 using namespace std;
00084 
00085 G4MuPairProduction::G4MuPairProduction(const G4String& name)
00086   : G4VEnergyLossProcess(name),
00087     theParticle(0),
00088     theBaseParticle(0),
00089     lowestKinEnergy(1.*GeV),
00090     isInitialised(false)
00091 {
00092   SetProcessSubType(fPairProdByCharged);
00093   SetSecondaryParticle(G4Positron::Positron());
00094   SetIonisation(false);
00095 }
00096 
00097 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00098 
00099 G4MuPairProduction::~G4MuPairProduction()
00100 {}
00101 
00102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00103 
00104 G4bool G4MuPairProduction::IsApplicable(const G4ParticleDefinition& p)
00105 {
00106   return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV);
00107 }
00108 
00109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00110 
00111 G4double G4MuPairProduction::MinPrimaryEnergy(const G4ParticleDefinition*,
00112                                               const G4Material*,
00113                                               G4double)
00114 {
00115   return lowestKinEnergy;
00116 }
00117 
00118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00119 
00120 void G4MuPairProduction::InitialiseEnergyLossProcess(
00121                          const G4ParticleDefinition* part,
00122                          const G4ParticleDefinition*)
00123 {
00124   if (!isInitialised) {
00125     isInitialised = true;
00126 
00127     theParticle = part;
00128 
00129     if (!EmModel()) { SetEmModel(new G4MuPairProductionModel()); }
00130 
00131     G4VEmFluctuationModel* fm = 0;
00132     EmModel()->SetLowEnergyLimit(MinKinEnergy());
00133     EmModel()->SetHighEnergyLimit(MaxKinEnergy());
00134     AddEmModel(1, EmModel(), fm);
00135   }
00136 }
00137 
00138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00139 
00140 void G4MuPairProduction::PrintInfo()
00141 {}
00142 
00143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00144 
00145 
00146 
00147 

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