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

#include <G4QPartonPair.hh>

Public Types

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

Public Member Functions

 G4QPartonPair (G4QParton *P1, G4QParton *P2, G4int Type=0, G4int Direction=0)
 
 ~G4QPartonPair ()
 
G4int operator== (const G4QPartonPair &right) const
 
G4int operator!= (const G4QPartonPair &right) const
 
void SetPartons (G4QParton *P1, G4QParton *P2)
 
void SetCollisionType (G4int Type)
 
G4int GetCollisionType ()
 
G4QPartonGetParton1 ()
 
G4QPartonGetParton2 ()
 
G4int GetDirection ()
 

Detailed Description

Definition at line 50 of file G4QPartonPair.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIFFRACTIVE 
SOFT 
HARD 

Definition at line 53 of file G4QPartonPair.hh.

◆ anonymous enum

anonymous enum
Enumerator
PROJECTILE 
TARGET 

Definition at line 54 of file G4QPartonPair.hh.

Constructor & Destructor Documentation

◆ G4QPartonPair()

G4QPartonPair::G4QPartonPair ( G4QParton P1,
G4QParton P2,
G4int  Type = 0,
G4int  Direction = 0 
)

Definition at line 44 of file G4QPartonPair.cc.

45 : Parton1(P1), Parton2(P2), CollisionType(Type), Direction(aDirection) {}

◆ ~G4QPartonPair()

G4QPartonPair::~G4QPartonPair ( )

Definition at line 47 of file G4QPartonPair.cc.

47{}

Member Function Documentation

◆ GetCollisionType()

G4int G4QPartonPair::GetCollisionType ( )
inline

Definition at line 72 of file G4QPartonPair.hh.

72{return CollisionType;}

Referenced by G4QFragmentation::G4QFragmentation(), and G4QIonIonCollision::G4QIonIonCollision().

◆ GetDirection()

G4int G4QPartonPair::GetDirection ( )
inline

Definition at line 75 of file G4QPartonPair.hh.

75{return Direction;}

Referenced by G4QString::G4QString().

◆ GetParton1()

G4QParton * G4QPartonPair::GetParton1 ( )
inline

◆ GetParton2()

G4QParton * G4QPartonPair::GetParton2 ( )
inline

◆ operator!=()

G4int G4QPartonPair::operator!= ( const G4QPartonPair right) const
inline

Definition at line 63 of file G4QPartonPair.hh.

64 {
65 return (CollisionType == right.CollisionType &&
66 *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 0: 1;
67 }

◆ operator==()

G4int G4QPartonPair::operator== ( const G4QPartonPair right) const
inline

Definition at line 58 of file G4QPartonPair.hh.

59 {
60 return (CollisionType == right.CollisionType &&
61 *Parton1 == *right.Parton1 && *Parton2 == *right.Parton2) ? 1: 0;
62 }

◆ SetCollisionType()

void G4QPartonPair::SetCollisionType ( G4int  Type)
inline

Definition at line 70 of file G4QPartonPair.hh.

70{CollisionType = Type;}

◆ SetPartons()

void G4QPartonPair::SetPartons ( G4QParton P1,
G4QParton P2 
)
inline

Definition at line 69 of file G4QPartonPair.hh.

69{Parton1=P1; Parton2=P2;}

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