86 lines
3.5 KiB
C++
86 lines
3.5 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. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// -------------------------------------------------------------------
|
|
// $Id: G4Penelope01BremsstrahlungContinuous.hh,v 1.4 2008-12-09 15:04:05 pandola Exp $
|
|
// GEANT4 tag $Name: not supported by cvs2svn $
|
|
//
|
|
// Author: L.Pandola
|
|
//
|
|
// History:
|
|
// -----------
|
|
// 20 Feb 2003 L. Pandola 1st implementation
|
|
// 17 Mar 2003 L. Pandola Added the correction for positrons
|
|
// 09 Dec 2008 L. Pandola Cosmetics: say what variables are
|
|
// 24 May 2011 L. Pandola Renamed to Penelope01 (obsolete version)
|
|
//
|
|
// Class description:
|
|
// Calculation of continuous energy loss for Penelope Bremsstrahlung,
|
|
// version 2001. It is used both for electrons and positrons
|
|
// --------------------------------------------------------------
|
|
|
|
|
|
#ifndef G4PENELOPE01BREMSSTRAHLUNGCONTINUOUS_HH
|
|
#define G4PENELOPE01BREMSSTRAHLUNGCONTINUOUS_HH 1
|
|
#include "globals.hh"
|
|
|
|
class G4Penelope01BremsstrahlungContinuous
|
|
{
|
|
private:
|
|
enum{ NumberofEPoints=57,
|
|
NumberofKPoints=32,
|
|
NumberofExtendedEGrid=200};
|
|
|
|
public:
|
|
|
|
G4Penelope01BremsstrahlungContinuous(G4int Z,G4double energyCut, G4double energyMin,
|
|
G4double energyMax,
|
|
const G4String particleName);
|
|
~G4Penelope01BremsstrahlungContinuous();
|
|
G4double CalculateStopping(G4double energy);
|
|
|
|
private:
|
|
void PrepareInterpolationTable();
|
|
void LoadFromFile();
|
|
G4double PositronCorrection(G4double energy); //correction function for positrons
|
|
|
|
G4int Zmat;
|
|
G4double tCut;
|
|
G4double MinE,MaxE;
|
|
const G4String partName;
|
|
G4double DLFC; //needed for calculation of extended energy grid
|
|
G4double Energies[NumberofEPoints];
|
|
G4double ReducedCS[NumberofEPoints][NumberofKPoints];
|
|
G4double TotalCS[NumberofEPoints];
|
|
G4double ExtendedLogEnergy[NumberofExtendedEGrid];
|
|
G4double p0[NumberofExtendedEGrid][NumberofKPoints];
|
|
//G4double Pbcut[NumberofExtendedEGrid]; //useful?
|
|
};
|
|
|
|
|
|
|
|
#endif
|