Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //
28 #ifndef G4NeutronHPInelasticCompFS_h
29 #define G4NeutronHPInelasticCompFS_h 1
30 
31 #include "globals.hh"
32 #include "G4HadProjectile.hh"
33 #include "G4HadFinalState.hh"
34 #include "G4NeutronHPFinalState.hh"
35 #include "G4NeutronHPAngular.hh"
38 #include "G4NeutronHPPhotonDist.hh"
39 #include "G4NeutronHPDeExGammas.hh"
40 
42 {
43  public:
44 
46  {
47 
48  QI.resize(51);
49  LR.resize(51);
50  for(G4int i=0; i<51; i++)
51  {
52  hasXsec = true;
53  theXsection[i] = 0;
54  theEnergyDistribution[i] = 0;
56  theEnergyAngData[i] = 0;
57  theFinalStatePhotons[i] = 0;
58  QI[i]=0.0;
59  LR[i]=0;
60  }
61 
62  }
64  {
65  for(G4int i=0; i<51; i++)
66  {
67  if(theXsection[i] != 0) delete theXsection[i];
68  if(theEnergyDistribution[i] != 0) delete theEnergyDistribution[i];
69  if(theAngularDistribution[i] != 0) delete theAngularDistribution[i];
70  if(theEnergyAngData[i] != 0) delete theEnergyAngData[i];
71  if(theFinalStatePhotons[i] != 0) delete theFinalStatePhotons[i];
72  }
73  }
74  void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aSFType);
75  void InitGammas(G4double AR, G4double ZR);
76  virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) = 0;
77  virtual G4NeutronHPFinalState * New() = 0;
78  virtual G4double GetXsec(G4double anEnergy)
79  {
80  return std::max(0., theXsection[50]->GetY(anEnergy));
81  }
82  virtual G4NeutronHPVector * GetXsec() { return theXsection[50]; }
84  void CompositeApply(const G4HadProjectile & theTrack, G4ParticleDefinition * aHadron);
86  G4ReactionProduct & aTarget,
87  G4int it)
88  {
89  if(theAngularDistribution[it]!=0)
90  {
91  theAngularDistribution[it]->SetTarget(aTarget);
92  theAngularDistribution[it]->SetNeutron(aNeutron);
93  }
94  if(theEnergyAngData[it]!=0)
95  {
96  theEnergyAngData[it]->SetTarget(aTarget);
97  theEnergyAngData[it]->SetNeutron(aNeutron);
98  }
99  }
100 
101  protected:
102 
107 
109 
112 
115 
116  protected:
117  std::vector < G4double > QI;
118  std::vector <G4int > LR;
119 
120  private:
121  // proj targ had mu of had
122  void two_body_reaction ( G4DynamicParticle* , G4DynamicParticle* , G4DynamicParticle* , G4double mu );
123 
124 };
125 #endif
void SetNeutron(const G4ReactionProduct &aNeutron)
void SetTarget(G4ReactionProduct &aTarget)
virtual G4NeutronHPFinalState * New()=0
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)=0
void SetTarget(const G4ReactionProduct &aTarget)
virtual G4NeutronHPVector * GetXsec()
int G4int
Definition: G4Types.hh:78
virtual G4double GetXsec(G4double anEnergy)
G4NeutronHPEnergyDistribution * theEnergyDistribution[51]
void CompositeApply(const G4HadProjectile &theTrack, G4ParticleDefinition *aHadron)
void SetNeutron(G4ReactionProduct &aNeutron)
G4int SelectExitChannel(G4double eKinetic)
void InitGammas(G4double AR, G4double ZR)
G4NeutronHPEnAngCorrelation * theEnergyAngData[51]
G4NeutronHPAngular * theAngularDistribution[51]
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4NeutronHPPhotonDist * theFinalStatePhotons[51]
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aSFType)
double G4double
Definition: G4Types.hh:76
void InitDistributionInitialState(G4ReactionProduct &aNeutron, G4ReactionProduct &aTarget, G4int it)