Back to home page

EIC code displayed by LXR

 
 

    


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

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 // Author: Luciano Pandola
0028 //         on base of G4LowEnergyIonisation developed by A.Forti and V.Ivanchenko
0029 //
0030 // History:
0031 // -----------
0032 // 12 Jan 2009   L. Pandola   1st implementation. Migration from EM process 
0033 //                            to EM model. Physics is unchanged.
0034 // 23 Oct 2009   L. Pandola   remove un-necessary methods to manage atomic 
0035 //                            deexcitation (done by G4VEmModel)
0036 // 01 Jun 2011   V Ivanchenko general cleanup - all old deexcitation code removed
0037 // 04 Jul 2011   L Pandola    removed unused private member
0038 // 
0039 // -------------------------------------------------------------------
0040 //
0041 // Class description:
0042 // Low Energy Electromagnetic Physics, e- ionisation
0043 // with Livermore Model
0044 // -------------------------------------------------------------------
0045 
0046 #ifndef G4LIVERMOREIONISATIONMODEL_HH
0047 #define G4LIVERMOREIONISATIONMODEL_HH 1
0048 
0049 #include "G4VEmModel.hh"
0050 #include "globals.hh"
0051 
0052 class G4eIonisationCrossSectionHandler;
0053 class G4VEnergySpectrum;
0054 class G4ParticleChangeForLoss;
0055 class G4AtomicTransitionManager;
0056 
0057 class G4LivermoreIonisationModel : public G4VEmModel 
0058 {
0059 public:
0060   G4LivermoreIonisationModel(const G4ParticleDefinition* p=nullptr,
0061                  const G4String& processName = "LowEnergyIoni");  
0062   virtual ~G4LivermoreIonisationModel();
0063 
0064   void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0065 
0066   
0067   G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
0068                       G4double kinEnergy,
0069                       G4double Z,
0070                       G4double A=0,
0071                       G4double cut=0,
0072                       G4double emax=DBL_MAX) override;
0073                      
0074   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0075              const G4MaterialCutsCouple*,
0076              const G4DynamicParticle*,
0077              G4double tmin,
0078              G4double maxEnergy) override;
0079                    
0080   G4double ComputeDEDXPerVolume(const G4Material*,
0081                 const G4ParticleDefinition*,
0082                 G4double kineticEnergy,
0083                 G4double cutEnergy) override;
0084          
0085   void SetVerboseLevel(G4int vl) {verboseLevel = vl;};
0086   G4int GetVerboseLevel(){return verboseLevel;};
0087   
0088   G4LivermoreIonisationModel & operator=(const G4LivermoreIonisationModel &right) = delete;
0089   G4LivermoreIonisationModel(const G4LivermoreIonisationModel&) = delete;
0090 
0091 protected:
0092   G4ParticleChangeForLoss* fParticleChange;
0093 
0094 private:
0095   G4eIonisationCrossSectionHandler* crossSectionHandler;
0096   G4VEnergySpectrum* energySpectrum;
0097   G4AtomicTransitionManager* transitionManager;
0098 
0099   //Intrinsic energy limits of the model: cannot be extended by the parent process
0100   G4double fIntrinsicLowEnergyLimit;
0101   G4double fIntrinsicHighEnergyLimit;  
0102   G4int verboseLevel;
0103   G4bool isInitialised;
0104 };
0105 
0106 #endif
0107