source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QuasmonString.hh @ 1196

Last change on this file since 1196 was 1055, checked in by garnier, 15 years ago

maj sur la beta de geant 4.9.3

File size: 5.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: G4QuasmonString.hh,v 1.5 2009/02/23 09:49:24 mkossov Exp $
28// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
29//
30//      ---------------- G4QuasmonString ----------------
31//             by Mikhail Kossov, October 2004.
32//      header for Hadron-Hadron String Interaction in the CHIPS Model
33// -------------------------------------------------------------------
34// Short description: The Quark-Gluon String can fragment in hadrons
35// (QGS), small hadronic clusters (HERWIG) or in unlimited in mass
36// Quasmons, defined by the G4QPartonPair. This class is made to
37// simulate the string fragmentation in Quasmons, which hadronize in
38// vacuuum or in nuclear environment.
39// -------------------------------------------------------------------
40
41#ifndef G4QuasmonString_h
42#define G4QuasmonString_h 1
43
44#include "G4QuasmonVector.hh"
45//#include "G4RandomDirection.hh"
46// Call G4RandomDirection() (global) instead of old RndmDir() (local)
47
48class G4QuasmonString 
49{
50public:
51  G4QuasmonString(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG,
52            const G4bool targEnvFlag);
53  G4QuasmonString(const G4QuasmonString& right);   // copy QString by value
54  G4QuasmonString(G4QuasmonString* right);         // copy QString by pointer
55  ~G4QuasmonString();                              // Public Destructor
56
57  // Overloaded operators
58  const G4QuasmonString& operator=(const G4QuasmonString& right);
59  G4bool operator==(const G4QuasmonString &right) const;
60  G4bool operator!=(const G4QuasmonString &right) const;
61
62  //Selectors
63  G4bool           GetProjEnvFlag();
64  G4bool           GetTargEnvFlag();
65  G4QuasmonVector* GetQuasmons();    // Get not decayed Quasmons (User must ClearAndDestr)
66  G4QHadronVector* GetHadrons();     // Get current outputHadrons (User must ClearAndDestr)
67  G4double         GetWeight();      // Get weight of the event
68  G4int            GetNOfHadrons();  // Get the number of created G4QHadrons
69  G4int            GetNOfQuasmons(); // Get the number of created G4Quasmons
70  // Modifiers (Output: a Vector of Quasmons for fragmentation, some Quasms can be Hadrons)
71  G4QHadronVector* Fragment();       // User must clear and destroy the G4QHadronVector
72
73  // Static functions
74  //static void SetParameters(G4double StParName=0., G4bool stFlag=false);
75
76private: 
77  G4QHadronVector HadronizeQString();     // Main HadronizationFunction used in Fragment()
78  G4double RandomizeMomFractionFree(G4int nPart); // RandomMomFrac for nPart free partons
79  G4double RandomizeMomFractionString(G4int nPart); // RandomMomFrac for nPart free partons
80
81// Body
82private:
83  // Static Parameters
84  //static G4double    StParName;    // Example of static parameter (see SetParameters)
85
86  // Body
87  G4bool             theProjEnvFlag; // Projectile Environment Flag
88  G4bool             theTargEnvFlag; // Target Environment Flag
89  G4QContent         theProjQC;      // Projectile Quark Content
90  G4QContent         theTargQC;      // Target Quark Content
91  G4LorentzVector    theProj4Mom;    // Projectile 4-momentum
92  G4LorentzVector    theTarg4Mom;    // Target 4-momentum
93  // Internal Quasmons
94  G4QuasmonVector    theQuasmons;    // Vector of generated secondary Quasmons
95  // Output Hadrons
96  G4QHadronVector    theQHadrons;    // Vector of generated output Hadrons
97
98  // Internal working parameters
99  G4QCHIPSWorld*     theWorld;       // the CHIPS World
100  G4LorentzVector    tot4Mom;        // Total 4-momentum in the reaction
101  G4int              totCharge;      // Total charge in the reaction (for current control)
102  G4int              totBaryNum;     // Total baryon number in the reaction (for cur.cont.)
103  G4double           theWeight;      // Weight of the event
104};
105
106//General function makes Random Unit 3D-Vector
107G4ThreeVector RndmDir();             // @@ ??
108
109// Inline functions
110inline G4bool G4QuasmonString::operator==(const G4QuasmonString &rhs) const
111  {return this == &rhs;}
112inline G4bool G4QuasmonString::operator!=(const G4QuasmonString &rhs) const
113  {return this != &rhs;}
114
115#endif
Note: See TracBrowser for help on using the repository browser.