Files
geant4/source/processes/electromagnetic/lowenergy/include/G4PenelopeAnnihilation.hh
T
2016-06-09 10:41:53 +02:00

105 lines
3.5 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// Author: Luciano Pandola
//
// History:
// -----------
// 01 Jul 2003 L. Pandola 1st implementation
//
// -------------------------------------------------------------------
// Class description:
// Low Energy Electromagnetic Physics, Positron Annihilation
// Penelope Model
// -------------------------------------------------------------------
#ifndef G4PenelopeAnnihilation_h
#define G4PenelopeAnnihilation_h 1
#include "globals.hh"
#include "G4VRestDiscreteProcess.hh"
class G4PhysicsTableclass;
class G4ParticleDefinition;
class G4VParticleChange;
class G4Track;
class G4Step;
class G4Material;
class G4PenelopeAnnihilation : public G4VRestDiscreteProcess
{
public:
G4PenelopeAnnihilation(const G4String& processName ="PenAnnih");
~G4PenelopeAnnihilation();
G4bool IsApplicable(const G4ParticleDefinition&);
void BuildPhysicsTable(const G4ParticleDefinition&);
void PrintInfoDefinition();
G4double DumpMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition)
{ return GetMeanFreePath(aTrack, previousStepSize, condition); }
protected:
G4double GetMeanFreePath(const G4Track&,G4double,
G4ForceCondition*);
public:
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep);
G4double GetMeanLifeTime(const G4Track& aTrack,
G4ForceCondition* condition);
G4VParticleChange* AtRestDoIt(const G4Track& aTrack,
const G4Step& aStep);
private:
G4double calculateCrossSectionPerElectron(G4double energy);
private:
// hide assignment operator as private
G4PenelopeAnnihilation& operator=(const G4PenelopeAnnihilation& right);
G4PenelopeAnnihilation(const G4PenelopeAnnihilation& );
private:
G4PhysicsTable* meanFreePathTable;
G4double lowEnergyLimit; // low energy limit of the tables
G4double highEnergyLimit; // high energy limit of the tables
G4int nBins; // number of bins in the tables
G4double cutForLowEnergySecondaryPhotons;
};
#endif