Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4EventGenerator.hh 67999 2013-03-13 11:14:32Z gcosmo $
// $Id: G4EventGenerator.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4EventGenerator_h
#define G4EventGenerator_h 1
@@ -36,23 +36,21 @@
class G4EventGenerator : public G4HadronicInteraction
{
public:
G4EventGenerator();
~G4EventGenerator();
G4EventGenerator();
~G4EventGenerator();
private:
G4EventGenerator(const G4EventGenerator &right);
const G4EventGenerator & operator=(const G4EventGenerator &right);
int operator==(const G4EventGenerator &right) const;
int operator!=(const G4EventGenerator &right) const;
G4EventGenerator(const G4EventGenerator &right);
const G4EventGenerator & operator=(const G4EventGenerator &right);
int operator==(const G4EventGenerator &right) const;
int operator!=(const G4EventGenerator &right) const;
public:
virtual G4double GetWidth(G4VertexCode &theCode) = 0;
virtual G4double GetCrossSection(G4InteractionCode &theCode) = 0;
virtual G4ReactionProduct * GetFinalState(G4InteractionCode &theCode) = 0;
// please also define ApplyYourself for scattering off Hydrogen
virtual G4double GetWidth(G4VertexCode &theCode) = 0;
virtual G4double GetCrossSection(G4InteractionCode &theCode) = 0;
virtual G4ReactionProduct * GetFinalState(G4InteractionCode &theCode) = 0;
// please also define ApplyYourself for scattering off Hydrogen
};
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4InteractionCode.hh 67999 2013-03-13 11:14:32Z gcosmo $
// $Id: G4InteractionCode.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4InteractionCode_h
#define G4InteractionCode_h 1
@@ -32,7 +32,6 @@
class G4InteractionCode
{
public:
G4InteractionCode(G4String & aCode);
@@ -40,7 +39,6 @@ class G4InteractionCode
G4String GetCode();
private:
G4String theCode;
};
@@ -55,3 +53,4 @@ inline G4String G4InteractionCode::GetCode()
}
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4InteractionContent.hh 89732 2015-04-29 09:00:48Z gcosmo $
// $Id: G4InteractionContent.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4InteractionContent_h
@@ -54,215 +54,209 @@
class G4InteractionContent
{
public:
G4InteractionContent() {}
G4InteractionContent(G4VSplitableHadron *aPrimaryParticipant);
G4InteractionContent() {}
G4InteractionContent(G4VSplitableHadron *aPrimaryParticipant);
~G4InteractionContent();
~G4InteractionContent();
G4bool operator<(const G4InteractionContent &right) const;
G4bool operator<(const G4InteractionContent &right) const;
G4VSplitableHadron * GetProjectile() const ;
G4VSplitableHadron * GetTarget() const;
G4VSplitableHadron * GetProjectile() const ;
G4VSplitableHadron * GetTarget() const;
void SetProjectileNucleon(G4Nucleon * aNucleon);
G4Nucleon * GetProjectileNucleon() const;
void SetProjectileNucleon(G4Nucleon * aNucleon);
G4Nucleon * GetProjectileNucleon() const;
void SetTargetNucleon(G4Nucleon * aNucleon);
G4Nucleon * GetTargetNucleon() const;
void SetTargetNucleon(G4Nucleon * aNucleon);
G4Nucleon * GetTargetNucleon() const;
void SetTarget(G4VSplitableHadron *aTarget);
void SetTarget(G4VSplitableHadron *aTarget);
G4int GetNumberOfSoftCollisions();
G4int GetNumberOfHardCollisions();
void SetNumberOfSoftCollisions(int);
void SetNumberOfHardCollisions(int);
G4int GetNumberOfDiffractiveCollisions();
void SetNumberOfDiffractiveCollisions(int);
G4int GetNumberOfSoftCollisions();
G4int GetNumberOfHardCollisions();
void SetNumberOfSoftCollisions(int);
void SetNumberOfHardCollisions(int);
G4int GetNumberOfDiffractiveCollisions();
void SetNumberOfDiffractiveCollisions(int);
void SplitHadrons();
void SplitHadrons();
void SetInteractionTime(G4double aValue);
G4double GetInteractionTime() const;
void SetStatus(G4int aValue);
G4int GetStatus() const;
void SetInteractionTime(G4double aValue);
G4double GetInteractionTime() const;
void SetStatus(G4int aValue);
G4int GetStatus() const;
#ifdef G4DEBUG
void Dump();
#endif
#ifdef G4DEBUG
void Dump();
#endif
private:
G4InteractionContent & operator=(const G4InteractionContent &right);
G4InteractionContent(const G4InteractionContent &right);
int operator==(const G4InteractionContent &right) const;
int operator!=(const G4InteractionContent &right) const;
private:
G4InteractionContent & operator=(const G4InteractionContent &right);
G4InteractionContent(const G4InteractionContent &right);
int operator==(const G4InteractionContent &right) const;
int operator!=(const G4InteractionContent &right) const;
protected:
private:
G4VSplitableHadron * theTarget;
G4VSplitableHadron * theProjectile;
G4VSplitableHadron * theTarget;
G4VSplitableHadron * theProjectile;
G4Nucleon * theProjectileNucleon;
G4Nucleon * theTargetNucleon;
G4Nucleon * theProjectileNucleon;
G4Nucleon * theTargetNucleon;
G4int theNumberOfHard;
G4int theNumberOfSoft;
G4int theNumberOfDiffractive;
G4double theInteractionTime;
G4int curStatus;
G4int theNumberOfHard;
G4int theNumberOfSoft;
G4int theNumberOfDiffractive;
G4double theInteractionTime;
G4int curStatus;
};
// Class G4InteractionContent
inline G4VSplitableHadron * G4InteractionContent::GetProjectile() const
{
return theProjectile;
return theProjectile;
}
inline G4VSplitableHadron * G4InteractionContent::GetTarget() const
{
return theTarget;
return theTarget;
}
inline void G4InteractionContent::SetTarget(G4VSplitableHadron *aTarget)
{
theTarget = aTarget;
theTarget = aTarget;
}
inline void G4InteractionContent::SetProjectileNucleon(G4Nucleon * aNucleon)
{
theProjectileNucleon = aNucleon;
theProjectileNucleon = aNucleon;
}
inline G4Nucleon * G4InteractionContent::GetProjectileNucleon() const
{
return theProjectileNucleon;
return theProjectileNucleon;
}
inline void G4InteractionContent::SetTargetNucleon(G4Nucleon * aNucleon)
{
theTargetNucleon = aNucleon;
theTargetNucleon = aNucleon;
}
inline G4Nucleon * G4InteractionContent::GetTargetNucleon() const
{
return theTargetNucleon;
return theTargetNucleon;
}
inline G4int G4InteractionContent::GetNumberOfSoftCollisions()
{
return theNumberOfSoft;
return theNumberOfSoft;
}
inline G4int G4InteractionContent::GetNumberOfHardCollisions()
{
return theNumberOfHard;
return theNumberOfHard;
}
inline void G4InteractionContent::SetNumberOfSoftCollisions(int nCol)
{
theNumberOfSoft = nCol;
theNumberOfSoft = nCol;
}
inline void G4InteractionContent::SetNumberOfHardCollisions(int nCol)
{
theNumberOfHard = nCol;
theNumberOfHard = nCol;
}
inline G4int G4InteractionContent::GetNumberOfDiffractiveCollisions()
{
return theNumberOfDiffractive;
return theNumberOfDiffractive;
}
inline void G4InteractionContent::SetNumberOfDiffractiveCollisions(int nCol)
{
theNumberOfDiffractive = nCol;
theNumberOfDiffractive = nCol;
}
inline void G4InteractionContent::SplitHadrons()
{
//G4cout<<"InterContent Proj "<<theProjectile<<G4endl;
if ( theProjectile != NULL ) {theProjectile->SplitUp();}
//G4cout<<"InterContent Targ "<<theTarget<<G4endl;
if ( theTarget != NULL ) {theTarget->SplitUp();}
#ifdef G4DEBUG
// Dump();
#endif
//G4cout<<"InterContent Proj "<<theProjectile<<G4endl;
if ( theProjectile != NULL ) {theProjectile->SplitUp();}
//G4cout<<"InterContent Targ "<<theTarget<<G4endl;
if ( theTarget != NULL ) {theTarget->SplitUp();}
#ifdef G4DEBUG
//Dump();
#endif
}
#ifdef G4DEBUG
inline void G4InteractionContent::Dump()
{
G4LorentzVector mom(0.,0.,0.,0.);
G4cout << " G4InteractionContent " << this << G4endl
<< "Hard/Soft/Diff "
<< theNumberOfHard<<" / "
<<theNumberOfSoft<<" / "
<<theNumberOfDiffractive << G4endl
<< "Projectile " ;
if ( theProjectile ) {
G4cout << theProjectile->GetDefinition()->GetPDGEncoding()
<< " " << theProjectile->Get4Momentum()<< G4endl;
mom+=theProjectile->Get4Momentum();
#ifdef debug_QGSM
G4QGSMSplitableHadron * at =(G4QGSMSplitableHadron*)theProjectile;
std::deque<G4Parton *>color=at->GetColorPartons();
std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
G4cout << " proj. color/anti size " << color.size() << " / " << anticolor.size() << G4endl;
std::deque<G4Parton *>::iterator p_iter;
G4LorentzVector colmom(0.,0.,0.,0.);
for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
G4cout << "proj color : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
colmom+=(*p_iter)->Get4Momentum();
}
G4LorentzVector mom(0.,0.,0.,0.);
G4cout << " G4InteractionContent " << this << G4endl
<< "Hard/Soft/Diff "
<< theNumberOfHard<<" / "
<<theNumberOfSoft<<" / "
<<theNumberOfDiffractive << G4endl
<< "Projectile " ;
G4LorentzVector anticolmom(0.,0.,0.,0.);
for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
G4cout << "proj antic : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
anticolmom+=(*p_iter)->Get4Momentum();
}
G4cout << " proj. color/anti mom " << colmom << " / " << anticolmom << " Sum: " << colmom+anticolmom <<G4endl;
#endif
} else {
G4cout << " none " << G4endl;
}
if ( theTarget ) {
G4cout << "Target " << theTarget->GetDefinition()->GetPDGEncoding()
<< " " << theTarget->Get4Momentum()<< G4endl;
mom+=theTarget->Get4Momentum();
#ifdef debug_QGSM
G4QGSMSplitableHadron * at =(G4QGSMSplitableHadron*)theTarget;
std::deque<G4Parton *>color=at->GetColorPartons();
std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
G4cout << " target color/anti size " << color.size() << " / " << anticolor.size() << G4endl;
std::deque<G4Parton *>::iterator p_iter;
G4LorentzVector colmom(0.,0.,0.,0.);
for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
G4cout << "target color : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
colmom+=(*p_iter)->Get4Momentum();
}
if ( theProjectile ) {
G4cout << theProjectile->GetDefinition()->GetPDGEncoding()
<< " " << theProjectile->Get4Momentum()<< G4endl;
mom+=theProjectile->Get4Momentum();
#ifdef debug_QGSM
G4QGSMSplitableHadron * at =(G4QGSMSplitableHadron*)theProjectile;
std::deque<G4Parton *>color=at->GetColorPartons();
std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
G4cout << " proj. color/anti size " << color.size() << " / " << anticolor.size() << G4endl;
std::deque<G4Parton *>::iterator p_iter;
G4LorentzVector colmom(0.,0.,0.,0.);
for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
G4cout << "proj color : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
colmom+=(*p_iter)->Get4Momentum();
}
G4LorentzVector anticolmom(0.,0.,0.,0.);
for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
G4cout << "proj antic : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
anticolmom+=(*p_iter)->Get4Momentum();
}
G4cout << " proj. color/anti mom " << colmom << " / " << anticolmom << " Sum: " << colmom+anticolmom <<G4endl;
#endif
} else {
G4cout << " none " << G4endl;
}
G4LorentzVector anticolmom(0.,0.,0.,0.);
for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
G4cout << "target antic : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
anticolmom+=(*p_iter)->Get4Momentum();
}
G4cout << " target color/anti mom " << colmom << " / " << anticolmom << " Sum: " << colmom+anticolmom <<G4endl;
#endif
} else {
G4cout << " none " << G4endl;
}
G4cout << "total 4-mom of interaction content " << mom << G4endl;
if ( theTarget ) {
G4cout << "Target " << theTarget->GetDefinition()->GetPDGEncoding()
<< " " << theTarget->Get4Momentum()<< G4endl;
mom+=theTarget->Get4Momentum();
#ifdef debug_QGSM
G4QGSMSplitableHadron * at =(G4QGSMSplitableHadron*)theTarget;
std::deque<G4Parton *>color=at->GetColorPartons();
std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
G4cout << " target color/anti size " << color.size() << " / " << anticolor.size() << G4endl;
std::deque<G4Parton *>::iterator p_iter;
G4LorentzVector colmom(0.,0.,0.,0.);
for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
G4cout << "target color : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
colmom+=(*p_iter)->Get4Momentum();
}
G4LorentzVector anticolmom(0.,0.,0.,0.);
for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
G4cout << "target antic : "<<(*p_iter)->GetPDGcode() << ", mom= "<< (*p_iter)->Get4Momentum()<<G4endl;
anticolmom+=(*p_iter)->Get4Momentum();
}
G4cout << " target color/anti mom " << colmom << " / " << anticolmom << " Sum: " << colmom+anticolmom <<G4endl;
#endif
} else {
G4cout << " none " << G4endl;
}
G4cout << "total 4-mom of interaction content " << mom << G4endl;
}
#endif
#endif
@@ -0,0 +1,126 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#ifndef G4PomeronCrossSection_h
#define G4PomeronCrossSection_h 1
//
// $Id: G4PomeronCrossSection.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#include "G4Proton.hh"
#include "G4Neutron.hh"
#include "G4PionPlus.hh"
#include "G4PionMinus.hh"
#include "G4PionZero.hh"
#include "G4KaonPlus.hh"
#include "G4KaonMinus.hh"
#include "G4KaonZero.hh"
#include "G4KaonZeroShort.hh"
#include "G4KaonZeroLong.hh"
#include "G4Gamma.hh"
class G4PomeronCrossSection
{
public:
G4PomeronCrossSection(const G4ParticleDefinition * );
G4PomeronCrossSection(const G4Proton * );
G4PomeronCrossSection(const G4Neutron * );
G4PomeronCrossSection(const G4PionPlus * );
G4PomeronCrossSection(const G4PionMinus * );
G4PomeronCrossSection(const G4PionZero * );
G4PomeronCrossSection(const G4KaonPlus * );
G4PomeronCrossSection(const G4KaonMinus * );
G4PomeronCrossSection(const G4KaonZero * );
G4PomeronCrossSection(const G4KaonZeroLong * );
G4PomeronCrossSection(const G4KaonZeroShort * );
G4PomeronCrossSection(const G4Gamma * );
~G4PomeronCrossSection();
// s = (center of mass energy)**2
G4double GetTotalCrossSection(const G4double s);
G4double GetDiffractiveCrossSection(const G4double s);
G4double GetElasticCrossSection(const G4double s);
G4double GetInelasticCrossSection(const G4double s);
G4double GetTotalProbability(const G4double s, const G4double impactsquare);
G4double GetDiffractiveProbability(const G4double s, const G4double impactsquare);
G4double GetNondiffractiveProbability(const G4double s, const G4double impactsquare);
G4double GetElasticProbability(const G4double s, const G4double impactsquare);
G4double GetInelasticProbability(const G4double s, const G4double impactsquare);
G4double GetCutPomeronProbability(const G4double s, const G4double impactsquare,
const G4int nPomerons);
void Setgamma(const G4double agam); // temporary only! GF.
G4double SoftEikonal(G4double s, G4double impactsquare);
G4double HardEikonal(G4double s, G4double impactsquare);
void Pomeron_S(G4double apomeron_S){ pomeron_S = apomeron_S;}
void Pomeron_Gamma(G4double apomeron_Gamma){ pomeron_Gamma = apomeron_Gamma;}
void Pomeron_C(G4double apomeron_C){ pomeron_C = apomeron_C;}
void Pomeron_Rsquare(G4double apomeron_Rsquare){ pomeron_Rsquare = apomeron_Rsquare;}
void Pomeron_Alpha(G4double apomeron_Alpha){ pomeron_Alpha = apomeron_Alpha;}
void Pomeron_Alphaprime(G4double apomeron_Alphaprime){ pomeron_Alphaprime = apomeron_Alphaprime;}
void Pomeron_Gamma_Hard(G4double apomeron_Gamma_Hard){ pomeron_Gamma_Hard = apomeron_Gamma_Hard;}
void Pomeron_Alpha_Hard(G4double apomeron_Alpha_Hard){ pomeron_Alpha_Hard = apomeron_Alpha_Hard;}
private:
G4double PowerSoft(const G4double s);
G4double PowerHard(const G4double s);
G4double LambdaSoft(const G4double s);
G4double LambdaHard(const G4double s);
G4double Zsoft(const G4double s);
G4double Zhard(const G4double s);
G4PomeronCrossSection();
void InitForNucleon();
void InitForPion();
void InitForKaon();
void InitForGamma();
G4double Expand(G4double z);
inline G4double Z(const G4double Scms);
inline G4double SigP(const G4double Scms);
inline G4double Power(const G4double Scms);
inline G4double Lambda(const G4double s);
inline G4double Eikonal(const G4double s,const G4double impactsquare);
G4double pomeron_Alpha;
G4double pomeron_Alpha_Hard;
G4double pomeron_Alphaprime;
G4double pomeron_C;
G4double pomeron_Gamma;
G4double pomeron_Gamma_Hard;
G4double pomeron_Rsquare;
G4double pomeron_S;
};
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4StringModel.hh 67999 2013-03-13 11:14:32Z gcosmo $
// $Id: G4StringModel.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4StringModel_h
#define G4StringModel_h 1
@@ -37,33 +37,31 @@ class G4VStringFragmentation;
class G4StringModel : public G4VHighEnergyGenerator
{
public:
G4StringModel();
~G4StringModel();
G4StringModel();
~G4StringModel();
private:
G4StringModel(const G4StringModel &right);
const G4StringModel & operator=(const G4StringModel &right);
int operator==(const G4StringModel &right) const;
int operator!=(const G4StringModel &right) const;
G4StringModel(const G4StringModel &right);
const G4StringModel & operator=(const G4StringModel &right);
int operator==(const G4StringModel &right) const;
int operator!=(const G4StringModel &right) const;
public:
void Set3DNucleus(G4V3DNucleus *const value);
void SetStringFragmentationModel(G4VStringFragmentation *const value);
void SetGenerator(G4EventGenerator *const value);
void Set3DNucleus(G4V3DNucleus *const value);
void SetStringFragmentationModel(G4VStringFragmentation *const value);
void SetGenerator(G4EventGenerator *const value);
private:
const G4V3DNucleus * Get3DNucleus() const;
const G4VStringFragmentation * GetStringFragmentationModel() const;
const G4EventGenerator * GetGenerator() const;
const G4V3DNucleus * Get3DNucleus() const;
const G4VStringFragmentation * GetStringFragmentationModel() const;
const G4EventGenerator * GetGenerator() const;
private:
G4V3DNucleus *the3DNucleus;
G4VStringFragmentation *theStringFragmentationModel;
G4EventGenerator *theGenerator;
G4V3DNucleus *the3DNucleus;
G4VStringFragmentation *theStringFragmentationModel;
G4EventGenerator *theGenerator;
};
inline const G4V3DNucleus * G4StringModel::Get3DNucleus() const
@@ -97,3 +95,4 @@ inline void G4StringModel::SetGenerator(G4EventGenerator *const value)
}
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VParticipants.hh 83684 2014-09-09 12:37:39Z gcosmo $
// $Id: G4VParticipants.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4VParticipants_h
@@ -47,26 +47,25 @@ class G4V3DNucleus;
class G4VParticipants
{
public:
G4VParticipants();
G4VParticipants(const G4VParticipants &right);
virtual ~G4VParticipants();
G4VParticipants();
G4VParticipants(const G4VParticipants &right);
virtual ~G4VParticipants();
const G4VParticipants & operator=(const G4VParticipants &right);
int operator==(const G4VParticipants &right) const;
int operator!=(const G4VParticipants &right) const;
const G4VParticipants & operator=(const G4VParticipants &right);
int operator==(const G4VParticipants &right) const;
int operator!=(const G4VParticipants &right) const;
virtual void Init(G4int theZ, G4int theA);
virtual void SetNucleus(G4V3DNucleus* aNucleus);
virtual G4V3DNucleus* GetWoundedNucleus() const;
virtual void Init(G4int theZ, G4int theA);
virtual void SetNucleus(G4V3DNucleus* aNucleus);
virtual G4V3DNucleus* GetWoundedNucleus() const;
virtual void InitProjectileNucleus(G4int theZ, G4int theA);
virtual void SetProjectileNucleus(G4V3DNucleus* aNucleus);
virtual G4V3DNucleus* GetProjectileNucleus() const;
virtual void InitProjectileNucleus(G4int theZ, G4int theA);
virtual void SetProjectileNucleus(G4V3DNucleus* aNucleus);
virtual G4V3DNucleus* GetProjectileNucleus() const;
G4V3DNucleus* theNucleus;
G4V3DNucleus* theProjectileNucleus;
G4V3DNucleus* theNucleus;
G4V3DNucleus* theProjectileNucleus;
private:
};
@@ -82,6 +81,6 @@ inline G4V3DNucleus * G4VParticipants::GetProjectileNucleus() const
{
return theProjectileNucleus;
}
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VPartonStringModel.hh 83684 2014-09-09 12:37:39Z gcosmo $
// $Id: G4VPartonStringModel.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4VPartonStringModel_h
#define G4VPartonStringModel_h 1
@@ -49,37 +49,34 @@
#include "G4KineticTrackVector.hh"
class G4VPartonStringModel : public G4VHighEnergyGenerator
{
public:
G4VPartonStringModel(const G4String& modelName = "Parton String Model");
virtual ~G4VPartonStringModel();
G4VPartonStringModel(const G4String& modelName = "Parton String Model");
virtual ~G4VPartonStringModel();
private:
G4VPartonStringModel(const G4VPartonStringModel &right);
const G4VPartonStringModel & operator=(const G4VPartonStringModel &right);
int operator==(const G4VPartonStringModel &right) const;
int operator!=(const G4VPartonStringModel &right) const;
G4VPartonStringModel(const G4VPartonStringModel &right);
const G4VPartonStringModel & operator=(const G4VPartonStringModel &right);
int operator==(const G4VPartonStringModel &right) const;
int operator!=(const G4VPartonStringModel &right) const;
public:
void SetFragmentationModel(G4VStringFragmentation * aModel);
G4KineticTrackVector * Scatter(const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary);
virtual G4V3DNucleus * GetWoundedNucleus() const = 0;
virtual void ModelDescription(std::ostream& outFile) const;
virtual G4V3DNucleus * GetProjectileNucleus() const;
protected:
virtual void Init(const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary) = 0;
virtual G4ExcitedStringVector * GetStrings() = 0;
void SetThisPointer(G4VPartonStringModel * aPointer);
void SetFragmentationModel(G4VStringFragmentation * aModel);
G4KineticTrackVector * Scatter(const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary);
virtual G4V3DNucleus * GetWoundedNucleus() const = 0;
virtual void ModelDescription(std::ostream& outFile) const;
virtual G4V3DNucleus * GetProjectileNucleus() const;
G4bool EnergyAndMomentumCorrector(G4KineticTrackVector* Output, G4LorentzVector& TotalCollisionMomentum);
protected:
virtual void Init(const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary) = 0;
virtual G4ExcitedStringVector * GetStrings() = 0;
void SetThisPointer(G4VPartonStringModel * aPointer);
G4bool EnergyAndMomentumCorrector(G4KineticTrackVector* Output, G4LorentzVector& TotalCollisionMomentum);
private:
G4VStringFragmentation * stringFragmentationModel;
G4VPartonStringModel * theThis;
G4VStringFragmentation * stringFragmentationModel;
G4VPartonStringModel * theThis;
};
inline void G4VPartonStringModel::SetFragmentationModel(G4VStringFragmentation * aModel)
@@ -87,11 +84,10 @@ inline void G4VPartonStringModel::SetFragmentationModel(G4VStringFragmentation *
stringFragmentationModel = aModel;
}
inline
void G4VPartonStringModel::SetThisPointer(G4VPartonStringModel * aPointer)
inline void G4VPartonStringModel::SetThisPointer(G4VPartonStringModel * aPointer)
{
theThis=aPointer;
theThis=aPointer;
}
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VSplitableHadron.hh 83684 2014-09-09 12:37:39Z gcosmo $
// $Id: G4VSplitableHadron.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4VSplitableHadron_h
@@ -41,9 +41,10 @@
#include "globals.hh"
#include "G4ParticleDefinition.hh"
#include "G4ReactionProduct.hh"
class G4Nucleon;
#include "G4ThreeVector.hh"
#include "G4LorentzVector.hh"
class G4Nucleon;
class G4Parton;
class G4VKineticNucleon;
@@ -51,135 +52,128 @@ class G4VKineticNucleon;
class G4VSplitableHadron
{
public:
G4VSplitableHadron();
G4VSplitableHadron(const G4ReactionProduct & aPrimary);
G4VSplitableHadron(const G4Nucleon & aNucleon);
G4VSplitableHadron(const G4VKineticNucleon * aNucleon);
G4VSplitableHadron();
G4VSplitableHadron(const G4ReactionProduct & aPrimary);
G4VSplitableHadron(const G4Nucleon & aNucleon);
G4VSplitableHadron(const G4VKineticNucleon * aNucleon);
virtual ~G4VSplitableHadron();
virtual ~G4VSplitableHadron();
int operator==(const G4VSplitableHadron &right) const;
int operator!=(const G4VSplitableHadron &right) const;
int operator==(const G4VSplitableHadron &right) const;
int operator!=(const G4VSplitableHadron &right) const;
void Set4Momentum(const G4LorentzVector &a4Momentum);
const G4LorentzVector & Get4Momentum() const;
void Set4Momentum(const G4LorentzVector &a4Momentum);
const G4LorentzVector & Get4Momentum() const;
void SetDefinition(const G4ParticleDefinition *aDefinition);
const G4ParticleDefinition * GetDefinition() const;
void SetDefinition(const G4ParticleDefinition *aDefinition);
const G4ParticleDefinition * GetDefinition() const;
void IncrementCollisionCount(G4int aCount);
void SetCollisionCount(G4int aCount);
void IncrementCollisionCount(G4int aCount);
void SetCollisionCount(G4int aCount);
void SetTimeOfCreation(G4double aTime);
G4double GetTimeOfCreation();
void SetTimeOfCreation(G4double aTime);
G4double GetTimeOfCreation();
void SetPosition(const G4ThreeVector &aPosition);
const G4ThreeVector & GetPosition() const;
void SetPosition(const G4ThreeVector &aPosition);
const G4ThreeVector & GetPosition() const;
void SetStatus(const G4int aStatus);
G4int GetStatus();
void SetStatus(const G4int aStatus);
G4int GetStatus();
virtual void SplitUp() = 0;
virtual void SetFirstParton(G4int PDGcode) = 0;
virtual void SetSecondParton(G4int PDGcode)= 0;
virtual G4Parton * GetNextParton() = 0 ;
virtual G4Parton * GetNextAntiParton() = 0 ;
G4bool IsSplit() { return isSplit;}
virtual void SplitUp() = 0;
virtual void SetFirstParton(G4int PDGcode) = 0;
virtual void SetSecondParton(G4int PDGcode)= 0;
virtual G4Parton * GetNextParton() = 0 ;
virtual G4Parton * GetNextAntiParton() = 0 ;
G4bool IsSplit() { return isSplit;}
G4int GetSoftCollisionCount();
G4int GetSoftCollisionCount();
protected:
void Splitting() {isSplit = true;}
void Splitting() {isSplit = true;}
private:
G4VSplitableHadron(const G4VSplitableHadron &right);
const G4VSplitableHadron & operator=(const G4VSplitableHadron &right);
G4VSplitableHadron(const G4VSplitableHadron &right);
const G4VSplitableHadron & operator=(const G4VSplitableHadron &right);
private:
const G4ParticleDefinition *theDefinition;
const G4ParticleDefinition *theDefinition;
G4LorentzVector the4Momentum;
G4LorentzVector the4Momentum;
G4double TimeOfCreation;
G4ThreeVector thePosition;
G4int theCollisionCount;
G4int curStatus;
G4bool isSplit;
G4double TimeOfCreation;
G4ThreeVector thePosition;
G4int theCollisionCount;
G4int curStatus;
G4bool isSplit;
};
inline G4int G4VSplitableHadron::GetSoftCollisionCount()
{
return theCollisionCount;
return theCollisionCount;
}
inline void G4VSplitableHadron::SetCollisionCount(G4int aCount)
{
theCollisionCount = aCount;
theCollisionCount = aCount;
}
inline void G4VSplitableHadron::Set4Momentum(const G4LorentzVector &a4Momentum)
{
the4Momentum=a4Momentum;
the4Momentum=a4Momentum;
}
inline const G4LorentzVector & G4VSplitableHadron::Get4Momentum() const
{
return the4Momentum;
return the4Momentum;
}
inline void G4VSplitableHadron::SetDefinition(const G4ParticleDefinition *aDefinition)
{
theDefinition=aDefinition;
theDefinition=aDefinition;
}
inline const G4ParticleDefinition * G4VSplitableHadron::GetDefinition() const
{
return theDefinition;
return theDefinition;
}
inline void G4VSplitableHadron::IncrementCollisionCount(G4int aCount)
{
theCollisionCount += aCount;
theCollisionCount += aCount;
}
inline void G4VSplitableHadron::SetTimeOfCreation(G4double aTime)
{
TimeOfCreation=aTime;
TimeOfCreation=aTime;
}
inline G4double G4VSplitableHadron::GetTimeOfCreation()
{
return TimeOfCreation;
return TimeOfCreation;
}
inline void G4VSplitableHadron::SetPosition(const G4ThreeVector &aPosition)
{
thePosition=aPosition;
thePosition=aPosition;
}
inline const G4ThreeVector & G4VSplitableHadron::GetPosition() const
{
return thePosition;
return thePosition;
}
inline void G4VSplitableHadron::SetStatus(G4int aStatus)
{
curStatus=aStatus;
curStatus=aStatus;
}
inline G4int G4VSplitableHadron::GetStatus()
{
return curStatus;
return curStatus;
}
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VStringFragmentation.hh 67999 2013-03-13 11:14:32Z gcosmo $
// $Id: G4VStringFragmentation.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4VStringFragmentation_h
#define G4VStringFragmentation_h 1
@@ -36,17 +36,17 @@ class G4KineticTrackVector;
class G4VStringFragmentation
{
public:
G4VStringFragmentation();
virtual ~G4VStringFragmentation();
G4VStringFragmentation();
virtual ~G4VStringFragmentation();
private:
G4VStringFragmentation(const G4VStringFragmentation &right);
const G4VStringFragmentation & operator=(const G4VStringFragmentation &right);
int operator==(const G4VStringFragmentation &right) const;
int operator!=(const G4VStringFragmentation &right) const;
G4VStringFragmentation(const G4VStringFragmentation &right);
const G4VStringFragmentation & operator=(const G4VStringFragmentation &right);
int operator==(const G4VStringFragmentation &right) const;
int operator!=(const G4VStringFragmentation &right) const;
public:
virtual G4KineticTrackVector * FragmentStrings(const G4ExcitedStringVector * theStrings)=0;
virtual G4KineticTrackVector * FragmentStrings(const G4ExcitedStringVector * theStrings)=0;
private:
@@ -54,4 +54,3 @@ class G4VStringFragmentation
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VertexCode.hh 67999 2013-03-13 11:14:32Z gcosmo $
// $Id: G4VertexCode.hh 100828 2016-11-02 15:25:59Z gcosmo $
//
#ifndef G4VertexCode_h
#define G4VertexCode_h 1
@@ -32,14 +32,12 @@
class G4VertexCode
{
public:
G4VertexCode(G4String & aCode);
void SetCode(G4String & aCode);
G4String GetCode();
private:
G4String theCode;
};
@@ -54,3 +52,4 @@ inline G4String G4VertexCode::GetCode()
}
#endif