Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:42

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // -------------------------------------------------------------------
0028 //
0029 // GEANT4 Class header file
0030 //
0031 //
0032 // File name:     G4MuBetheBlochModel
0033 //
0034 // Author:        Vladimir Ivanchenko on base of Laszlo Urban code
0035 //
0036 // Creation date: 09.08.2002
0037 //
0038 // Modifications:
0039 //
0040 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
0041 // 24-01-03 Make models region aware (V.Ivanchenko)
0042 // 13-02-03 Add Nama (V.Ivanchenko)
0043 // 10-02-04 Calculation of radiative corrections using R.Kokoulin model (V.I)
0044 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
0045 // 12-04-05 Add usage of G4EmCorrections (V.Ivanchenko)
0046 // 13-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
0047 //
0048 
0049 //
0050 // Class Description:
0051 //
0052 // Implementation of Bethe-Bloch model of energy loss and
0053 // delta-electron production by heavy charged particles
0054 
0055 // -------------------------------------------------------------------
0056 //
0057 
0058 #ifndef G4MuBetheBlochModel_h
0059 #define G4MuBetheBlochModel_h 1
0060 
0061 #include "G4VEmModel.hh"
0062 
0063 class G4ParticleChangeForLoss;
0064 class G4EmCorrections;
0065 
0066 class G4MuBetheBlochModel : public G4VEmModel
0067 {
0068 
0069 public:
0070 
0071   explicit G4MuBetheBlochModel(const G4ParticleDefinition* p = nullptr,
0072                                const G4String& nam = "MuBetheBloch");
0073 
0074   ~G4MuBetheBlochModel() = default;
0075 
0076   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0077 
0078   G4double MinEnergyCut(const G4ParticleDefinition*,
0079             const G4MaterialCutsCouple*) override;
0080             
0081   G4double ComputeCrossSectionPerElectron(
0082                  const G4ParticleDefinition*,
0083                  G4double kineticEnergy,
0084                  G4double cutEnergy,
0085                  G4double maxEnergy);
0086                  
0087   G4double ComputeCrossSectionPerAtom(
0088                  const G4ParticleDefinition*,
0089                  G4double kineticEnergy,
0090                  G4double Z, G4double A,
0091                  G4double cutEnergy,
0092                  G4double maxEnergy) override;
0093                                  
0094   G4double CrossSectionPerVolume(const G4Material*,
0095                  const G4ParticleDefinition*,
0096                  G4double kineticEnergy,
0097                  G4double cutEnergy,
0098                  G4double maxEnergy) override;
0099 
0100   G4double ComputeDEDXPerVolume(const G4Material*,
0101                                 const G4ParticleDefinition*,
0102                                 G4double kineticEnergy,
0103                                 G4double cutEnergy) override;
0104 
0105   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0106                 const G4MaterialCutsCouple*,
0107                 const G4DynamicParticle*,
0108                 G4double tmin,
0109                 G4double maxEnergy) override;
0110 
0111   // hide assignment operator
0112   G4MuBetheBlochModel & operator=(const  G4MuBetheBlochModel &right) = delete;
0113   G4MuBetheBlochModel(const  G4MuBetheBlochModel&) = delete;
0114 
0115 protected:
0116 
0117   G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
0118                               G4double kinEnergy) override;
0119 
0120 private:
0121 
0122   void SetParticle(const G4ParticleDefinition* p);
0123 
0124   const G4ParticleDefinition* particle = nullptr;
0125   G4ParticleDefinition*       theElectron = nullptr;
0126   G4ParticleChangeForLoss*    fParticleChange = nullptr;
0127   G4EmCorrections*            corr = nullptr;
0128 
0129   G4double limitRadCorrection;
0130   G4double limitKinEnergy;
0131   G4double logLimitKinEnergy;
0132   G4double mass = 1.0;
0133   G4double massSquare = 1.0;
0134   G4double ratio = 1.0;
0135   G4double twoln10;
0136   G4double alphaprime;
0137   static G4double xgi[8],wgi[8];
0138 };
0139 
0140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0141 
0142 #endif