source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QSplitter.hh @ 1007

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

update to geant4.9.2

File size: 6.1 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: G4QSplitter.hh,v 1.2 2006/06/29 20:06:37 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02 $
29//
30//      ---------------- G4QSplitter ----------------
31//             by Mikhail Kossov, Avgust 2005.
32// header for Hadron-Hadron Splitter in parton pairs of the CHIPS Model
33// --------------------------------------------------------------------
34
35#ifndef G4QSplitter_h
36#define G4QSplitter_h 1
37
38#include "G4QuasmonVector.hh"
39//#include "G4RandomDirection.hh"
40// Call G4RandomDirection() (global) instead of old RndmDir() (local)
41
42class G4QSplitter 
43{
44public:
45  // projectile Hadron (probably as a part of proj Nucleus) colliding with a nuclear target
46  //G4QSplitter(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG);
47  // projectile Hadron (probably as a part of proj Nucleus) colliding with nuclear Cluster
48  G4QSplitter(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG,
49                                                                                                                const G4bool targEnvFlag);   // Cluster can have target nuclear environment
50  // projectile Cluster (probably as a part of proj Nucleus) colliding with nuclear target
51  //G4QSplitter(G4QNucleus projCluster, const G4bool projEnvFlag, const G4int targPDG);
52  // projectile Cluster (probably as a part of proj Nucleus) colliding with nuclear Cluster
53  //G4QSplitter(G4QNucleus projCluster, const G4bool projEnvFlag, const G4int targPDG,
54                //                                                                                              const G4bool targEnvFlag);   // Cluster can have target nuclear environment
55  G4QSplitter(const G4QSplitter& right);   // Copy the splitted system by value
56  G4QSplitter(G4QSplitter* right);         // Copy the splitted system by pointer
57  ~G4QSplitter();                          // Public Destructor
58
59  // Overloaded operators
60  const G4QSplitter& operator=(const G4QSplitter& right); // Copy the splitted system
61  G4bool operator==(const G4QSplitter &right) const; // Compare two splitted systems
62  G4bool operator!=(const G4QSplitter &right) const; // Compare two splitted systems
63
64  //Selectors
65  G4bool           GetProjEnvFlag(); // Flag of nuclear environment around the projectile
66  G4bool           GetTargEnvFlag(); // Flag of nuclear environment around the target
67  G4QuasmonVector* GetQuasmons();    // Get not decayed Quasmons (User must ClearAndDestr)
68  G4QHadronVector* GetHadrons();     // Get current outputHadrons (User must ClearAndDestr)
69  G4double         GetWeight();      // Get weight of the event (?)
70  G4int            GetNOfHadrons();  // Get the number of created G4QHadrons
71  G4int            GetNOfQuasmons(); // Get the number of created G4Quasmons
72  // Modifiers (Output: a Vector of Quasmons for fragmentation, some Quasms can be Hadrons)
73  G4QHadronVector* Fragment();       // User must clear and destroy the G4QHadronVector
74
75  // Static functions
76  //static void SetParameters(G4double StParName=0., G4bool stFlag=false);
77
78private: 
79  G4QHadronVector HadronizeQString();     // Main HadronizationFunction used in Fragment()
80  G4double RandomizeMomFractionFree(G4int nPart); // RandomMomFrac for nPart free partons
81  G4double RandomizeMomFractionString(G4int nPart); // RandomMomFrac for nPart free partons
82
83// Body
84private:
85  // Static Parameters
86  //static G4double    StParName;    // Example of static parameter (see SetParameters)
87
88  // Body
89  G4bool             theProjEnvFlag; // Projectile Environment Flag
90  G4bool             theTargEnvFlag; // Target Environment Flag
91  G4QContent         theProjQC;      // Projectile Quark Content
92  G4QContent         theTargQC;      // Target Quark Content
93  G4LorentzVector    theProj4Mom;    // Projectile 4-momentum
94  G4LorentzVector    theTarg4Mom;    // Target 4-momentum
95  // Internal Quasmons
96  G4QuasmonVector    theQuasmons;    // Vector of generated secondary Quasmons
97  // Output Hadrons
98  G4QHadronVector    theQHadrons;    // Vector of generated output Hadrons
99
100  // Internal working parameters
101  G4QCHIPSWorld*     theWorld;       // the CHIPS World
102  G4LorentzVector    tot4Mom;        // Total 4-momentum in the reaction
103  G4int              totCharge;      // Total charge in the reaction (for current control)
104  G4int              totBaryNum;     // Total baryon number in the reaction (for cur.cont.)
105  G4double           theWeight;      // Weight of the event
106};
107
108//General function makes Random Unit 3D-Vector
109G4ThreeVector RndmDir();             // @@ ??
110
111// Inline functions
112inline G4bool G4QSplitter::operator==(const G4QSplitter &rhs) const {return this == &rhs;}
113inline G4bool G4QSplitter::operator!=(const G4QSplitter &rhs) const {return this != &rhs;}
114
115#endif
Note: See TracBrowser for help on using the repository browser.