G4MuBremsstrahlungModel.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:     G4MuBremsstrahlungModel
00034 //
00035 // Author:        Vladimir Ivanchenko on base of Laszlo Urban code
00036 // 
00037 // Creation date: 18.05.2002
00038 //
00039 // Modifications:
00040 //
00041 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
00042 // 27-01-03 Make models region aware (V.Ivanchenko)
00043 // 13-02-03 Add name (V.Ivanchenko)
00044 // 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
00045 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
00046 // 13-02-06 Add ComputeCrossSectionPerAtom (mma)
00047 // 11-10-07 Add ignoreCut flag (V.Ivanchenko) 
00048 // 28-02-08 Reorganized protected methods and members (V.Ivanchenko) 
00049 // 06-03-08 Remove obsolete methods and members (V.Ivanchenko) 
00050 //
00051 
00052 //
00053 // Class Description:
00054 //
00055 // Implementation of bremssrahlung by muons
00056 
00057 // -------------------------------------------------------------------
00058 //
00059 
00060 #ifndef G4MuBremsstrahlungModel_h
00061 #define G4MuBremsstrahlungModel_h 1
00062 
00063 #include <CLHEP/Units/PhysicalConstants.h>
00064 
00065 #include "G4VEmModel.hh"
00066 #include "G4NistManager.hh"
00067 
00068 class G4Element;
00069 class G4ParticleChangeForLoss;
00070 
00071 class G4MuBremsstrahlungModel : public G4VEmModel
00072 {
00073 
00074 public:
00075 
00076   G4MuBremsstrahlungModel(const G4ParticleDefinition* p = 0,
00077                           const G4String& nam = "MuBrem");
00078 
00079   virtual ~G4MuBremsstrahlungModel();
00080 
00081   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00082 
00083   virtual G4double MinEnergyCut(const G4ParticleDefinition*,
00084                                 const G4MaterialCutsCouple*);
00085                               
00086   virtual G4double ComputeCrossSectionPerAtom(
00087                                  const G4ParticleDefinition*,
00088                                  G4double kineticEnergy,
00089                                  G4double Z, G4double A,
00090                                  G4double cutEnergy,
00091                                  G4double maxEnergy);
00092                                                                
00093   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00094                                 const G4ParticleDefinition*,
00095                                 G4double kineticEnergy,
00096                                 G4double cutEnergy);
00097                               
00098   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00099                                  const G4MaterialCutsCouple*,
00100                                  const G4DynamicParticle*,
00101                                  G4double tmin,
00102                                  G4double maxEnergy);
00103 
00104   inline void SetLowestKineticEnergy(G4double e);
00105 
00106 protected:
00107 
00108   G4double ComputMuBremLoss(G4double Z, G4double tkin, G4double cut);
00109   
00110   G4double ComputeMicroscopicCrossSection(G4double tkin,
00111                                           G4double Z,
00112                                           G4double cut);
00113 
00114   virtual G4double ComputeDMicroscopicCrossSection(G4double tkin,
00115                                                    G4double Z,
00116                                                    G4double gammaEnergy);
00117 
00118   inline void SetParticle(const G4ParticleDefinition*);
00119 
00120 private:
00121 
00122   G4DataVector* ComputePartialSumSigma(const G4Material* material,
00123                                        G4double tkin, G4double cut);
00124 
00125   const G4Element* SelectRandomAtom(const G4MaterialCutsCouple* couple) const;
00126 
00127   // hide assignment operator
00128   G4MuBremsstrahlungModel & operator=(const  G4MuBremsstrahlungModel &right);
00129   G4MuBremsstrahlungModel(const  G4MuBremsstrahlungModel&);
00130 
00131 protected:
00132 
00133   const G4ParticleDefinition* particle;
00134   G4NistManager* nist;
00135   G4double mass;
00136   G4double rmass;
00137   G4double cc;
00138   G4double coeff;
00139   G4double sqrte;
00140   G4double bh;
00141   G4double bh1;
00142   G4double btf;
00143   G4double btf1;
00144 
00145 private:
00146 
00147   G4ParticleDefinition*       theGamma;
00148   G4ParticleChangeForLoss*    fParticleChange;
00149 
00150   G4double lowestKinEnergy;
00151   G4double minThreshold;
00152 
00153   G4double fDN[93];
00154 
00155   std::vector<G4DataVector*> partialSumSigma;
00156 };
00157 
00158 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00159 
00160 inline void G4MuBremsstrahlungModel::SetLowestKineticEnergy(G4double e) 
00161 {
00162   lowestKinEnergy = e;
00163 }
00164 
00165 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00166 
00167 inline
00168 void G4MuBremsstrahlungModel::SetParticle(const G4ParticleDefinition* p)
00169 {
00170   if(!particle) {
00171     particle = p;
00172     mass = particle->GetPDGMass();
00173     rmass=mass/CLHEP::electron_mass_c2 ;
00174     cc=CLHEP::classic_electr_radius/rmass ;
00175     coeff= 16.*CLHEP::fine_structure_const*cc*cc/3. ;
00176   }
00177 }
00178 
00179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00180 
00181 #endif

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