Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDCollision.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 9 April 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDCollision_hh
|
||||
#define G4QMDCollision_hh
|
||||
|
||||
#include "G4QMDSystem.hh"
|
||||
#include "G4QMDMeanField.hh"
|
||||
|
||||
#include "G4Scatterer.hh"
|
||||
|
||||
class G4QMDCollision
|
||||
{
|
||||
public:
|
||||
G4QMDCollision();
|
||||
~G4QMDCollision();
|
||||
|
||||
void CalKinematicsOfBinaryCollisions();
|
||||
G4bool CalFinalStateOfTheBinaryCollision( G4int , G4int );
|
||||
G4bool CalFinalStateOfTheBinaryCollisionJQMD( G4double , G4double , G4ThreeVector , G4double , G4double , G4ThreeVector , G4double , G4int , G4int );
|
||||
// CalFinalStateOfTheBinaryCollision ( sig , cutoff , pcm , prcm , srt, beta , gamma , i , j );
|
||||
|
||||
void SetMeanField ( G4QMDMeanField* meanfield ){ theMeanField = meanfield; theSystem = meanfield->GetSystem(); }
|
||||
|
||||
|
||||
private:
|
||||
G4QMDSystem* theSystem;
|
||||
G4QMDMeanField* theMeanField;
|
||||
|
||||
G4double deltar;
|
||||
G4double bcmax0 , bcmax1;
|
||||
G4double sig0 , sig1;
|
||||
G4double epse;
|
||||
|
||||
G4Scatterer* theScatterer;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,103 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDGroundStateNucleus.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 11 May 2007
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDGroundStateNucleus_hh
|
||||
#define G4QMDGroundStateNucleus_hh
|
||||
|
||||
#include "G4QMDNucleus.hh"
|
||||
#include "G4QMDMeanField.hh"
|
||||
|
||||
#include "G4QMDParameters.hh"
|
||||
|
||||
class G4QMDGroundStateNucleus : public G4QMDNucleus
|
||||
{
|
||||
public:
|
||||
G4QMDGroundStateNucleus();
|
||||
G4QMDGroundStateNucleus( G4int z , G4int a );
|
||||
~G4QMDGroundStateNucleus()
|
||||
{
|
||||
rho_l.clear();
|
||||
d_pot.clear();
|
||||
};
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
void packNucleons();
|
||||
|
||||
void killCMMotionAndAngularM();
|
||||
|
||||
G4int maxTrial;
|
||||
G4bool samplingPosition( G4int );
|
||||
|
||||
G4bool samplingMomentum( G4int );
|
||||
|
||||
G4double r00 , r01 , saa , rada , radb;
|
||||
|
||||
G4double dsam, ddif, dsam2, ddif2;
|
||||
|
||||
G4double c0, c3 , cs , cl , wl;
|
||||
|
||||
|
||||
|
||||
G4double rho0,aaa,bbb;
|
||||
|
||||
G4double cdp;
|
||||
G4double c0p,clp,c3p,csp;
|
||||
|
||||
G4double hbc;
|
||||
G4double gamm;
|
||||
G4double cpw;
|
||||
G4double cph;
|
||||
G4double epsx;
|
||||
G4double cpc;
|
||||
|
||||
G4double rmax,rt00,radm;
|
||||
|
||||
std::vector< G4double > phase_g;
|
||||
|
||||
std::vector< G4double > rho_l;
|
||||
std::vector< G4double > d_pot;
|
||||
G4double ebini;
|
||||
G4double edepth;
|
||||
G4double epse;
|
||||
|
||||
|
||||
G4QMDMeanField* meanfield;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,114 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDMeanField.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 29 March 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDMeanField_hh
|
||||
#define G4QMDMeanField_hh
|
||||
|
||||
#include "G4QMDSystem.hh"
|
||||
#include "G4QMDNucleus.hh"
|
||||
|
||||
class G4QMDMeanField
|
||||
{
|
||||
public:
|
||||
G4QMDMeanField();
|
||||
~G4QMDMeanField();
|
||||
|
||||
void SetSystem ( G4QMDSystem* aSystem );
|
||||
void SetNucleus ( G4QMDNucleus* aSystem );
|
||||
G4QMDSystem* GetSystem () {return system; };
|
||||
|
||||
void Cal2BodyQuantities();
|
||||
void Cal2BodyQuantities( G4int );
|
||||
|
||||
void CalGraduate();
|
||||
|
||||
G4bool IsPauliBlocked( G4int );
|
||||
|
||||
G4double GetTotalPotential();
|
||||
|
||||
void DoPropagation( G4double );
|
||||
|
||||
std::vector< G4QMDNucleus* > DoClusterJudgment();
|
||||
|
||||
G4double GetRR2( G4int i , G4int j ) { return rr2[i][j]; };
|
||||
|
||||
G4double GetRHA( G4int i , G4int j ) { return rha[i][j]; };
|
||||
G4double GetRHE( G4int i , G4int j ) { return rhe[i][j]; };
|
||||
G4ThreeVector GetFFr( G4int i ) { return ffr[i]; };
|
||||
G4ThreeVector GetFFp( G4int i ) { return ffp[i]; };
|
||||
|
||||
std::vector< G4double > GetLocalDensity();
|
||||
std::vector< G4double > GetDepthOfPotential();
|
||||
|
||||
private:
|
||||
G4double calPauliBlockingFactor( G4int );
|
||||
|
||||
G4QMDSystem* system;
|
||||
|
||||
G4double rclds;
|
||||
|
||||
G4double hbc , rho0;
|
||||
G4double epsx , epscl;
|
||||
|
||||
G4double cpc;
|
||||
|
||||
G4int icoul, irelcr;
|
||||
G4double gamm, c0, c3, cs, cl, wl;
|
||||
G4double c0w, c3w, clw, c0sw;
|
||||
|
||||
G4double c0g,c3g,csg,pag;
|
||||
|
||||
G4double cpw,cph;
|
||||
|
||||
// 2 Body Quantities
|
||||
std::vector < std::vector < G4double > > rr2;
|
||||
std::vector < std::vector < G4double > > pp2;
|
||||
std::vector < std::vector < G4double > > rbij;
|
||||
|
||||
// Gauss
|
||||
std::vector < std::vector < G4double > > rha;
|
||||
|
||||
// Coulomb
|
||||
std::vector < std::vector < G4double > > rhe;
|
||||
std::vector < std::vector < G4double > > rhc;
|
||||
|
||||
std::vector < G4ThreeVector > ffr;
|
||||
std::vector < G4ThreeVector > ffp;
|
||||
std::vector < G4double > rh3d;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,84 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDNucleus.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 3 April 2007
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDNucleus_hh
|
||||
#define G4QMDNucleus_hh
|
||||
|
||||
#include "G4QMDSystem.hh"
|
||||
#include "G4QMDParameters.hh"
|
||||
|
||||
class G4QMDNucleus : public G4QMDSystem
|
||||
{
|
||||
public:
|
||||
G4QMDNucleus();
|
||||
~G4QMDNucleus();
|
||||
|
||||
G4LorentzVector Get4Momentum();
|
||||
|
||||
// Number of Nucleons (Proton or Neutron)
|
||||
G4int GetMassNumber();
|
||||
|
||||
// Number of Protons
|
||||
G4int GetAtomicNumber();
|
||||
|
||||
void CalEnergyAndAngularMomentumInCM();
|
||||
|
||||
// rest mass from G4NucleiPropertiesTable
|
||||
G4double GetNuclearMass();
|
||||
|
||||
void SetTotalPotential( G4double x ){ potentialEnergy = x; };
|
||||
G4double GetExcitationEnergy(){ return excitationEnergy; };
|
||||
|
||||
G4int GetAngularMomentum(){ return jj; };
|
||||
|
||||
private:
|
||||
|
||||
G4double hbc;
|
||||
|
||||
std::vector < G4ThreeVector > rcm, pcm;
|
||||
std::vector < G4double > es;
|
||||
G4int jj;
|
||||
|
||||
G4double potentialEnergy;
|
||||
G4double excitationEnergy;
|
||||
G4double bindingEnergy;
|
||||
|
||||
G4double kineticEnergyPerNucleon;
|
||||
//G4double bindingEnergyPerNucleon;
|
||||
//G4double potentialEnergyPerNucleon;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,101 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDParameters.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 12 May 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDParameters_hh
|
||||
#define G4QMDParameters_hh
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4QMDParameters
|
||||
{
|
||||
static G4QMDParameters* parameters;
|
||||
|
||||
G4QMDParameters();
|
||||
public:
|
||||
~G4QMDParameters();
|
||||
static G4QMDParameters* GetInstance()
|
||||
{
|
||||
if ( parameters == NULL ) parameters = new G4QMDParameters();
|
||||
return parameters;
|
||||
}
|
||||
|
||||
|
||||
// GroundStateNucleus
|
||||
G4double Get_wl() { return wl; };
|
||||
G4double Get_cl() { return cl; };
|
||||
G4double Get_hbc() { return hbc; };
|
||||
G4double Get_rho0() { return rho0; };
|
||||
G4double Get_gamm() { return gamm; };
|
||||
G4double Get_cpw() { return cpw; };
|
||||
G4double Get_cph() { return cph; };
|
||||
G4double Get_epsx() { return epsx; };
|
||||
G4double Get_cpc() { return cpc; };
|
||||
G4double Get_cs() { return cs; };
|
||||
G4double Get_c0() { return c0; };
|
||||
G4double Get_c0p() { return c0p; };
|
||||
G4double Get_clp() { return clp; };
|
||||
G4double Get_c3() { return c3; };
|
||||
G4double Get_c3p() { return c3p; };
|
||||
G4double Get_csp() { return csp; };
|
||||
G4double Get_cdp() { return cdp; };
|
||||
|
||||
protected:
|
||||
G4double wl;
|
||||
G4double cl;
|
||||
G4double hbc;
|
||||
G4double rho0;
|
||||
G4double gamm;
|
||||
|
||||
/*
|
||||
G4double rho0;
|
||||
G4double t0;
|
||||
|
||||
G4double aaa;
|
||||
|
||||
*/
|
||||
// MeanField
|
||||
G4double c0, c3, cs;
|
||||
|
||||
// GroundStateNucleus
|
||||
G4double cpw;
|
||||
G4double cph;
|
||||
G4double epsx;
|
||||
G4double cpc;
|
||||
G4double c0p , clp , c3p , csp , cdp;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,86 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDParticipant.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 29 March 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDParticipant_hh
|
||||
#define G4QMDParticipant_hh
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4LorentzVector.hh"
|
||||
|
||||
class G4QMDParticipant
|
||||
{
|
||||
public:
|
||||
// momentum position
|
||||
G4QMDParticipant( G4ParticleDefinition* , G4ThreeVector , G4ThreeVector );
|
||||
~G4QMDParticipant();
|
||||
|
||||
void SetDefinition( G4ParticleDefinition* pd ) { definition = pd; };
|
||||
G4ParticleDefinition* GetDefinition() { return definition; };
|
||||
|
||||
void SetPosition( G4ThreeVector r ) { position = r; };
|
||||
G4ThreeVector GetPosition() { return position; };
|
||||
|
||||
void SetMomentum( G4ThreeVector p ) { momentum = p; };
|
||||
G4ThreeVector GetMomentum() { return momentum; };
|
||||
|
||||
G4double GetMass() { return definition->GetPDGMass()/GeV; };
|
||||
|
||||
G4LorentzVector Get4Momentum();
|
||||
|
||||
G4double GetKineticEnergy() { return Get4Momentum().e() - GetMass(); };
|
||||
|
||||
G4int GetBaryonNumber() { return definition->GetBaryonNumber(); };
|
||||
G4int GetNuc() { return definition->GetBaryonNumber(); };
|
||||
|
||||
G4int GetChargeInUnitOfEplus() { return int ( definition->GetPDGCharge()/eplus ); };
|
||||
|
||||
void UnsetInitialMark() { projectile = false; target = false; }
|
||||
void SetProjectile() { projectile = true; }
|
||||
void SetTarget() { target = true; }
|
||||
G4bool IsThisProjectile() { return projectile; }
|
||||
G4bool IsThisTarget() { return target; }
|
||||
|
||||
private:
|
||||
G4ParticleDefinition* definition;
|
||||
G4ThreeVector momentum;
|
||||
G4ThreeVector position;
|
||||
|
||||
G4bool projectile;
|
||||
G4bool target;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,106 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDReaction.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 02 April 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDReaction_hh
|
||||
#define G4QMDReaction_hh
|
||||
|
||||
#include "G4QMDSystem.hh"
|
||||
#include "G4QMDCollision.hh"
|
||||
#include "G4QMDMeanField.hh"
|
||||
#include "G4QMDParticipant.hh"
|
||||
|
||||
#include "G4IonsShenCrossSection.hh"
|
||||
#include "G4GeneralSpaceNNCrossSection.hh"
|
||||
|
||||
#include "G4HadronicInteraction.hh"
|
||||
|
||||
#include "G4Evaporation.hh"
|
||||
#include "G4ExcitationHandler.hh"
|
||||
//#include "G4PreCompoundModel.hh"
|
||||
|
||||
class G4QMDReaction : public G4HadronicInteraction
|
||||
{
|
||||
public:
|
||||
G4QMDReaction();
|
||||
~G4QMDReaction();
|
||||
|
||||
std::vector< G4QMDSystem* > GetFinalStates();
|
||||
|
||||
|
||||
G4HadFinalState *ApplyYourself( const G4HadProjectile &aTrack, G4Nucleus & targetNucleus );
|
||||
|
||||
private:
|
||||
void setInitialCondition( G4QMDSystem* , G4QMDSystem* );
|
||||
|
||||
G4QMDMeanField* meanField;
|
||||
|
||||
G4QMDCollision* collision;
|
||||
|
||||
void doPropagation();
|
||||
void doCollision();
|
||||
std::vector< G4QMDSystem* > doClusterJudgment();
|
||||
|
||||
G4QMDSystem* system;
|
||||
G4double deltaT;
|
||||
G4int maxTime;
|
||||
|
||||
G4Evaporation* evaporation;
|
||||
G4ExcitationHandler* excitationHandler;
|
||||
// G4VPreCompoundModel* preco;
|
||||
|
||||
|
||||
// b pd_proj pd_targ z_p a_p z_t a_t plab elab
|
||||
// G4double offSetOfCollision( G4double , G4ParticleDefinition* , G4ParticleDefinition* , G4int , G4int , G4int , G4int , G4double , G4double );
|
||||
// b pd_proj pd_targ plab elab bmax boostToCM
|
||||
void calcOffSetOfCollision( G4double , G4ParticleDefinition* , G4ParticleDefinition* , G4double , G4double , G4double , G4ThreeVector );
|
||||
G4double coulomb_collision_gamma_proj;
|
||||
G4double coulomb_collision_rx_proj;
|
||||
G4double coulomb_collision_rz_proj;
|
||||
G4double coulomb_collision_px_proj;
|
||||
G4double coulomb_collision_pz_proj;
|
||||
|
||||
G4double coulomb_collision_gamma_targ;
|
||||
G4double coulomb_collision_rx_targ;
|
||||
G4double coulomb_collision_rz_targ;
|
||||
G4double coulomb_collision_px_targ;
|
||||
G4double coulomb_collision_pz_targ;
|
||||
|
||||
G4IonsShenCrossSection shenXS;
|
||||
G4IonsShenCrossSection genspaXS;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,73 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT4 Class file
|
||||
//
|
||||
//
|
||||
// File name: G4QMDSystem.hh
|
||||
//
|
||||
// Author: Koi, Tatsumi (tkoi@slac.stanford.edu)
|
||||
//
|
||||
// Creation date: 29 March 2007
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4QMDSystem_hh
|
||||
#define G4QMDSystem_hh
|
||||
|
||||
#include "G4QMDParticipant.hh"
|
||||
|
||||
class G4QMDSystem
|
||||
{
|
||||
public:
|
||||
G4QMDSystem();
|
||||
~G4QMDSystem();
|
||||
|
||||
void SetParticipant( G4QMDParticipant* particle ) { participants.push_back ( particle ); };
|
||||
void SetSystem ( G4QMDSystem* , G4ThreeVector , G4ThreeVector );
|
||||
|
||||
void SubtractSystem ( G4QMDSystem* );
|
||||
|
||||
void DeleteParticipant( G4int i ) { participants.erase( std::find ( participants.begin() , participants.end() , participants[ i ] ) ); };
|
||||
|
||||
G4int GetTotalNumberOfParticipant() { return participants.size(); };
|
||||
|
||||
G4QMDParticipant* GetParticipant( G4int i ) { return participants[i]; };
|
||||
|
||||
void IncrementCollisionCounter() { numberOfCollision++; };
|
||||
G4int GetNOCollision() { return numberOfCollision; };
|
||||
|
||||
void ShowParticipants();
|
||||
|
||||
void Clear();
|
||||
|
||||
protected:
|
||||
std::vector< G4QMDParticipant* > participants;
|
||||
|
||||
private:
|
||||
G4int numberOfCollision;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user