Geant4-11
Public Member Functions | Private Attributes
G4QMDParticipant Class Reference

#include <G4QMDParticipant.hh>

Public Member Functions

 G4QMDParticipant (const G4ParticleDefinition *, G4ThreeVector, G4ThreeVector)
 
G4LorentzVector Get4Momentum ()
 
G4int GetBaryonNumber ()
 
G4int GetChargeInUnitOfEplus ()
 
const G4ParticleDefinition * GetDefinition ()
 
G4double GetKineticEnergy ()
 
G4double GetMass ()
 
G4ThreeVector GetMomentum ()
 
G4int GetNuc ()
 
G4ThreeVector GetPosition ()
 
G4bool IsThisHit ()
 
G4bool IsThisProjectile ()
 
G4bool IsThisTarget ()
 
void SetDefinition (const G4ParticleDefinition *pd)
 
void SetHitMark ()
 
void SetMomentum (G4ThreeVector p)
 
void SetPosition (G4ThreeVector r)
 
void SetProjectile ()
 
void SetTarget ()
 
void UnsetHitMark ()
 
void UnsetInitialMark ()
 
 ~G4QMDParticipant ()
 

Private Attributes

const G4ParticleDefinition * definition
 
G4bool hit
 
G4ThreeVector momentum
 
G4ThreeVector position
 
G4bool projectile
 
G4bool target
 

Detailed Description

Definition at line 48 of file G4QMDParticipant.hh.

Constructor & Destructor Documentation

◆ G4QMDParticipant()

G4QMDParticipant::G4QMDParticipant ( const G4ParticleDefinition *  pd,
G4ThreeVector  p,
G4ThreeVector  r 
)

Definition at line 30 of file G4QMDParticipant.cc.

31: definition ( pd )
32, momentum ( p )
33, position ( r )
34, projectile ( false )
35, target ( false )
36, hit ( false )
37{
38 ;
39}
G4ThreeVector momentum
G4ThreeVector position
const G4ParticleDefinition * definition

◆ ~G4QMDParticipant()

G4QMDParticipant::~G4QMDParticipant ( )

Definition at line 43 of file G4QMDParticipant.cc.

44{
45 ;
46}

Member Function Documentation

◆ Get4Momentum()

G4LorentzVector G4QMDParticipant::Get4Momentum ( )

◆ GetBaryonNumber()

G4int G4QMDParticipant::GetBaryonNumber ( )
inline

◆ GetChargeInUnitOfEplus()

G4int G4QMDParticipant::GetChargeInUnitOfEplus ( )
inline

◆ GetDefinition()

const G4ParticleDefinition * G4QMDParticipant::GetDefinition ( )
inline

◆ GetKineticEnergy()

G4double G4QMDParticipant::GetKineticEnergy ( )
inline

Definition at line 68 of file G4QMDParticipant.hh.

68{ return Get4Momentum().e() - GetMass(); };
G4LorentzVector Get4Momentum()

References CLHEP::HepLorentzVector::e(), Get4Momentum(), and GetMass().

◆ GetMass()

G4double G4QMDParticipant::GetMass ( )
inline

◆ GetMomentum()

G4ThreeVector G4QMDParticipant::GetMomentum ( void  )
inline

◆ GetNuc()

G4int G4QMDParticipant::GetNuc ( )
inline

◆ GetPosition()

G4ThreeVector G4QMDParticipant::GetPosition ( void  )
inline

◆ IsThisHit()

G4bool G4QMDParticipant::IsThisHit ( )
inline

Definition at line 77 of file G4QMDParticipant.hh.

77{ return hit; }

References hit.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

◆ IsThisProjectile()

G4bool G4QMDParticipant::IsThisProjectile ( )
inline

Definition at line 82 of file G4QMDParticipant.hh.

82{ return projectile; }

References projectile.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

◆ IsThisTarget()

G4bool G4QMDParticipant::IsThisTarget ( )
inline

Definition at line 83 of file G4QMDParticipant.hh.

83{ return target; }

References target.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

◆ SetDefinition()

void G4QMDParticipant::SetDefinition ( const G4ParticleDefinition *  pd)
inline

◆ SetHitMark()

void G4QMDParticipant::SetHitMark ( )
inline

Definition at line 78 of file G4QMDParticipant.hh.

78{ hit = true; }

References hit.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

◆ SetMomentum()

void G4QMDParticipant::SetMomentum ( G4ThreeVector  p)
inline

◆ SetPosition()

void G4QMDParticipant::SetPosition ( G4ThreeVector  r)
inline

◆ SetProjectile()

void G4QMDParticipant::SetProjectile ( )
inline

Definition at line 80 of file G4QMDParticipant.hh.

80{ projectile = true; }

References projectile.

Referenced by G4QMDReaction::ApplyYourself().

◆ SetTarget()

void G4QMDParticipant::SetTarget ( )
inline

Definition at line 81 of file G4QMDParticipant.hh.

81{ target = true; }

References target.

Referenced by G4QMDReaction::ApplyYourself().

◆ UnsetHitMark()

void G4QMDParticipant::UnsetHitMark ( )
inline

Definition at line 76 of file G4QMDParticipant.hh.

76{ hit = false; }

References hit.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

◆ UnsetInitialMark()

void G4QMDParticipant::UnsetInitialMark ( )
inline

Definition at line 75 of file G4QMDParticipant.hh.

75{ projectile = false; target = false; }

References projectile, and target.

Referenced by G4QMDCollision::CalKinematicsOfBinaryCollisions().

Field Documentation

◆ definition

const G4ParticleDefinition* G4QMDParticipant::definition
private

◆ hit

G4bool G4QMDParticipant::hit
private

Definition at line 92 of file G4QMDParticipant.hh.

Referenced by IsThisHit(), SetHitMark(), and UnsetHitMark().

◆ momentum

G4ThreeVector G4QMDParticipant::momentum
private

Definition at line 87 of file G4QMDParticipant.hh.

Referenced by Get4Momentum(), GetMomentum(), and SetMomentum().

◆ position

G4ThreeVector G4QMDParticipant::position
private

Definition at line 88 of file G4QMDParticipant.hh.

Referenced by GetPosition().

◆ projectile

G4bool G4QMDParticipant::projectile
private

Definition at line 90 of file G4QMDParticipant.hh.

Referenced by IsThisProjectile(), SetProjectile(), and UnsetInitialMark().

◆ target

G4bool G4QMDParticipant::target
private

Definition at line 91 of file G4QMDParticipant.hh.

Referenced by IsThisTarget(), SetTarget(), and UnsetInitialMark().


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