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

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