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:     G4mplIonisationModel
0033 //
0034 // Author:        Vladimir Ivanchenko 
0035 //
0036 // Creation date: 06.09.2005
0037 //
0038 // Modifications:
0039 // 12.08.2007 ComputeDEDXAhlen function added (M. Vladymyrov)
0040 //
0041 // Class Description:
0042 //
0043 // Implementation of model of energy loss of the magnetic monopole
0044 
0045 // -------------------------------------------------------------------
0046 //
0047 
0048 #ifndef G4mplIonisationModel_h
0049 #define G4mplIonisationModel_h 1
0050 
0051 #include "G4VEmModel.hh"
0052 #include "G4VEmFluctuationModel.hh"
0053 #include <vector>
0054 
0055 class G4ParticleChangeForLoss;
0056 
0057 class G4mplIonisationModel : public G4VEmModel, public G4VEmFluctuationModel
0058 {
0059 
0060 public:
0061 
0062   explicit G4mplIonisationModel(G4double mCharge,
0063                const G4String& nam = "mplIonisation");
0064 
0065   ~G4mplIonisationModel() override;
0066 
0067   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0068 
0069   G4double ComputeDEDXPerVolume(const G4Material*,
0070                 const G4ParticleDefinition*,
0071                 G4double kineticEnergy,
0072                 G4double cutEnergy) override;
0073 
0074   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0075              const G4MaterialCutsCouple*,
0076              const G4DynamicParticle*,
0077              G4double tmin,
0078              G4double maxEnergy) override;
0079 
0080 
0081   G4double SampleFluctuations(const G4MaterialCutsCouple*,
0082                   const G4DynamicParticle*,
0083                               const G4double tcut,
0084                               const G4double tmax,
0085                   const G4double length,
0086                   const G4double meanLoss) override;
0087 
0088   G4double Dispersion(const G4Material*,
0089               const G4DynamicParticle*,
0090                       const G4double tcut,
0091                       const G4double tmax,
0092                       const G4double length) override;
0093 
0094   void SetParticle(const G4ParticleDefinition* p);
0095 
0096   // hide assignment operator
0097   G4mplIonisationModel & operator=(const  G4mplIonisationModel &right) = delete;
0098   G4mplIonisationModel(const  G4mplIonisationModel&) = delete;
0099 
0100 private:
0101 
0102   G4double ComputeDEDXAhlen(const G4Material* material, G4double bg2);
0103 
0104   const G4ParticleDefinition* monopole = nullptr;
0105   G4ParticleChangeForLoss* fParticleChange = nullptr;
0106 
0107   G4double mass = 0.0;
0108   G4double magCharge;
0109   G4double twoln10;
0110   G4double betalow;
0111   G4double betalim;
0112   G4double beta2lim;
0113   G4double bg2lim;
0114   G4double chargeSquare;
0115   G4double dedxlim;
0116   G4double pi_hbarc2_over_mc2;
0117 
0118   G4int    nmpl;
0119 
0120   static std::vector<G4double>* dedx0;
0121 };
0122 
0123 #endif
0124 
0125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....