source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/include/G4PreCompoundModel.hh

Last change on this file was 1340, checked in by garnier, 14 years ago

update ti head

File size: 5.5 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// $Id: G4PreCompoundModel.hh,v 1.9 2010/08/20 07:41:48 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-ref-09 $
28//
29// by V. Lara
30//
31// Class Description
32// Model implementation for pre-equilibrium decay models in geant4.
33// To be used in your physics list, in case you neeed this kind of physics.
34// Can be used as a stand-allone model, but also in conjunction with an intra-nuclear
35// transport, or any of the string-parton models.
36// Class Description - End
37//
38// Modified:
39// 03.09.2008 J.M.Quesada added external choice of inverse
40//            cross section option.(default OPTxs=3)
41// 06.09.2008 J.M.Quesada external choices have been added for:
42//                - superimposed Coulomb barrier (if useSICB=true, default false)
43//                - "never go back"  hipothesis (if useNGB=true, default false)
44//                - soft cutoff from preeq. to equlibrium (if useSCO=true, default false)
45//                - CEM transition probabilities (if useCEMtr=true)
46// 30.10.2009 J.M.Quesada CEM transition probabilities are set as default
47// 20.08.2010 V.Ivanchenko Cleanup of the code - changed data members and inline methods
48
49#ifndef G4PreCompoundModel_h
50#define G4PreCompoundModel_h 1
51
52#include "G4VPreCompoundModel.hh"
53#include "G4Fragment.hh"
54#include "G4ReactionProductVector.hh"
55#include "G4ReactionProduct.hh"
56#include "G4ExcitationHandler.hh"
57
58class G4PreCompoundParameters;
59class G4PreCompoundEmission;
60class G4VPreCompoundTransitions;
61class G4ParticleDefinition;
62
63class G4PreCompoundModel : public G4VPreCompoundModel
64{ 
65public:
66
67  G4PreCompoundModel(G4ExcitationHandler * const value); 
68
69  virtual ~G4PreCompoundModel();
70
71  virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, 
72                                          G4Nucleus & theNucleus);
73
74  virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment);
75
76  void UseHETCEmission();
77  void UseDefaultEmission();
78  void UseGNASHTransition();
79  void UseDefaultTransition();
80
81  //for cross section selection
82  void SetOPTxs(G4int opt);
83
84  //for the rest of external choices
85  void UseSICB();
86  void UseNGB();
87  void UseSCO();
88  void UseCEMtr();
89
90#ifdef PRECOMPOUND_TEST
91  static G4Fragment GetInitialFragmentForTest()
92  { return G4PreCompoundModel::theInitialFragmentForTest; }
93  static std::vector<G4String*> * GetCreatorModels()
94  { return &G4PreCompoundModel::theCreatorModels; }
95#endif
96
97private: 
98
99  inline 
100  void PerformEquilibriumEmission(const G4Fragment & aFragment, 
101                                  G4ReactionProductVector * theResult) const;
102
103  G4PreCompoundModel();
104  G4PreCompoundModel(const G4PreCompoundModel &);
105  const G4PreCompoundModel& operator=(const G4PreCompoundModel &right);
106  G4bool operator==(const G4PreCompoundModel &right) const;
107  G4bool operator!=(const G4PreCompoundModel &right) const;
108
109#ifdef debug                             
110  void CheckConservation(const G4Fragment & theInitialState,
111                         const G4Fragment & aFragment,
112                         G4ReactionProductVector * Result) const;
113#endif
114
115  //==============
116  // Data Members
117  //==============
118
119  G4PreCompoundParameters*   theParameters;
120  G4PreCompoundEmission*     theEmission;
121  G4VPreCompoundTransitions* theTransition;
122
123  const G4ParticleDefinition* proton;
124  const G4ParticleDefinition* neutron;
125
126  G4bool useHETCEmission;
127  G4bool useGNASHTransition;
128
129  //for cross section options
130  G4int OPTxs;
131
132  //for the rest of external choices
133  G4bool useSICB;
134  G4bool useNGB;
135  G4bool useSCO;
136  G4bool useCEMtr;
137
138  G4HadFinalState theResult;
139
140#ifdef PRECOMPOUND_TEST
141  static G4Fragment theInitialFragmentForTest;
142  static std::vector<G4String*> theCreatorModels;
143#endif
144};
145
146inline void 
147G4PreCompoundModel::PerformEquilibriumEmission(const G4Fragment & aFragment,
148                                               G4ReactionProductVector * Result) const 
149{
150  G4ReactionProductVector* theEquilibriumResult = 
151    GetExcitationHandler()->BreakItUp(aFragment);
152  Result->insert(Result->end(),theEquilibriumResult->begin(), theEquilibriumResult->end());
153  delete theEquilibriumResult;
154}
155
156#endif
157
Note: See TracBrowser for help on using the repository browser.