Files
2021-06-25 16:12:29 +02:00

147 lines
6.0 KiB
C++

//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// History: New Implementation
//
// ---------- G4QAOLowEnergyLoss physics process -------
// by Stephane Chauvie, 21 May 2000
//
// Modified:
// 16/09/2000 S. Chauvie Oscillator for all materials
// 23/05/2000 MGP Made compliant to design
// 01/06/2001 V.Ivanchenko replace names by Z
//
// Class description:
// Quantal Harmonic Oscillator Model for energy loss of low energy antiprotons
// Further documentation available from http://www.ge.infn.it/geant4/lowE
// ------------------------------------------------------------
#ifndef G4QAOLowEnergyLoss_hh
#define G4QAOLowEnergyLoss_hh 1
#include "G4VLowEnergyModel.hh"
#include "globals.hh"
class G4QAOLowEnergyLoss : public G4VLowEnergyModel
{
public:
explicit G4QAOLowEnergyLoss(const G4String& name);
~G4QAOLowEnergyLoss();
G4double HighEnergyLimit(const G4ParticleDefinition* aParticle,
const G4Material* material) const override;
// returns the higher limit for model validity
G4double LowEnergyLimit(const G4ParticleDefinition* aParticle,
const G4Material* material) const override;
// returns the lower limit for model validity
G4double HighEnergyLimit(const G4ParticleDefinition* aParticle) const override;
// returns the higher limit for model validity
G4double LowEnergyLimit(const G4ParticleDefinition* aParticle) const override;
// returns the lower limit for model validity
G4bool IsInCharge(const G4DynamicParticle* particle,
const G4Material* material) const override;
// returns true if the model is applicable at that energy for
// that particle for that material
G4bool IsInCharge(const G4ParticleDefinition* aParticle,
const G4Material* material) const override;
// returns true if the model is applicable at that energy for
// that particle for that material
G4double TheValue(const G4DynamicParticle* particle,
const G4Material* material) override;
// returns the energy loss via the quantal harmonic oscillator model
G4double TheValue(const G4ParticleDefinition* aParticle,
const G4Material* material,
G4double kineticEnergy) override;
// returns the energy loss via the quantal harmonic oscillator model
private:
G4double EnergyLoss(const G4Material* material,
G4double kineticEnergy,
G4double zParticle) const;
// returns the energy loss via the quantal harmonic oscillator model
// get number of shell, energy and oscillator strengths for material
G4int GetNumberOfShell(const G4Material* material) const;
G4double GetShellEnergy(const G4Material* material,G4int nbOfTheShell) const;
G4double GetOscillatorEnergy(const G4Material* material,G4int nbOfTheShell) const;
G4double GetShellStrength(const G4Material* material,G4int nbOfTheShell) const;
G4double GetOccupationNumber(G4int Z, G4int ShellNb) const;
// calculate stopping number for L's term
G4double GetL0(G4double normEnergy) const;
// terms in Z^2
G4double GetL1(G4double normEnergy) const;
// terms in Z^3
G4double GetL2(G4double normEnergy) const;
// terms in Z^4
// number, energy and oscillator strengths
// for an harmonic oscillator model of material
static const G4int nbofShellForMaterial[6];
static const G4double alShellEnergy[3];
static const G4double alShellStrength[3];
static const G4double siShellEnergy[3];
static const G4double siShellStrength[3];
static const G4double cuShellEnergy[4];
static const G4double cuShellStrength[4];
static const G4double taShellEnergy[6];
static const G4double taShellStrength[6];
static const G4double auShellEnergy[6];
static const G4double auShellStrength[6];
static const G4double ptShellEnergy[6];
static const G4double ptShellStrength[6];
// variable for calculation of stopping number of L's term
static const G4double L0[67][2];
static const G4double L1[22][2];
static const G4double L2[14][2];
static const G4int nbOfElectronPerSubShell[1540];
static const G4int fNumberOfShells[101];
// Z of element at now avaliable for the model
static const G4int materialAvailable[6];
G4int numberOfMaterials;
G4int sizeL0;
G4int sizeL1;
G4int sizeL2;
};
#endif