Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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: G4FragmentingString.hh 100828 2016-11-02 15:25:59Z gcosmo $
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"
45 #include "G4ParticleDefinition.hh"
46 
47 class G4ExcitedString;
48 
50 {
51  public:
52 
54  G4FragmentingString(const G4ExcitedString &excited);
56  G4ParticleDefinition * newdecay,
57  const G4LorentzVector *momentum);
59  G4ParticleDefinition * newdecay);
60 
62 
64  int operator==(const G4FragmentingString &right) const;
65 
66  int operator!=(const G4FragmentingString &right) const;
67 
69 
72 
76 
77  G4double Mass() const;
78  G4double Mass2() const;
79  G4double MassT2() const;
80 
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 
94  G4bool FourQuarkString(void) const;
95 
96  private:
97 
98  G4ParticleDefinition *LeftParton, *RightParton;
99  G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!)
100  G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left!
101 
102  G4ParticleDefinition * theStableParton, * theDecayParton;
103 
104  enum DecaySide { None, Left, Right };
105  DecaySide decaying;
106 };
107 
108 inline
110 {
111  return this == &right;
112 }
113 
114 inline
116 {
117  return this != &right;
118 }
119 
120 
121 inline
123 {
124  return theStableParton;
125 }
126 
127 inline
129 {
130  return theDecayParton;
131 }
132 
133 inline
135 {
136  return LeftParton;
137 }
138 
139 inline
141 {
142  return RightParton;
143 }
144 
145 #endif
146 
G4FragmentingString(const G4FragmentingString &right)
G4ParticleDefinition * GetRightParton(void) const
G4double Mass() const
int G4int
Definition: G4Types.hh:78
G4ParticleDefinition * GetDecayParton() const
G4ParticleDefinition * GetLeftParton(void) const
G4double Mass2() const
G4ParticleDefinition * GetStableParton() const
bool G4bool
Definition: G4Types.hh:79
G4int GetDecayDirection() const
G4bool FourQuarkString(void) const
int operator==(const G4FragmentingString &right) const
G4LorentzVector Get4Momentum() const
G4FragmentingString & operator=(const G4FragmentingString &)
G4double MassT2() const
double G4double
Definition: G4Types.hh:76
int operator!=(const G4FragmentingString &right) const