Geant4  10.01.p02
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 69569 2013-05-08 13:19:50Z 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 
52  public:
53 
55  G4FragmentingString(const G4ExcitedString &excited);
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 
89  void SetLeftPartonStable();
90  void SetRightPartonStable();
91 
92  G4int GetDecayDirection() const;
93 
96  G4bool FourQuarkString(void) const;
97 
98 
99  private:
100 
102  G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!)
103  G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left!
104 
106 
107  enum DecaySide { None, Left, Right };
109 };
110 
111 inline
113 {
114  return this == &right;
115 }
116 
117 inline
119 {
120  return this != &right;
121 }
122 
123 
124 inline
126 {
127  return theStableParton;
128 }
129 
130 inline
132 {
133  return theDecayParton;
134 }
135 
136 inline
138  {
139  return LeftParton;
140  }
141 
142 inline
144  {
145  return RightParton;
146  }
147 
148 
149 
150 #endif
151 
152 
G4ParticleDefinition * RightParton
G4FragmentingString(const G4FragmentingString &right)
G4ParticleDefinition * GetRightParton(void) const
CLHEP::Hep3Vector G4ThreeVector
G4double Mass() const
int G4int
Definition: G4Types.hh:78
G4ParticleDefinition * GetDecayParton() const
G4ParticleDefinition * GetLeftParton(void) const
G4double Mass2() const
G4ParticleDefinition * theStableParton
G4ParticleDefinition * GetStableParton() const
bool G4bool
Definition: G4Types.hh:79
G4int GetDecayDirection() const
G4bool FourQuarkString(void) const
G4ParticleDefinition * LeftParton
int operator==(const G4FragmentingString &right) const
G4LorentzVector Get4Momentum() const
G4ParticleDefinition * theDecayParton
G4FragmentingString & operator=(const G4FragmentingString &)
G4double MassT2() const
double G4double
Definition: G4Types.hh:76
int operator!=(const G4FragmentingString &right) const
CLHEP::HepLorentzVector G4LorentzVector