source: trunk/source/processes/hadronic/models/parton_string/hadronization/include/G4FragmentingString.hh@ 880

Last change on this file since 880 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 4.6 KB
Line 
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: G4FragmentingString.hh,v 1.3 2006/06/29 20:54:44 gunter Exp $
28// GEANT4 tag $Name: geant4-09-01-patch-02 $
29//
30
31#ifndef G4FragmentingString_h
32#define G4FragmentingString_h 1
33
34// ------------------------------------------------------------
35// GEANT 4 class header file
36//
37// ---------------- G4FragmentingString ----------------
38// by Gunter Folger, September 2001.
39// class for an excited string used in Fragmention
40// ------------------------------------------------------------
41
42#include "G4ios.hh"
43#include "globals.hh"
44#include "G4ThreeVector.hh"
45#include "G4LorentzVector.hh"
46#include "G4ParticleDefinition.hh"
47
48class G4ExcitedString;
49
50class G4FragmentingString
51{
52
53 public:
54
55 G4FragmentingString(const G4FragmentingString &right);
56 G4FragmentingString(const G4ExcitedString &excited);
57 G4FragmentingString(const G4FragmentingString &old,
58 G4ParticleDefinition * newdecay,
59 const G4LorentzVector *momentum);
60
61 ~G4FragmentingString();
62
63 int operator==(const G4FragmentingString &right) const;
64
65 int operator!=(const G4FragmentingString &right) const;
66
67
68 G4LorentzVector Get4Momentum() const;
69
70 G4ThreeVector StablePt();
71 G4ThreeVector DecayPt();
72
73 G4double LightConePlus();
74 G4double LightConeMinus();
75 G4double LightConeDecay();
76
77 G4double Mass() const;
78 G4double Mass2() const;
79
80
81 G4ParticleDefinition* GetLeftParton(void) const;
82 G4ParticleDefinition* GetRightParton(void) const;
83
84 G4ParticleDefinition* GetStableParton() const; // stable at the moment
85 G4ParticleDefinition* GetDecayParton() const; // currently involved in fragmentation
86
87 void SetLeftPartonStable();
88 void SetRightPartonStable();
89
90 G4int GetDecayDirection() const;
91
92 G4bool DecayIsQuark();
93 G4bool StableIsQuark();
94 G4bool FourQuarkString(void) const;
95
96
97 private:
98
99 G4ParticleDefinition *LeftParton, *RightParton;
100 G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!)
101 G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left!
102
103 G4ParticleDefinition * theStableParton, * theDecayParton;
104
105 enum DecaySide { None, Left, Right };
106 DecaySide decaying;
107};
108
109inline
110int G4FragmentingString::operator==(const G4FragmentingString &right) const
111{
112 return this == &right;
113}
114
115inline
116int G4FragmentingString::operator!=(const G4FragmentingString &right) const
117{
118 return this != &right;
119}
120
121
122inline
123G4ParticleDefinition * G4FragmentingString::GetStableParton() const
124{
125 return theStableParton;
126}
127
128inline
129G4ParticleDefinition * G4FragmentingString::GetDecayParton() const
130{
131 return theDecayParton;
132}
133
134inline
135G4ParticleDefinition* G4FragmentingString::GetLeftParton(void) const
136 {
137 return LeftParton;
138 }
139
140inline
141G4ParticleDefinition* G4FragmentingString::GetRightParton(void) const
142 {
143 return RightParton;
144 }
145
146
147
148#endif
149
150
Note: See TracBrowser for help on using the repository browser.