Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VSplitableHadron Class Referenceabstract

#include <G4VSplitableHadron.hh>

+ Inheritance diagram for G4VSplitableHadron:

Public Member Functions

 G4VSplitableHadron ()
 
 G4VSplitableHadron (const G4ReactionProduct &aPrimary)
 
 G4VSplitableHadron (const G4Nucleon &aNucleon)
 
 G4VSplitableHadron (const G4VKineticNucleon *aNucleon)
 
virtual ~G4VSplitableHadron ()
 
G4bool operator== (const G4VSplitableHadron &right) const
 
G4bool operator!= (const G4VSplitableHadron &right) const
 
void Set4Momentum (const G4LorentzVector &a4Momentum)
 
const G4LorentzVectorGet4Momentum () const
 
void SetDefinition (const G4ParticleDefinition *aDefinition)
 
const G4ParticleDefinitionGetDefinition () const
 
void IncrementCollisionCount (G4int aCount)
 
void SetCollisionCount (G4int aCount)
 
void SetTimeOfCreation (G4double aTime)
 
G4double GetTimeOfCreation ()
 
void SetPosition (const G4ThreeVector &aPosition)
 
const G4ThreeVectorGetPosition () const
 
void SetStatus (const G4int aStatus)
 
G4int GetStatus ()
 
virtual void SplitUp ()=0
 
virtual void SetFirstParton (G4int PDGcode)=0
 
virtual void SetSecondParton (G4int PDGcode)=0
 
virtual G4PartonGetNextParton ()=0
 
virtual G4PartonGetNextAntiParton ()=0
 
G4bool IsSplit ()
 
G4int GetSoftCollisionCount ()
 

Protected Member Functions

void Splitting ()
 

Detailed Description

Definition at line 52 of file G4VSplitableHadron.hh.

Constructor & Destructor Documentation

◆ G4VSplitableHadron() [1/4]

G4VSplitableHadron::G4VSplitableHadron ( )

Definition at line 41 of file G4VSplitableHadron.cc.

42: theDefinition(NULL), TimeOfCreation(0.), theCollisionCount(0), curStatus(0), isSplit(false)
43{
44}

◆ G4VSplitableHadron() [2/4]

G4VSplitableHadron::G4VSplitableHadron ( const G4ReactionProduct aPrimary)

Definition at line 46 of file G4VSplitableHadron.cc.

47: TimeOfCreation(0.), theCollisionCount(0), curStatus(0), isSplit(false)
48{
49 theDefinition=aPrimary.GetDefinition();
50 the4Momentum.setVect(aPrimary.GetMomentum());
51 the4Momentum.setE(aPrimary.GetTotalEnergy());
52}
void setVect(const Hep3Vector &)
const G4ParticleDefinition * GetDefinition() const
G4double GetTotalEnergy() const
G4ThreeVector GetMomentum() const

◆ G4VSplitableHadron() [3/4]

G4VSplitableHadron::G4VSplitableHadron ( const G4Nucleon aNucleon)

Definition at line 54 of file G4VSplitableHadron.cc.

55{
56 TimeOfCreation = 0.;
57 theCollisionCount= 0;
58 isSplit = false;
59 theDefinition = aNucleon.GetParticleType();
60 the4Momentum = aNucleon.GetMomentum();
61 thePosition = aNucleon.GetPosition();
62 curStatus = 0;
63}
const G4ThreeVector & GetPosition() const
Definition: G4Nucleon.hh:138
const G4ParticleDefinition * GetParticleType() const
Definition: G4Nucleon.hh:83
const G4LorentzVector & GetMomentum() const
Definition: G4Nucleon.hh:71

◆ G4VSplitableHadron() [4/4]

G4VSplitableHadron::G4VSplitableHadron ( const G4VKineticNucleon aNucleon)

Definition at line 65 of file G4VSplitableHadron.cc.

66{
67 TimeOfCreation = 0.;
68 theCollisionCount= 0;
69 isSplit = false;
70 theDefinition = aNucleon->GetDefinition();
71 the4Momentum = aNucleon->Get4Momentum();
72 thePosition = aNucleon->GetPosition();
73 curStatus = 0;
74}
virtual const G4ParticleDefinition * GetDefinition() const =0
virtual const G4ThreeVector & GetPosition() const =0
virtual const G4LorentzVector & Get4Momentum() const =0

◆ ~G4VSplitableHadron()

G4VSplitableHadron::~G4VSplitableHadron ( )
virtual

Definition at line 88 of file G4VSplitableHadron.cc.

89{
90}

Member Function Documentation

◆ Get4Momentum()

◆ GetDefinition()

◆ GetNextAntiParton()

virtual G4Parton * G4VSplitableHadron::GetNextAntiParton ( )
pure virtual

◆ GetNextParton()

◆ GetPosition()

const G4ThreeVector & G4VSplitableHadron::GetPosition ( ) const
inline

◆ GetSoftCollisionCount()

G4int G4VSplitableHadron::GetSoftCollisionCount ( )
inline

Definition at line 112 of file G4VSplitableHadron.hh.

113{
114 return theCollisionCount;
115}

Referenced by G4QGSParticipants::DeterminePartonMomenta(), and G4QGSMSplitableHadron::SplitUp().

◆ GetStatus()

G4int G4VSplitableHadron::GetStatus ( )
inline

◆ GetTimeOfCreation()

G4double G4VSplitableHadron::GetTimeOfCreation ( )
inline

Definition at line 152 of file G4VSplitableHadron.hh.

153{
154 return TimeOfCreation;
155}

Referenced by G4DiffractiveExcitation::CreateStrings(), and G4ElasticHNScattering::ElasticScattering().

◆ IncrementCollisionCount()

void G4VSplitableHadron::IncrementCollisionCount ( G4int  aCount)
inline

◆ IsSplit()

G4bool G4VSplitableHadron::IsSplit ( )
inline

Definition at line 88 of file G4VSplitableHadron.hh.

88{ return isSplit;}

Referenced by G4DiffractiveSplitableHadron::SplitUp(), and G4QGSMSplitableHadron::SplitUp().

◆ operator!=()

G4bool G4VSplitableHadron::operator!= ( const G4VSplitableHadron right) const

Definition at line 106 of file G4VSplitableHadron.cc.

107{
108 return this!=&right;
109}

◆ operator==()

G4bool G4VSplitableHadron::operator== ( const G4VSplitableHadron right) const

Definition at line 101 of file G4VSplitableHadron.cc.

102{
103 return this==&right;
104}

◆ Set4Momentum()

◆ SetCollisionCount()

void G4VSplitableHadron::SetCollisionCount ( G4int  aCount)
inline

Definition at line 117 of file G4VSplitableHadron.hh.

118{
119 theCollisionCount = aCount;
120}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetDefinition()

void G4VSplitableHadron::SetDefinition ( const G4ParticleDefinition aDefinition)
inline

Definition at line 132 of file G4VSplitableHadron.hh.

133{
134 theDefinition=aDefinition;
135}

◆ SetFirstParton()

virtual void G4VSplitableHadron::SetFirstParton ( G4int  PDGcode)
pure virtual

◆ SetPosition()

void G4VSplitableHadron::SetPosition ( const G4ThreeVector aPosition)
inline

Definition at line 157 of file G4VSplitableHadron.hh.

158{
159 thePosition=aPosition;
160}

Referenced by G4ElasticHNScattering::ElasticScattering(), G4FTFParticipants::GetList(), and G4FTFParticipants::ShiftInteractionTime().

◆ SetSecondParton()

virtual void G4VSplitableHadron::SetSecondParton ( G4int  PDGcode)
pure virtual

◆ SetStatus()

void G4VSplitableHadron::SetStatus ( const G4int  aStatus)
inline

Definition at line 167 of file G4VSplitableHadron.hh.

168{
169 curStatus=aStatus;
170}

Referenced by G4FTFAnnihilation::Annihilate(), G4FTFParticipants::GetList(), and G4QGSParticipants::SelectInteractions().

◆ SetTimeOfCreation()

void G4VSplitableHadron::SetTimeOfCreation ( G4double  aTime)
inline

Definition at line 147 of file G4VSplitableHadron.hh.

148{
149 TimeOfCreation=aTime;
150}

Referenced by G4ElasticHNScattering::ElasticScattering(), and G4FTFParticipants::ShiftInteractionTime().

◆ Splitting()

void G4VSplitableHadron::Splitting ( )
inlineprotected

Definition at line 93 of file G4VSplitableHadron.hh.

93{isSplit = true;}

Referenced by G4DiffractiveSplitableHadron::SplitUp(), and G4QGSMSplitableHadron::SplitUp().

◆ SplitUp()


The documentation for this class was generated from the following files: