Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4FragmentingString.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id$
28//
29
30#ifndef G4FragmentingString_h
31#define G4FragmentingString_h 1
32
33// ------------------------------------------------------------
34// GEANT 4 class header file
35//
36// ---------------- G4FragmentingString ----------------
37// by Gunter Folger, September 2001.
38// class for an excited string used in Fragmention
39// ------------------------------------------------------------
40
41#include "G4ios.hh"
42#include "globals.hh"
43#include "G4ThreeVector.hh"
44#include "G4LorentzVector.hh"
46
47class G4ExcitedString;
48
50{
51
52 public:
53
57 G4ParticleDefinition * newdecay,
58 const G4LorentzVector *momentum);
60 G4ParticleDefinition * newdecay);
61
63
65 int operator==(const G4FragmentingString &right) const;
66
67 int operator!=(const G4FragmentingString &right) const;
68
69
71
74
78
79 G4double Mass() const;
80 G4double Mass2() const;
81 G4double MassT2() const;
82
85
86 G4ParticleDefinition* GetStableParton() const; // stable at the moment
87 G4ParticleDefinition* GetDecayParton() const; // currently involved in fragmentation
88
91
93
96 G4bool FourQuarkString(void) const;
97
98
99 private:
100
101 G4ParticleDefinition *LeftParton, *RightParton;
102 G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!)
103 G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left!
104
105 G4ParticleDefinition * theStableParton, * theDecayParton;
106
107 enum DecaySide { None, Left, Right };
108 DecaySide decaying;
109};
110
111inline
113{
114 return this == &right;
115}
116
117inline
119{
120 return this != &right;
121}
122
123
124inline
126{
127 return theStableParton;
128}
129
130inline
132{
133 return theDecayParton;
134}
135
136inline
138 {
139 return LeftParton;
140 }
141
142inline
144 {
145 return RightParton;
146 }
147
148
149
150#endif
151
152
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
int operator==(const G4FragmentingString &right) const
G4ParticleDefinition * GetLeftParton(void) const
G4ParticleDefinition * GetRightParton(void) const
G4LorentzVector Get4Momentum() const
G4ParticleDefinition * GetDecayParton() const
int operator!=(const G4FragmentingString &right) const
G4int GetDecayDirection() const
G4ParticleDefinition * GetStableParton() const
G4FragmentingString & operator=(const G4FragmentingString &)
G4bool FourQuarkString(void) const