Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ()
 
int operator== (const G4VSplitableHadron &right) const
 
int 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 53 of file G4VSplitableHadron.hh.

Constructor & Destructor Documentation

G4VSplitableHadron::G4VSplitableHadron ( )

Definition at line 42 of file G4VSplitableHadron.cc.

43 : theDefinition(NULL), TimeOfCreation(0.), theCollisionCount(0), curStatus(0), isSplit(false)
44 {
45 }
G4VSplitableHadron::G4VSplitableHadron ( const G4ReactionProduct aPrimary)

Definition at line 47 of file G4VSplitableHadron.cc.

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

Here is the call graph for this function:

G4VSplitableHadron::G4VSplitableHadron ( const G4Nucleon aNucleon)

Definition at line 55 of file G4VSplitableHadron.cc.

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

Here is the call graph for this function:

G4VSplitableHadron::G4VSplitableHadron ( const G4VKineticNucleon aNucleon)

Definition at line 66 of file G4VSplitableHadron.cc.

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

Here is the call graph for this function:

G4VSplitableHadron::~G4VSplitableHadron ( )
virtual

Definition at line 89 of file G4VSplitableHadron.cc.

90 {
91 }

Member Function Documentation

const G4LorentzVector & G4VSplitableHadron::Get4Momentum ( ) const
inline

Definition at line 128 of file G4VSplitableHadron.hh.

129 {
130  return the4Momentum;
131 }

Here is the caller graph for this function:

const G4ParticleDefinition * G4VSplitableHadron::GetDefinition ( ) const
inline

Definition at line 138 of file G4VSplitableHadron.hh.

139 {
140  return theDefinition;
141 }

Here is the caller graph for this function:

virtual G4Parton* G4VSplitableHadron::GetNextAntiParton ( )
pure virtual

Implemented in G4QGSMSplitableHadron, and G4DiffractiveSplitableHadron.

Here is the caller graph for this function:

virtual G4Parton* G4VSplitableHadron::GetNextParton ( )
pure virtual

Implemented in G4QGSMSplitableHadron, and G4DiffractiveSplitableHadron.

Here is the caller graph for this function:

const G4ThreeVector & G4VSplitableHadron::GetPosition ( void  ) const
inline

Definition at line 163 of file G4VSplitableHadron.hh.

164 {
165  return thePosition;
166 }

Here is the caller graph for this function:

G4int G4VSplitableHadron::GetSoftCollisionCount ( )
inline

Definition at line 113 of file G4VSplitableHadron.hh.

114 {
115  return theCollisionCount;
116 }

Here is the caller graph for this function:

G4int G4VSplitableHadron::GetStatus ( )
inline

Definition at line 173 of file G4VSplitableHadron.hh.

174 {
175  return curStatus;
176 }

Here is the caller graph for this function:

G4double G4VSplitableHadron::GetTimeOfCreation ( )
inline

Definition at line 153 of file G4VSplitableHadron.hh.

154 {
155  return TimeOfCreation;
156 }

Here is the caller graph for this function:

void G4VSplitableHadron::IncrementCollisionCount ( G4int  aCount)
inline

Definition at line 143 of file G4VSplitableHadron.hh.

144 {
145  theCollisionCount += aCount;
146 }

Here is the caller graph for this function:

G4bool G4VSplitableHadron::IsSplit ( )
inline

Definition at line 89 of file G4VSplitableHadron.hh.

89 { return isSplit;}

Here is the caller graph for this function:

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

Definition at line 107 of file G4VSplitableHadron.cc.

108 {
109  return this!=&right;
110 }
int G4VSplitableHadron::operator== ( const G4VSplitableHadron right) const

Definition at line 102 of file G4VSplitableHadron.cc.

103 {
104  return this==&right;
105 }
void G4VSplitableHadron::Set4Momentum ( const G4LorentzVector a4Momentum)
inline

Definition at line 123 of file G4VSplitableHadron.hh.

124 {
125  the4Momentum=a4Momentum;
126 }

Here is the caller graph for this function:

void G4VSplitableHadron::SetCollisionCount ( G4int  aCount)
inline

Definition at line 118 of file G4VSplitableHadron.hh.

119 {
120  theCollisionCount = aCount;
121 }
void G4VSplitableHadron::SetDefinition ( const G4ParticleDefinition aDefinition)
inline

Definition at line 133 of file G4VSplitableHadron.hh.

134 {
135  theDefinition=aDefinition;
136 }

Here is the caller graph for this function:

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

Implemented in G4DiffractiveSplitableHadron, and G4QGSMSplitableHadron.

Here is the caller graph for this function:

void G4VSplitableHadron::SetPosition ( const G4ThreeVector aPosition)
inline

Definition at line 158 of file G4VSplitableHadron.hh.

159 {
160  thePosition=aPosition;
161 }

Here is the caller graph for this function:

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

Implemented in G4DiffractiveSplitableHadron, and G4QGSMSplitableHadron.

Here is the caller graph for this function:

void G4VSplitableHadron::SetStatus ( const G4int  aStatus)
inline

Definition at line 168 of file G4VSplitableHadron.hh.

169 {
170  curStatus=aStatus;
171 }

Here is the caller graph for this function:

void G4VSplitableHadron::SetTimeOfCreation ( G4double  aTime)
inline

Definition at line 148 of file G4VSplitableHadron.hh.

149 {
150  TimeOfCreation=aTime;
151 }

Here is the caller graph for this function:

void G4VSplitableHadron::Splitting ( )
inlineprotected

Definition at line 94 of file G4VSplitableHadron.hh.

94 {isSplit = true;}

Here is the caller graph for this function:

void G4VSplitableHadron::SplitUp ( )
pure virtual

Implemented in G4QGSMSplitableHadron, and G4DiffractiveSplitableHadron.

Definition at line 113 of file G4VSplitableHadron.cc.

114 {
115 }

Here is the caller graph for this function:


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