Geant4  10.02.p03
G4PartonPair Class Reference

#include <G4PartonPair.hh>

Collaboration diagram for G4PartonPair:

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

Private Member Functions

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

Private Attributes

G4PartonParton1
 
G4PartonParton2
 
G4int CollisionType
 
G4int Direction
 

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.

◆ anonymous enum

anonymous enum
Enumerator
PROJECTILE 
TARGET 

Definition at line 43 of file G4PartonPair.hh.

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  {
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  }
const G4LorentzVector & Get4Momentum() const
Definition: G4Parton.hh:140
static const G4double * P1[nN]
G4ParticleDefinition * GetDefinition()
Definition: G4Parton.hh:158
const G4String & GetParticleType() const
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4double GetSpinZ()
Definition: G4Parton.hh:95
G4int GetColour()
Definition: G4Parton.hh:89
static const G4double * P2[nN]
#define G4endl
Definition: G4ios.hh:61
G4Parton * Parton2
Definition: G4PartonPair.hh:68
static const double m
Definition: G4SIunits.hh:128
G4Parton * Parton1
Definition: G4PartonPair.hh:67
G4int CollisionType
Definition: G4PartonPair.hh:69
Here is the call graph for this function:

◆ ~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 89 of file G4PartonPair.hh.

90 {
91  return CollisionType;
92 }
G4int CollisionType
Definition: G4PartonPair.hh:69

◆ GetDirection()

G4int G4PartonPair::GetDirection ( )
inline

Definition at line 94 of file G4PartonPair.hh.

95 {
96  return Direction;
97 }
Here is the caller graph for this function:

◆ GetParton1()

G4Parton * G4PartonPair::GetParton1 ( void  )
inline

Definition at line 74 of file G4PartonPair.hh.

75 {
76  return Parton1;
77 }
G4Parton * Parton1
Definition: G4PartonPair.hh:67
Here is the caller graph for this function:

◆ GetParton2()

G4Parton * G4PartonPair::GetParton2 ( void  )
inline

Definition at line 79 of file G4PartonPair.hh.

80 {
81  return Parton2;
82 }
G4Parton * Parton2
Definition: G4PartonPair.hh:68
Here is the caller graph for this function:

◆ operator!=()

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

◆ operator==()

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

◆ SetCollisionType()

void G4PartonPair::SetCollisionType ( G4int  Type)
inline

Definition at line 84 of file G4PartonPair.hh.

85 {
86  CollisionType = Type;
87 }
G4int CollisionType
Definition: G4PartonPair.hh:69

◆ SetPartons()

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

Member Data Documentation

◆ CollisionType

G4int G4PartonPair::CollisionType
private

Definition at line 69 of file G4PartonPair.hh.

◆ Direction

G4int G4PartonPair::Direction
private

Definition at line 70 of file G4PartonPair.hh.

◆ Parton1

G4Parton* G4PartonPair::Parton1
private

Definition at line 67 of file G4PartonPair.hh.

◆ Parton2

G4Parton* G4PartonPair::Parton2
private

Definition at line 68 of file G4PartonPair.hh.


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