Geant4 11.1.1
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 ()
 
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:140
const G4ParticleDefinition * GetParticleType() const
Definition: G4Nucleon.hh:85
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 110 of file G4VSplitableHadron.hh.

111{
112 return theCollisionCount;
113}

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

◆ GetStatus()

G4int G4VSplitableHadron::GetStatus ( )
inline

◆ GetTimeOfCreation()

G4double G4VSplitableHadron::GetTimeOfCreation ( )
inline

Definition at line 150 of file G4VSplitableHadron.hh.

151{
152 return TimeOfCreation;
153}

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

◆ IncrementCollisionCount()

void G4VSplitableHadron::IncrementCollisionCount ( G4int  aCount)
inline

◆ IsSplit()

G4bool G4VSplitableHadron::IsSplit ( )
inline

◆ 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 115 of file G4VSplitableHadron.hh.

116{
117 theCollisionCount = aCount;
118}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetDefinition()

void G4VSplitableHadron::SetDefinition ( const G4ParticleDefinition aDefinition)
inline

Definition at line 130 of file G4VSplitableHadron.hh.

131{
132 theDefinition=aDefinition;
133}

◆ SetFirstParton()

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

◆ SetPosition()

void G4VSplitableHadron::SetPosition ( const G4ThreeVector aPosition)
inline

Definition at line 155 of file G4VSplitableHadron.hh.

156{
157 thePosition=aPosition;
158}

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 165 of file G4VSplitableHadron.hh.

166{
167 curStatus=aStatus;
168}

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

◆ SetTimeOfCreation()

void G4VSplitableHadron::SetTimeOfCreation ( G4double  aTime)
inline

Definition at line 145 of file G4VSplitableHadron.hh.

146{
147 TimeOfCreation=aTime;
148}

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

◆ Splitting()

void G4VSplitableHadron::Splitting ( )
inline

Definition at line 92 of file G4VSplitableHadron.hh.

92{isSplit = true;}

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

◆ SplitUp()


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