Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4QMDParticipant Class Reference

#include <G4QMDParticipant.hh>

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 ()
 

Detailed Description

Definition at line 48 of file G4QMDParticipant.hh.

Constructor & Destructor Documentation

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 XML_Char * target
Definition: expat.h:268
G4QMDParticipant::~G4QMDParticipant ( )

Definition at line 43 of file G4QMDParticipant.cc.

44 {
45  ;
46 }

Member Function Documentation

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
G4double GetPDGMass() const
static constexpr double GeV
Definition: G4SIunits.hh:217

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4QMDParticipant::GetBaryonNumber ( )
inline

Definition at line 70 of file G4QMDParticipant.hh.

70 { return definition->GetBaryonNumber(); };

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4QMDParticipant::GetChargeInUnitOfEplus ( )
inline

Definition at line 73 of file G4QMDParticipant.hh.

73 { return int ( definition->GetPDGCharge()/CLHEP::eplus ); };
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static constexpr double eplus
G4double GetPDGCharge() const

Here is the call graph for this function:

Here is the caller graph for this function:

const G4ParticleDefinition* G4QMDParticipant::GetDefinition ( )
inline

Definition at line 56 of file G4QMDParticipant.hh.

56 { return definition; };

Here is the caller graph for this function:

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:

G4double G4QMDParticipant::GetMass ( )
inline

Definition at line 64 of file G4QMDParticipant.hh.

64 { return definition->GetPDGMass()/CLHEP::GeV; };
static constexpr double GeV
G4double GetPDGMass() const

Here is the call graph for this function:

Here is the caller graph for this function:

G4ThreeVector G4QMDParticipant::GetMomentum ( void  )
inline

Definition at line 62 of file G4QMDParticipant.hh.

62 { return momentum; };

Here is the caller graph for this function:

G4int G4QMDParticipant::GetNuc ( )
inline

Definition at line 71 of file G4QMDParticipant.hh.

71 { return definition->GetBaryonNumber(); };

Here is the call graph for this function:

Here is the caller graph for this function:

G4ThreeVector G4QMDParticipant::GetPosition ( void  )
inline

Definition at line 59 of file G4QMDParticipant.hh.

59 { return position; };

Here is the caller graph for this function:

G4bool G4QMDParticipant::IsThisHit ( )
inline

Definition at line 77 of file G4QMDParticipant.hh.

77 { return hit; }

Here is the caller graph for this function:

G4bool G4QMDParticipant::IsThisProjectile ( )
inline

Definition at line 82 of file G4QMDParticipant.hh.

82 { return projectile; }

Here is the caller graph for this function:

G4bool G4QMDParticipant::IsThisTarget ( )
inline

Definition at line 83 of file G4QMDParticipant.hh.

83 { return target; }
const XML_Char * target
Definition: expat.h:268

Here is the caller graph for this function:

void G4QMDParticipant::SetDefinition ( const G4ParticleDefinition pd)
inline

Definition at line 55 of file G4QMDParticipant.hh.

55 { definition = pd; };

Here is the caller graph for this function:

void G4QMDParticipant::SetHitMark ( )
inline

Definition at line 78 of file G4QMDParticipant.hh.

78 { hit = true; }

Here is the caller graph for this function:

void G4QMDParticipant::SetMomentum ( G4ThreeVector  p)
inline

Definition at line 61 of file G4QMDParticipant.hh.

61 { momentum = p; };
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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:

void G4QMDParticipant::SetProjectile ( )
inline

Definition at line 80 of file G4QMDParticipant.hh.

80 { projectile = true; }

Here is the caller graph for this function:

void G4QMDParticipant::SetTarget ( )
inline

Definition at line 81 of file G4QMDParticipant.hh.

81 { target = true; }
const XML_Char * target
Definition: expat.h:268

Here is the caller graph for this function:

void G4QMDParticipant::UnsetHitMark ( )
inline

Definition at line 76 of file G4QMDParticipant.hh.

76 { hit = false; }

Here is the caller graph for this function:

void G4QMDParticipant::UnsetInitialMark ( )
inline

Definition at line 75 of file G4QMDParticipant.hh.

75 { projectile = false; target = false; }
const XML_Char * target
Definition: expat.h:268

Here is the caller graph for this function:


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