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: G4PreCompoundFragmentVector.icc,v 1.4 2008/09/22 10:18:36 ahoward Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | // Hadronic Process: Nuclear Preequilibrium |
---|
31 | // by V. Lara |
---|
32 | // |
---|
33 | // Modif (03 September 2008) by J. M. Quesada for external choice of inverse |
---|
34 | // cross section option |
---|
35 | // JMQ (06 September 2008) Also external choice has been added for: |
---|
36 | // - superimposed Coulomb barrier (if useSICB=true) |
---|
37 | |
---|
38 | inline G4PreCompoundFragmentVector::G4PreCompoundFragmentVector(pcfvector * avector) : |
---|
39 | theChannels(avector), TotalEmissionProbability(0.0) |
---|
40 | { |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | inline G4PreCompoundFragmentVector::~G4PreCompoundFragmentVector() |
---|
45 | { |
---|
46 | } |
---|
47 | |
---|
48 | inline void G4PreCompoundFragmentVector::SetVector(pcfvector * avector) |
---|
49 | { |
---|
50 | theChannels = avector; |
---|
51 | } |
---|
52 | |
---|
53 | inline void |
---|
54 | G4PreCompoundFragmentVector:: |
---|
55 | Initialize(const G4Fragment & aFragment) |
---|
56 | { |
---|
57 | TotalEmissionProbability = 0.0; |
---|
58 | for (pcfvector::iterator i=theChannels->begin(); |
---|
59 | i != theChannels->end(); i++) (*i)->Initialize(aFragment); |
---|
60 | return; |
---|
61 | } |
---|
62 | |
---|
63 | inline void G4PreCompoundFragmentVector:: |
---|
64 | ResetStage() |
---|
65 | { |
---|
66 | for (pcfvector::iterator i=theChannels->begin(); i != theChannels->end(); i++) |
---|
67 | (*i)->ResetStage(); |
---|
68 | return; |
---|
69 | } |
---|
70 | |
---|
71 | //for inverse cross section choice |
---|
72 | inline void G4PreCompoundFragmentVector:: |
---|
73 | SetOPTxs(G4int opt) |
---|
74 | { |
---|
75 | for (pcfvector::iterator i = theChannels->begin(); i != theChannels->end(); ++i) |
---|
76 | (*i)->SetOPTxs(opt); |
---|
77 | return; |
---|
78 | } |
---|
79 | |
---|
80 | //for superimposed Coulomb Barrier for inverse cross sections |
---|
81 | inline void G4PreCompoundFragmentVector:: |
---|
82 | UseSICB(G4bool use) |
---|
83 | { |
---|
84 | for (pcfvector::iterator i = theChannels->begin(); i != theChannels->end(); ++i) |
---|
85 | (*i)->UseSICB(use); |
---|
86 | return; |
---|
87 | } |
---|