Files
geant4/source/processes/hadronic/stopping/include/G4NeutronCaptureAtRest.hh
T
2016-06-09 10:41:53 +02:00

126 lines
4.1 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. *
// ********************************************************************
//
//
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
// CERN Geneva Switzerland
//
// History: first implementation, based on object model of
// 2nd December 1995, G.Cosmo
// ------------ G4NeutronCaptureAtRest physics process ------
// by Larry Felawka (TRIUMF), April 1998
// E-mail: felawka@alph04.triumf.ca
// ************************************************************
//-----------------------------------------------------------------------------
#ifndef G4NeutronCaptureAtRest_h
#define G4NeutronCaptureAtRest_h 1
// Class Description
// Process for capture of neutrons at rest;
// to be used in your physics list in case you need this physics.
// Class Description - End
#include "globals.hh"
#include "Randomize.hh"
#include "G4VRestProcess.hh"
#include "G4VParticleChange.hh"
#include "G4ParticleDefinition.hh"
#include "G4GHEKinematicsVector.hh"
class G4NeutronCaptureAtRest : public G4VRestProcess
{
private:
// hide assignment operator as private
G4NeutronCaptureAtRest& operator=(const G4NeutronCaptureAtRest &right);
G4NeutronCaptureAtRest(const G4NeutronCaptureAtRest& );
public:
G4NeutronCaptureAtRest(const G4String& processName ="NeutronCaptureAtRest");
~G4NeutronCaptureAtRest();
G4bool IsApplicable(const G4ParticleDefinition&);
// null physics table
void BuildPhysicsTable(const G4ParticleDefinition&){}
G4double AtRestGetPhysicalInteractionLength(const G4Track&,
G4ForceCondition*);
// zero mean lifetime
G4double GetMeanLifeTime(const G4Track& ,
G4ForceCondition* ) {return 0.0;}
G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
// return number of secondaries produced
G4int GetNumberOfSecondaries();
// pointer to array containg kinematics of secondaries
G4GHEKinematicsVector* GetSecondaryKinematics();
private:
void GenerateSecondaries();
void Normal( G4float* );
void NeutronCapture( G4int* );
G4double AtomAs( G4float, G4float );
private:
// global time-of-flight of stopped hadron
G4float globalTime;
// atomic mass of target nucleus
G4float targetAtomicMass;
// charge of target nucleus
G4float targetCharge;
G4GHEKinematicsVector* pv;
G4GHEKinematicsVector* eve;
G4GHEKinematicsVector* gkin;
G4int ngkine;
G4int ntot;
G4GHEKinematicsVector result;
G4float massProton;
G4float massNeutron;
G4float massElectron;
G4float massDeuteron;
G4float massAlpha;
G4ParticleDefinition* pdefGamma;
G4ParticleDefinition* pdefNeutron;
};
#endif