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: G4NeutronHPInelasticCompFS.hh,v 1.13 2007/06/06 12:45:13 ahoward Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | #ifndef G4NeutronHPInelasticCompFS_h |
---|
31 | #define G4NeutronHPInelasticCompFS_h 1 |
---|
32 | |
---|
33 | #include "globals.hh" |
---|
34 | #include "G4HadProjectile.hh" |
---|
35 | #include "G4HadFinalState.hh" |
---|
36 | #include "G4NeutronHPFinalState.hh" |
---|
37 | #include "G4NeutronHPAngular.hh" |
---|
38 | #include "G4NeutronHPEnergyDistribution.hh" |
---|
39 | #include "G4NeutronHPEnAngCorrelation.hh" |
---|
40 | #include "G4NeutronHPPhotonDist.hh" |
---|
41 | #include "G4NeutronHPDeExGammas.hh" |
---|
42 | |
---|
43 | class G4NeutronHPInelasticCompFS : public G4NeutronHPFinalState |
---|
44 | { |
---|
45 | public: |
---|
46 | |
---|
47 | G4NeutronHPInelasticCompFS() |
---|
48 | { |
---|
49 | for(G4int i=0; i<51; i++) |
---|
50 | { |
---|
51 | hasXsec = true; |
---|
52 | theXsection[i] = 0; |
---|
53 | theEnergyDistribution[i] = 0; |
---|
54 | theAngularDistribution[i] = 0; |
---|
55 | theEnergyAngData[i] = 0; |
---|
56 | theFinalStatePhotons[i] = 0; |
---|
57 | } |
---|
58 | } |
---|
59 | virtual ~G4NeutronHPInelasticCompFS() |
---|
60 | { |
---|
61 | for(G4int i=0; i<51; i++) |
---|
62 | { |
---|
63 | if(theXsection[i] != 0) delete theXsection[i]; |
---|
64 | if(theEnergyDistribution[i] != 0) delete theEnergyDistribution[i]; |
---|
65 | if(theAngularDistribution[i] != 0) delete theAngularDistribution[i]; |
---|
66 | if(theEnergyAngData[i] != 0) delete theEnergyAngData[i]; |
---|
67 | if(theFinalStatePhotons[i] != 0) delete theFinalStatePhotons[i]; |
---|
68 | } |
---|
69 | } |
---|
70 | void Init (G4double A, G4double Z, G4String & dirName, G4String & aSFType); |
---|
71 | void InitGammas(G4double AR, G4double ZR); |
---|
72 | virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) = 0; |
---|
73 | virtual G4NeutronHPFinalState * New() = 0; |
---|
74 | virtual G4double GetXsec(G4double anEnergy) |
---|
75 | { |
---|
76 | return std::max(0., theXsection[50]->GetY(anEnergy)); |
---|
77 | } |
---|
78 | virtual G4NeutronHPVector * GetXsec() { return theXsection[50]; } |
---|
79 | G4int SelectExitChannel(G4double eKinetic); |
---|
80 | void CompositeApply(const G4HadProjectile & theTrack, G4ParticleDefinition * aHadron); |
---|
81 | inline void InitDistributionInitialState(G4ReactionProduct & aNeutron, |
---|
82 | G4ReactionProduct & aTarget, |
---|
83 | G4int it) |
---|
84 | { |
---|
85 | if(theAngularDistribution[it]!=0) |
---|
86 | { |
---|
87 | theAngularDistribution[it]->SetTarget(aTarget); |
---|
88 | theAngularDistribution[it]->SetNeutron(aNeutron); |
---|
89 | } |
---|
90 | if(theEnergyAngData[it]!=0) |
---|
91 | { |
---|
92 | theEnergyAngData[it]->SetTarget(aTarget); |
---|
93 | theEnergyAngData[it]->SetNeutron(aNeutron); |
---|
94 | } |
---|
95 | } |
---|
96 | |
---|
97 | protected: |
---|
98 | |
---|
99 | G4NeutronHPVector * theXsection[51]; |
---|
100 | G4NeutronHPEnergyDistribution * theEnergyDistribution[51]; |
---|
101 | G4NeutronHPAngular * theAngularDistribution[51]; |
---|
102 | G4NeutronHPEnAngCorrelation * theEnergyAngData[51]; |
---|
103 | |
---|
104 | G4NeutronHPPhotonDist * theFinalStatePhotons[51]; |
---|
105 | |
---|
106 | G4NeutronHPDeExGammas theGammas; |
---|
107 | G4String gammaPath; |
---|
108 | |
---|
109 | G4double theCurrentA; |
---|
110 | G4double theCurrentZ; |
---|
111 | }; |
---|
112 | #endif |
---|