Geant4-11
Public Types | Public Member Functions | Private Member Functions | Private Attributes
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)
 
G4int GetCollisionType ()
 
G4int GetDirection ()
 
G4PartonGetParton1 (void)
 
G4PartonGetParton2 (void)
 
void SetCollisionType (G4int Type)
 
void SetPartons (G4Parton *P1, G4Parton *P2)
 
 ~G4PartonPair ()
 

Private Member Functions

 G4PartonPair (const G4PartonPair &right)
 
G4bool operator!= (const G4PartonPair &right) const
 
G4bool operator== (const G4PartonPair &right) const
 

Private Attributes

G4int CollisionType
 
G4int Direction
 
G4PartonParton1
 
G4PartonParton2
 

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() [1/2]

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

Definition at line 31 of file G4PartonPair.cc.

32{
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}
static const G4double * P1[nN]
static const G4double * P2[nN]
G4ProfileType Type
static constexpr double m
Definition: G4SIunits.hh:109
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4Parton * Parton2
Definition: G4PartonPair.hh:66
G4Parton * Parton1
Definition: G4PartonPair.hh:65
G4int CollisionType
Definition: G4PartonPair.hh:67

References CollisionType, Direction, G4cout, G4endl, m, P1, P2, Parton1, Parton2, PROJECTILE, and SOFT.

◆ ~G4PartonPair()

G4PartonPair::~G4PartonPair ( )

Definition at line 60 of file G4PartonPair.cc.

61{
62}

◆ G4PartonPair() [2/2]

G4PartonPair::G4PartonPair ( const G4PartonPair right)
private

Member Function Documentation

◆ GetCollisionType()

G4int G4PartonPair::GetCollisionType ( )
inline

Definition at line 86 of file G4PartonPair.hh.

87{
88 return CollisionType;
89}

References CollisionType.

◆ GetDirection()

G4int G4PartonPair::GetDirection ( )
inline

Definition at line 91 of file G4PartonPair.hh.

92{
93 return Direction;
94}

References Direction.

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

◆ GetParton1()

G4Parton * G4PartonPair::GetParton1 ( void  )
inline

◆ GetParton2()

G4Parton * G4PartonPair::GetParton2 ( void  )
inline

◆ operator!=()

G4bool G4PartonPair::operator!= ( const G4PartonPair right) const
private

◆ operator==()

G4bool G4PartonPair::operator== ( const G4PartonPair right) const
private

◆ SetCollisionType()

void G4PartonPair::SetCollisionType ( G4int  Type)
inline

Definition at line 81 of file G4PartonPair.hh.

82{
84}

References CollisionType.

◆ SetPartons()

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

Field Documentation

◆ CollisionType

G4int G4PartonPair::CollisionType
private

Definition at line 67 of file G4PartonPair.hh.

Referenced by G4PartonPair(), GetCollisionType(), and SetCollisionType().

◆ Direction

G4int G4PartonPair::Direction
private

Definition at line 68 of file G4PartonPair.hh.

Referenced by G4PartonPair(), and GetDirection().

◆ Parton1

G4Parton* G4PartonPair::Parton1
private

Definition at line 65 of file G4PartonPair.hh.

Referenced by G4PartonPair(), and GetParton1().

◆ Parton2

G4Parton* G4PartonPair::Parton2
private

Definition at line 66 of file G4PartonPair.hh.

Referenced by G4PartonPair(), and GetParton2().


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