Geant4  10.02.p03
G4QMDParticipant Class Reference

#include <G4QMDParticipant.hh>

Collaboration diagram for G4QMDParticipant:

Public Member Functions

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

Private Attributes

const G4ParticleDefinitiondefinition
 
G4ThreeVector momentum
 
G4ThreeVector position
 
G4bool projectile
 
G4bool target
 
G4bool hit
 

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 }
const G4ParticleDefinition * definition
G4ThreeVector position
G4ThreeVector momentum

◆ ~G4QMDParticipant()

G4QMDParticipant::~G4QMDParticipant ( )

Definition at line 43 of file G4QMDParticipant.cc.

44 {
45  ;
46 }

Member Function Documentation

◆ Get4Momentum()

G4LorentzVector G4QMDParticipant::Get4Momentum ( )

Definition at line 50 of file G4QMDParticipant.cc.

51 {
52  G4LorentzVector p4 ( momentum , std::sqrt ( G4Pow::GetInstance()->powN ( definition->GetPDGMass()/GeV , 2 ) + momentum*momentum ) );
53  return p4;
54 }
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
static const double GeV
Definition: G4SIunits.hh:214
const G4ParticleDefinition * definition
G4ThreeVector momentum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBaryonNumber()

G4int G4QMDParticipant::GetBaryonNumber ( )
inline

Definition at line 70 of file G4QMDParticipant.hh.

70 { return definition->GetBaryonNumber(); };
const G4ParticleDefinition * definition
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetChargeInUnitOfEplus()

G4int G4QMDParticipant::GetChargeInUnitOfEplus ( )
inline

Definition at line 73 of file G4QMDParticipant.hh.

73 { return int ( definition->GetPDGCharge()/CLHEP::eplus ); };
static const double eplus
const G4ParticleDefinition * definition
G4double GetPDGCharge() const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDefinition()

const G4ParticleDefinition* G4QMDParticipant::GetDefinition ( )
inline

Definition at line 56 of file G4QMDParticipant.hh.

56 { return definition; };
const G4ParticleDefinition * definition
Here is the caller graph for this function:

◆ GetKineticEnergy()

G4double G4QMDParticipant::GetKineticEnergy ( )
inline

Definition at line 68 of file G4QMDParticipant.hh.

68 { return Get4Momentum().e() - GetMass(); };
G4LorentzVector Get4Momentum()
Here is the call graph for this function:

◆ GetMass()

G4double G4QMDParticipant::GetMass ( )
inline

Definition at line 64 of file G4QMDParticipant.hh.

64 { return definition->GetPDGMass()/CLHEP::GeV; };
static const double GeV
const G4ParticleDefinition * definition
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMomentum()

G4ThreeVector G4QMDParticipant::GetMomentum ( void  )
inline

Definition at line 62 of file G4QMDParticipant.hh.

62 { return momentum; };
G4ThreeVector momentum
Here is the caller graph for this function:

◆ GetNuc()

G4int G4QMDParticipant::GetNuc ( )
inline

Definition at line 71 of file G4QMDParticipant.hh.

71 { return definition->GetBaryonNumber(); };
const G4ParticleDefinition * definition
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPosition()

G4ThreeVector G4QMDParticipant::GetPosition ( void  )
inline

Definition at line 59 of file G4QMDParticipant.hh.

59 { return position; };
G4ThreeVector position
Here is the caller graph for this function:

◆ IsThisHit()

G4bool G4QMDParticipant::IsThisHit ( )
inline

Definition at line 77 of file G4QMDParticipant.hh.

77 { return hit; }
Here is the caller graph for this function:

◆ IsThisProjectile()

G4bool G4QMDParticipant::IsThisProjectile ( )
inline

Definition at line 82 of file G4QMDParticipant.hh.

82 { return projectile; }
Here is the caller graph for this function:

◆ IsThisTarget()

G4bool G4QMDParticipant::IsThisTarget ( )
inline

Definition at line 83 of file G4QMDParticipant.hh.

83 { return target; }
Here is the caller graph for this function:

◆ SetDefinition()

void G4QMDParticipant::SetDefinition ( const G4ParticleDefinition pd)
inline

Definition at line 55 of file G4QMDParticipant.hh.

55 { definition = pd; };
const G4ParticleDefinition * definition
Here is the caller graph for this function:

◆ SetHitMark()

void G4QMDParticipant::SetHitMark ( )
inline

Definition at line 78 of file G4QMDParticipant.hh.

78 { hit = true; }
Here is the caller graph for this function:

◆ SetMomentum()

void G4QMDParticipant::SetMomentum ( G4ThreeVector  p)
inline

Definition at line 61 of file G4QMDParticipant.hh.

61 { momentum = p; };
G4ThreeVector momentum
Here is the caller graph for this function:

◆ SetPosition()

void G4QMDParticipant::SetPosition ( G4ThreeVector  r)
inline

Definition at line 58 of file G4QMDParticipant.hh.

58 { position = r; };
Here is the caller graph for this function:

◆ SetProjectile()

void G4QMDParticipant::SetProjectile ( )
inline

Definition at line 80 of file G4QMDParticipant.hh.

80 { projectile = true; }
Here is the caller graph for this function:

◆ SetTarget()

void G4QMDParticipant::SetTarget ( )
inline

Definition at line 81 of file G4QMDParticipant.hh.

81 { target = true; }
Here is the caller graph for this function:

◆ UnsetHitMark()

void G4QMDParticipant::UnsetHitMark ( )
inline

Definition at line 76 of file G4QMDParticipant.hh.

76 { hit = false; }
Here is the caller graph for this function:

◆ UnsetInitialMark()

void G4QMDParticipant::UnsetInitialMark ( )
inline

Definition at line 75 of file G4QMDParticipant.hh.

75 { projectile = false; target = false; }
Here is the caller graph for this function:

Member Data Documentation

◆ definition

const G4ParticleDefinition* G4QMDParticipant::definition
private

Definition at line 86 of file G4QMDParticipant.hh.

◆ hit

G4bool G4QMDParticipant::hit
private

Definition at line 92 of file G4QMDParticipant.hh.

◆ momentum

G4ThreeVector G4QMDParticipant::momentum
private

Definition at line 87 of file G4QMDParticipant.hh.

◆ position

G4ThreeVector G4QMDParticipant::position
private

Definition at line 88 of file G4QMDParticipant.hh.

◆ projectile

G4bool G4QMDParticipant::projectile
private

Definition at line 90 of file G4QMDParticipant.hh.

◆ target

G4bool G4QMDParticipant::target
private

Definition at line 91 of file G4QMDParticipant.hh.


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