source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QFragmentation.hh @ 1055

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

maj sur la beta de geant 4.9.3

File size: 5.8 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: G4QFragmentation.hh,v 1.3 2009/02/23 09:49:24 mkossov Exp $
28// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
29//
30// -----------------------------------------------------------------------------
31//      GEANT 4 class header file
32//
33//                 History:
34//     Created by Mikhail Kossov, October 2006
35//     CHIPS QGS fragmentation class
36//     For comparison mirror member functions are taken from G4 classes:
37//     G4QGSParticipants
38//     G4QGSModels
39//     G4ExcitedStringDecay
40// -----------------------------------------------------------------------------
41// Short description: CHIPS string fragmentation class
42// -----------------------------------------------------------------------------
43//
44#ifndef G4QFragmentation_h
45#define G4QFragmentation_h 1
46
47#include "globals.hh"
48#include "G4QNucleus.hh"
49#include "Randomize.hh"
50#include "G4QHadronVector.hh"
51#include "G4ShortLivedConstructor.hh"
52#include "G4QInteractionVector.hh"
53#include "G4QPomeron.hh"
54#include "G4QPartonPairVector.hh"
55#include "G4QStringVector.hh"
56
57class G4QFragmentation
58{
59 public:
60  G4QFragmentation();
61  G4QFragmentation(const G4QFragmentation &right);
62  const G4QFragmentation& operator=(const G4QFragmentation &right);
63  virtual ~G4QFragmentation(); 
64
65  int operator==(const G4QFragmentation &right) const;
66  int operator!=(const G4QFragmentation &right) const;
67
68  G4QHadronVector* Scatter(const G4QNucleus& theNucleus, const G4QHadron& thePrimary);
69
70  void InitModel(const G4QNucleus& Nucleus, const G4QHadron& Projectile);
71
72  void Init(G4double theZ, G4double theA)
73  {
74    if(!theNucleus) theNucleus = new G4QNucleus(G4int(theZ),G4int(theA-theZ+.0001));
75    theNucleus->InitByPDG(90000000+G4int(theZ)*1000+G4int(theA-theZ+.0001));
76  }
77     
78  void SetNucleus(G4QNucleus* aNucleus) {theNucleus=aNucleus;}
79  G4QNucleus* GetWoundedNucleus() const {return theNucleus;}
80  G4bool ExciteDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const;
81  G4bool ExciteSingDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const;
82
83  G4QString* BuildString(G4QPartonPair* aPair)
84    {return new G4QString(aPair->GetParton1(),aPair->GetParton2(), aPair->GetDirection());}
85
86  G4QStringVector* GetStrings();
87  G4QHadronVector* FragmentStrings(const G4QStringVector* theStrings);
88  void DoLorentzBoost(G4ThreeVector aBoost) 
89  {
90    if(theNucleus) theNucleus->DoLorentzBoost(aBoost);
91    theBoost = aBoost;
92  }
93
94  G4QPartonPair* GetNextPartonPair();
95  void BuildInteractions(const G4QHadron& thePrimary);
96  void StartPartonPairLoop() {;} // @@ (? M.K.) Function which is doing nothing
97
98  // Static functions
99  static void SetParameters(G4int nCM, G4double thresh, G4double QGSMth, G4double radNuc,
100                            G4double SigPt, G4double extraM, G4double minM);
101 protected:
102  G4QHadron* SelectInteractions(const G4QHadron &thePrimary);
103  void SplitHadrons()
104     {for(unsigned i=0; i<theInteractions.size(); i++) theInteractions[i]->SplitHadrons();}
105  void PerformSoftCollisions();
106  void PerformDiffractiveCollisions();
107  G4bool IsSingleDiffractive()
108                  {G4bool result=false; if(G4UniformRand()<1.) result=true; return result;}
109  G4bool EnergyAndMomentumCorrector(G4QHadronVector* Output, G4LorentzVector& TotaMom);   
110  G4double ChooseX(G4double Xmin, G4double Xmax) const;
111  G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const;
112
113 private:
114  // static model parameters
115  static G4int    nCutMax; 
116  static G4double ThersholdParameter; 
117  static G4double QGSMThershold; 
118  static G4double theNucleonRadius;
119  // Parameters of diffractional fragmentation
120  static G4double widthOfPtSquare;   // width^2 of pt for string excitation
121  static G4double minExtraMass;      // minimum excitation mass
122  static G4double minmass;           // mean pion transverse mass; used for Xmin
123
124  // Body
125  G4QInteractionVector theInteractions;
126  G4QHadronVector      theTargets; 
127  G4QPartonPairVector  thePartonPairs;
128
129  G4int         ModelMode;
130  G4ThreeVector theBoost;                                // init as zero 3-vector (@@ M.K.)
131  G4QNucleus*   theNucleus;                              // init as zero (0)
132  G4ThreeVector theCurrentVelocity;                      // init as zero 3-vector (@@ M.K.)
133
134  enum {SOFT, DIFFRACTIVE};
135};
136
137#endif
Note: See TracBrowser for help on using the repository browser.