Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
Enumerator
DIFFRACTIVE 
SOFT 
HARD 

Definition at line 38 of file G4PartonPair.hh.

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 ( 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 }
static const G4double * P1[nN]
const G4LorentzVector & Get4Momentum() const
Definition: G4Parton.hh:143
G4ParticleDefinition * GetDefinition()
Definition: G4Parton.hh:161
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static constexpr double m
Definition: G4SIunits.hh:129
const G4String & GetParticleType() const
G4double GetSpinZ()
Definition: G4Parton.hh:96
G4int GetColour()
Definition: G4Parton.hh:90
static const G4double * P2[nN]
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4PartonPair::~G4PartonPair ( )

Definition at line 60 of file G4PartonPair.cc.

61 {
62 }

Member Function Documentation

G4int G4PartonPair::GetCollisionType ( )
inline

Definition at line 86 of file G4PartonPair.hh.

87 {
88  return CollisionType;
89 }
G4int G4PartonPair::GetDirection ( )
inline

Definition at line 91 of file G4PartonPair.hh.

92 {
93  return Direction;
94 }

Here is the caller graph for this function:

G4Parton * G4PartonPair::GetParton1 ( void  )
inline

Definition at line 71 of file G4PartonPair.hh.

72 {
73  return Parton1;
74 }

Here is the caller graph for this function:

G4Parton * G4PartonPair::GetParton2 ( void  )
inline

Definition at line 76 of file G4PartonPair.hh.

77 {
78  return Parton2;
79 }

Here is the caller graph for this function:

void G4PartonPair::SetCollisionType ( G4int  Type)
inline

Definition at line 81 of file G4PartonPair.hh.

82 {
83  CollisionType = Type;
84 }
void G4PartonPair::SetPartons ( G4Parton P1,
G4Parton P2 
)

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