Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PartonPair Class Reference

#include <G4PartonPair.hh>

Public Types

enum  { DIFFRACTIVE = 1 , SOFT = 2 , HARD = 3 }
 
enum  { PROJECTILE = 1 , TARGET = -1 }
 

Public Member Functions

 G4PartonPair (G4Parton *P1, G4Parton *P2, G4int Type, G4int Direction)
 
 ~G4PartonPair ()
 
void SetPartons (G4Parton *P1, G4Parton *P2)
 
void SetCollisionType (G4int Type)
 
G4int GetCollisionType ()
 
G4PartonGetParton1 (void)
 
G4PartonGetParton2 (void)
 
G4int GetDirection ()
 

Detailed Description

Definition at line 35 of file G4PartonPair.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIFFRACTIVE 
SOFT 
HARD 

Definition at line 38 of file G4PartonPair.hh.

38 {
39 DIFFRACTIVE = 1,
40 SOFT = 2,
41 HARD = 3
42 };

◆ anonymous enum

anonymous enum
Enumerator
PROJECTILE 
TARGET 

Definition at line 43 of file G4PartonPair.hh.

43 {
44 PROJECTILE = 1,
45 TARGET = -1
46 };

Constructor & Destructor Documentation

◆ G4PartonPair()

G4PartonPair::G4PartonPair ( G4Parton * P1,
G4Parton * P2,
G4int Type,
G4int Direction )

Definition at line 31 of file G4PartonPair.cc.

32{
33 CollisionType = Type;
34 Parton1 = P1;
35 Parton2 = P2;
36 Direction = aDirection;
37
38 #ifdef DEBUG_PartonPair
39 G4cout << "ctor G4PartonPair - "
40 << (aDirection==PROJECTILE ? "Projectile": "Target")
41 << (CollisionType==SOFT ? " Soft " : " Diffractive " ) << G4endl
42 << " Parton 1 name, type, spin-3, colour, 4-mom "
43 << P1->GetDefinition()->GetParticleName() << ", "
44 << P1->GetDefinition()->GetParticleType() << ", "
45 << P1->GetSpinZ() << ", "
46 << P1->GetColour() << ", "
47 << P1->Get4Momentum() << " " << G4endl
48 << " Parton 2 name, type, spin-3, colour, 4-mom "
49 << P2->GetDefinition()->GetParticleName() << ", "
50 << P2->GetDefinition()->GetParticleType() << ", "
51 << P2->GetSpinZ() << ", "
52 << P2->GetColour() << ", "
53 << P2->Get4Momentum() << G4endl
54 << " string mass, 4mom "
55 << (P1->Get4Momentum()+P2->Get4Momentum()).m() << " "
56 << (P1->Get4Momentum()+P2->Get4Momentum()) << G4endl;
57 #endif
58}
G4ProfileType Type
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleType() const
const G4String & GetParticleName() const
G4double GetSpinZ()
Definition G4Parton.hh:96
G4ParticleDefinition * GetDefinition()
Definition G4Parton.hh:161
G4int GetColour()
Definition G4Parton.hh:90
const G4LorentzVector & Get4Momentum() const
Definition G4Parton.hh:143

◆ ~G4PartonPair()

G4PartonPair::~G4PartonPair ( )

Definition at line 60 of file G4PartonPair.cc.

61{
62}

Member Function Documentation

◆ GetCollisionType()

G4int G4PartonPair::GetCollisionType ( )
inline

Definition at line 86 of file G4PartonPair.hh.

87{
88 return CollisionType;
89}

◆ GetDirection()

G4int G4PartonPair::GetDirection ( )
inline

Definition at line 91 of file G4PartonPair.hh.

92{
93 return Direction;
94}

Referenced by G4DiffractiveStringBuilder::BuildString(), and G4SoftStringBuilder::BuildString().

◆ GetParton1()

G4Parton * G4PartonPair::GetParton1 ( void )
inline

◆ GetParton2()

G4Parton * G4PartonPair::GetParton2 ( void )
inline

◆ SetCollisionType()

void G4PartonPair::SetCollisionType ( G4int Type)
inline

Definition at line 81 of file G4PartonPair.hh.

82{
83 CollisionType = Type;
84}

◆ SetPartons()

void G4PartonPair::SetPartons ( G4Parton * P1,
G4Parton * P2 )

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