Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NeutronHPInelasticCompFS.hh
Go to the documentation of this file.
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$
28//
29#ifndef G4NeutronHPInelasticCompFS_h
30#define G4NeutronHPInelasticCompFS_h 1
31
32#include "globals.hh"
33#include "G4HadProjectile.hh"
34#include "G4HadFinalState.hh"
36#include "G4NeutronHPAngular.hh"
41
43{
44 public:
45
47 {
48
49 QI.resize(51);
50 LR.resize(51);
51 for(G4int i=0; i<51; i++)
52 {
53 hasXsec = true;
54 theXsection[i] = 0;
57 theEnergyAngData[i] = 0;
59 QI[i]=0.0;
60 LR[i]=0;
61 }
62
63 }
65 {
66 for(G4int i=0; i<51; i++)
67 {
68 if(theXsection[i] != 0) delete theXsection[i];
69 if(theEnergyDistribution[i] != 0) delete theEnergyDistribution[i];
71 if(theEnergyAngData[i] != 0) delete theEnergyAngData[i];
72 if(theFinalStatePhotons[i] != 0) delete theFinalStatePhotons[i];
73 }
74 }
75 void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aSFType);
76 void InitGammas(G4double AR, G4double ZR);
77 virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) = 0;
78 virtual G4NeutronHPFinalState * New() = 0;
79 virtual G4double GetXsec(G4double anEnergy)
80 {
81 return std::max(0., theXsection[50]->GetY(anEnergy));
82 }
83 virtual G4NeutronHPVector * GetXsec() { return theXsection[50]; }
85 void CompositeApply(const G4HadProjectile & theTrack, G4ParticleDefinition * aHadron);
87 G4ReactionProduct & aTarget,
88 G4int it)
89 {
90 if(theAngularDistribution[it]!=0)
91 {
94 }
95 if(theEnergyAngData[it]!=0)
96 {
97 theEnergyAngData[it]->SetTarget(aTarget);
98 theEnergyAngData[it]->SetNeutron(aNeutron);
99 }
100 }
101
102 protected:
103
108
110
113
116
117 protected:
118 std::vector < G4double > QI;
119 std::vector <G4int > LR;
120
121 private:
122 // proj targ had mu of had
123 void two_body_reaction ( G4DynamicParticle* , G4DynamicParticle* , G4DynamicParticle* , G4double mu );
124
125};
126#endif
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
void SetNeutron(const G4ReactionProduct &aNeutron)
void SetTarget(const G4ReactionProduct &aTarget)
void SetNeutron(G4ReactionProduct &aNeutron)
void SetTarget(G4ReactionProduct &aTarget)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aSFType)
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)=0
void InitDistributionInitialState(G4ReactionProduct &aNeutron, G4ReactionProduct &aTarget, G4int it)
G4NeutronHPEnergyDistribution * theEnergyDistribution[51]
G4NeutronHPPhotonDist * theFinalStatePhotons[51]
virtual G4NeutronHPVector * GetXsec()
void CompositeApply(const G4HadProjectile &theTrack, G4ParticleDefinition *aHadron)
G4NeutronHPAngular * theAngularDistribution[51]
void InitGammas(G4double AR, G4double ZR)
virtual G4NeutronHPFinalState * New()=0
virtual G4double GetXsec(G4double anEnergy)
G4int SelectExitChannel(G4double eKinetic)
G4NeutronHPEnAngCorrelation * theEnergyAngData[51]