source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4Quasmon.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: 10.3 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: G4Quasmon.hh,v 1.41 2009/03/23 14:14:35 mkossov Exp $
28// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
29//
30//      ---------------- G4Quasmon ----------------
31//             by Mikhail Kossov, July 1999.
32//      class for a Quasmon used by the CHIPS Model
33// ------------------------------------------------------------
34// Short description: If partons from the G4QPartonPair are close in
35// rapidity, they create Quasmons, but if they are far in the rapidity
36// space, they can not interact directly. Say the bottom parton (quark)
37// has rapidity 0, and the top parton (antiquark) has rapidity 8, then
38// the top quark splits in two by radiating gluon, and each part has
39// rapidity 4, then the gluon splits in quark-antiquark pair (rapidity
40// 2 each), and then the quark gadiates anothe gluon and reachs rapidity
41// 1. Now it can interact with the bottom antiquark, creating a Quasmon
42// or a hadron. The intermediate partons is the string ladder.
43// ---------------------------------------------------------------------
44
45#ifndef G4Quasmon_h
46#define G4Quasmon_h 1
47
48// Standard G4-headers
49#include "G4ios.hh"
50#include "globals.hh"
51#include "G4ThreeVector.hh"
52#include "G4LorentzVector.hh"
53#include "G4LorentzRotation.hh"
54//CHIPS-headers
55#include "G4QCHIPSWorld.hh"
56#include "G4QChipolino.hh"
57#include "G4QHadronVector.hh"
58#include "G4QNucleus.hh"
59
60class G4Quasmon 
61{
62public:
63  G4Quasmon(G4QContent qQCont    = G4QContent(0,0,0,0,0,0),
64            G4LorentzVector q4M  = G4LorentzVector(0.,0.,0.,0.),
65            G4LorentzVector ph4M = G4LorentzVector(0.,0.,0.,0.));// Direct Constructor
66  G4Quasmon(const G4Quasmon& right);                             // Copy Quasmon by object
67  G4Quasmon(G4Quasmon* right);                                   // Copy Quasmon by pointer
68
69  ~G4Quasmon();                                                  // Public Destructor
70
71  // Overloaded Operators
72  const G4Quasmon& operator=(const G4Quasmon& right);
73  G4bool operator==(const G4Quasmon &right) const;
74  G4bool operator!=(const G4Quasmon &right) const;
75
76  // Static functions
77  static void SetParameters(G4double temper=180., G4double ssin2g=.3, G4double etaetap=.3);
78  static void SetTemper(G4double temperature);
79  static void SetSOverU(G4double ssin2g);
80  static void SetEtaSup(G4double etaetap);
81  static void OpenElectromagneticDecays();
82  static void CloseElectromagneticDecays();
83
84  //Selectors
85  G4double          GetTemper()       const;
86  G4double          GetSOverU()       const;
87  G4double          GetEtaSup()       const;
88  G4LorentzVector   Get4Momentum()    const;
89  G4QContent        GetQC()           const;
90  G4QPDGCode        GetQPDG()         const;
91  G4int             GetStatus()       const;
92  G4int             GetCharge()       const;
93  G4int             GetBaryonNumber() const;
94  G4int             GetStrangeness()  const;
95
96  //Modifiers
97  // Public wrapper for HadronizeQuasmon(,)
98  G4QHadronVector*  Fragment(G4QNucleus& nucEnviron, G4int nQ = 1);
99  G4QHadronVector*  DecayQuasmon();                   // Decay Quasmon if it's Res or Chipo
100  G4QHadronVector*  DecayQHadron(G4QHadron* hadron);  // Decay Quasmon if it's Res or Chipo
101  void              ClearOutput();                    // Clear but not destroy the output
102  void              InitQuasmon(const G4QContent& qQCont, const G4LorentzVector& q4M);
103  void              IncreaseBy(const G4Quasmon* pQuasm); // as operator+= but by pointer
104  void              IncreaseBy(G4QContent& qQCont, const G4LorentzVector& q4M);
105  void              ClearQuasmon();                   // Clear Quasmon (status=0)
106  void              KillQuasmon();                    // Kill Quasmon (status=0)
107  G4int             CalculateNumberOfQPartons(G4double qMass);
108
109private: 
110  G4QHadronVector   HadronizeQuasmon(G4QNucleus& qEnv, G4int nQ=1); // + new Neuclear Envir
111  G4double          GetRandomMass(G4int PDGCode, G4double maxM);
112  void              ModifyInMatterCandidates();
113  void              CalculateHadronizationProbabilities(G4double excE, G4double kQ,
114                                                        G4LorentzVector k4M, G4bool piF,
115                                                        G4bool gaF, G4bool first=false);
116  void              FillHadronVector(G4QHadron* qHadron);
117  G4int             RandomPoisson(G4double meanValue);
118  G4double          GetQPartonMomentum(G4double mMinResidual2, G4double mCandidate2);
119  G4bool            CheckGroundState(G4bool corFlag=false); // Forbid correction by default
120  void              KillEnvironment(); // Kill Environment (Z,N,S=0,LV=0)
121
122// Body
123private:
124  // Static Parameters
125  static G4double    Temperature;   // Quasmon Temperature
126  static G4double    SSin2Gluons;   // Percent of ssbar sea in a constituen gluon
127  static G4double    EtaEtaprime;   // Part of eta-prime in all etas
128  static G4bool      WeakDecays;    // Flag for opening WeakDecays (notUsed: allAreClosed)
129  static G4bool      ElMaDecays;    // Flag for opening ElectroMagDecays (true by default)
130  // Hadronic input
131  G4LorentzVector    q4Mom;         // 4-momentum of the Quasmon +++++
132  G4QContent         valQ;          // Quark Content of the Quasmon  +++++
133  G4QNucleus         theEnvironment;// Nuclear (or Vacuum) Environment around the Quasmon
134  // Output
135  G4int status; // -1-Panic,0-Done,1-FilledSomething,2-DidNothing,3-StopedByCB,4-JustBorn
136  G4QHadronVector    theQHadrons;   // Vector of generated secondary hadrons +++++
137  // Internal working objects (@@ it is possible to sacrifice some of them in future)
138  G4QCHIPSWorld*     theWorld;      // Pointer to the CHIPS World
139  G4LorentzVector    phot4M;        // Gamma 4-momentum for interaction with a quark-parton
140  G4int              nBarClust;     // Maximum barion number of clusters in the Environment
141  G4int              nOfQ;          // a#of quark-partons in theQuasmon (to accelerate)
142  G4QCandidateVector theQCandidates;// Vector of possible secondary hadrons/clusters(*del*)
143  G4double           f2all;         // Ratio of free nucleons to free+freeInDense nucleons
144  G4double           rEP;           // E+p for the Residual Coloured Quasmon im LS +++++
145  G4double           rMo;           // p for the Residual Coloured Quasmon im LS +++++
146  G4double           totMass;       // Mass of totalCompoundSys: curQuasmon+curEnvironment
147  G4int              bEn;           // BaryoNumber of the Limit Active Nuclear Environment
148  G4double           mbEn;          // Mass of the LimActNucEnv
149  G4LorentzVector    bEn4M;         // 4-momentum of the LimitActiveNuclearEnviron
150  G4QContent         bEnQC;         // QuarkContent of the LimitActiveNuclEnv
151};
152
153inline G4bool G4Quasmon::operator==(const G4Quasmon &rhs) const {return this == &rhs;}
154inline G4bool G4Quasmon::operator!=(const G4Quasmon &rhs) const {return this != &rhs;}
155inline G4double        G4Quasmon::GetTemper()    const {return Temperature;}
156inline G4double        G4Quasmon::GetSOverU()    const {return SSin2Gluons;}
157inline G4double        G4Quasmon::GetEtaSup()    const {return EtaEtaprime;}
158inline G4LorentzVector G4Quasmon::Get4Momentum() const {return q4Mom;}
159inline G4QContent      G4Quasmon::GetQC()        const {return valQ;}
160inline G4int           G4Quasmon::GetCharge()       const{return valQ.GetCharge();}
161inline G4int           G4Quasmon::GetBaryonNumber() const{return valQ.GetBaryonNumber();}
162inline G4int           G4Quasmon::GetStrangeness()  const{return valQ.GetStrangeness();}
163inline G4QPDGCode      G4Quasmon::GetQPDG()      const {return G4QPDGCode(valQ);}
164inline G4int           G4Quasmon::GetStatus()    const {return status;}
165inline void            G4Quasmon::ClearOutput()       
166      {std::for_each(theQHadrons.begin(), theQHadrons.end(), DeleteQHadron());
167       theQHadrons.clear();
168      }
169inline void            G4Quasmon::KillEnvironment()
170                           {theEnvironment=G4QNucleus(0,0,0,G4LorentzVector(0.,0.,0.,0.));}
171inline G4double        G4Quasmon::GetRandomMass(G4int PDG, G4double maxM)
172{
173  G4QParticle* part = theWorld->GetQParticle(PDG);
174  return G4QHadron(part, maxM).GetMass();
175}
176
177inline void G4Quasmon::IncreaseBy(const G4Quasmon* pQuasm)
178{
179  valQ  += pQuasm->GetQC();
180  q4Mom += pQuasm->Get4Momentum();
181  status= 3;
182}
183inline void G4Quasmon::IncreaseBy(G4QContent& qQCont, const G4LorentzVector& q4M)
184{
185  valQ  += qQCont;
186  q4Mom += q4M;
187  status= 3;
188}
189
190inline void G4Quasmon::InitQuasmon(const G4QContent& qQCont, const G4LorentzVector& q4M)
191{
192  valQ  = qQCont;
193  q4Mom = q4M;
194  status= 3;
195}
196
197inline void G4Quasmon::ClearQuasmon()
198{
199  static const G4QContent zeroQC(0,0,0,0,0,0);
200  static const G4LorentzVector nothing(0.,0.,0.,0.);
201  phot4M= nothing;
202  valQ  = zeroQC;
203  q4Mom = nothing;
204  status= 0;
205  std::for_each(theQCandidates.begin(), theQCandidates.end(), DeleteQCandidate());
206  theQCandidates.clear();
207
208}
209
210inline void G4Quasmon::KillQuasmon()
211{
212  ClearQuasmon();
213  ClearOutput();
214}
215
216#endif
217
218
219
220
221
Note: See TracBrowser for help on using the repository browser.