G4PartonPair Class Reference

#include <G4PartonPair.hh>


Public Types

 DIFFRACTIVE = 1
 SOFT = 2
 HARD = 3
 PROJECTILE = 1
 TARGET = -1
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

Enumerator:
DIFFRACTIVE 
SOFT 
HARD 

Definition at line 38 of file G4PartonPair.hh.

00038              {
00039                 DIFFRACTIVE = 1,
00040                 SOFT = 2,
00041                 HARD  = 3
00042         };

anonymous enum

Enumerator:
PROJECTILE 
TARGET 

Definition at line 43 of file G4PartonPair.hh.

00044         {
00045                 PROJECTILE = 1,
00046                 TARGET = -1
00047         };


Constructor & Destructor Documentation

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

Definition at line 31 of file G4PartonPair.cc.

References G4cout, G4endl, G4Parton::Get4Momentum(), G4Parton::GetColour(), G4Parton::GetDefinition(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetParticleType(), G4Parton::GetSpinZ(), PROJECTILE, and SOFT.

00032     {
00033     CollisionType = Type;
00034     Parton1 = P1;
00035     Parton2 = P2;
00036     Direction = aDirection;
00037 
00038 #ifdef DEBUG_PartonPair
00039     G4cout << "ctor G4PartonPair - " 
00040            << (aDirection==PROJECTILE ? "Projectile": "Target") 
00041            << (CollisionType==SOFT ? " Soft " : " Diffractive " ) << G4endl
00042            << "  Parton 1 name, type, spin-3, colour, 4-mom " 
00043            << P1->GetDefinition()->GetParticleName() << ", " 
00044            << P1->GetDefinition()->GetParticleType() << ", " 
00045            << P1->GetSpinZ() << ", "
00046            << P1->GetColour() << ", "
00047            << P1->Get4Momentum() << " " << G4endl
00048            << "  Parton 2 name, type, spin-3, colour, 4-mom " 
00049            << P2->GetDefinition()->GetParticleName() << ", " 
00050            << P2->GetDefinition()->GetParticleType() << ", " 
00051            << P2->GetSpinZ() << ", "
00052            << P2->GetColour() << ", "
00053            << P2->Get4Momentum() << G4endl
00054            << " string mass, 4mom " 
00055            << (P1->Get4Momentum()+P2->Get4Momentum()).m() << " "
00056            << (P1->Get4Momentum()+P2->Get4Momentum()) << G4endl;
00057 #endif      
00058     }

G4PartonPair::~G4PartonPair (  ) 

Definition at line 60 of file G4PartonPair.cc.

00061     {
00062     }


Member Function Documentation

G4int G4PartonPair::GetCollisionType (  )  [inline]

Definition at line 89 of file G4PartonPair.hh.

Referenced by G4QGSModel< ParticipantType >::GetStrings().

00090 {
00091         return CollisionType;
00092 }

G4int G4PartonPair::GetDirection (  )  [inline]

Definition at line 94 of file G4PartonPair.hh.

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

00095 {
00096         return Direction;
00097 }

G4Parton * G4PartonPair::GetParton1 ( void   )  [inline]

Definition at line 74 of file G4PartonPair.hh.

Referenced by G4SoftStringBuilder::BuildString(), G4DiffractiveStringBuilder::BuildString(), G4QGSParticipants::PerformDiffractiveCollisions(), and G4QGSParticipants::PerformSoftCollisions().

00075 {
00076         return Parton1;
00077 }

G4Parton * G4PartonPair::GetParton2 ( void   )  [inline]

Definition at line 79 of file G4PartonPair.hh.

Referenced by G4SoftStringBuilder::BuildString(), G4DiffractiveStringBuilder::BuildString(), G4QGSParticipants::PerformDiffractiveCollisions(), and G4QGSParticipants::PerformSoftCollisions().

00080 {
00081         return Parton2;
00082 }

void G4PartonPair::SetCollisionType ( G4int  Type  )  [inline]

Definition at line 84 of file G4PartonPair.hh.

00085 {
00086         CollisionType = Type;
00087 }

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


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:51 2013 for Geant4 by  doxygen 1.4.7