Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4ParticleHPInelasticCompFS.hh
이 파일의 문서화 페이지로 가기
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 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
28 //
29 #ifndef G4ParticleHPInelasticCompFS_h
30 #define G4ParticleHPInelasticCompFS_h 1
31 
32 #include "globals.hh"
33 #include "G4HadProjectile.hh"
34 #include "G4HadFinalState.hh"
36 #include "G4ParticleHPAngular.hh"
41 #include "G4Nucleus.hh"
42 
43 #include "G4NRESP71M03.hh"
44 
46 {
47  public:
48 
50  {
51 
52  QI.resize(51);
53  LR.resize(51);
54  for(G4int i=0; i<51; i++)
55  {
56  hasXsec = true;
57  theXsection[i] = 0;
58  theEnergyDistribution[i] = 0;
60  theEnergyAngData[i] = 0;
61  theFinalStatePhotons[i] = 0;
62  QI[i]=0.0;
63  LR[i]=0;
64  }
65 
66  }
68  {
69  for(G4int i=0; i<51; i++)
70  {
71  if(theXsection[i] != 0) delete theXsection[i];
72  if(theEnergyDistribution[i] != 0) delete theEnergyDistribution[i];
73  if(theAngularDistribution[i] != 0) delete theAngularDistribution[i];
74  if(theEnergyAngData[i] != 0) delete theEnergyAngData[i];
75  if(theFinalStatePhotons[i] != 0) delete theFinalStatePhotons[i];
76  }
77  }
78  void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aSFType, G4ParticleDefinition*);
79  void InitGammas(G4double AR, G4double ZR);
80  virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) = 0;
81  virtual G4ParticleHPFinalState * New() = 0;
82  virtual G4double GetXsec(G4double anEnergy)
83  {
84  return std::max(0., theXsection[50]->GetY(anEnergy));
85  }
86  virtual G4ParticleHPVector * GetXsec() { return theXsection[50]; }
88  void CompositeApply(const G4HadProjectile & theTrack, G4ParticleDefinition * aHadron);
89  inline void InitDistributionInitialState(G4ReactionProduct & anIncidentPart,
90  G4ReactionProduct & aTarget,
91  G4int it)
92  {
93  if(theAngularDistribution[it]!=0)
94  {
95  theAngularDistribution[it]->SetTarget(aTarget);
96  theAngularDistribution[it]->SetProjectileRP(anIncidentPart);
97  }
98  if(theEnergyAngData[it]!=0)
99  {
100  theEnergyAngData[it]->SetTarget(aTarget);
101  theEnergyAngData[it]->SetProjectileRP(anIncidentPart);
102  }
103  }
104 
105 protected:
106 
111 
113 
116 
117  //G4double theCurrentA;
118  //G4double theCurrentZ;
119 
120  protected:
121  std::vector < G4double > QI;
122  std::vector <G4int > LR;
123 
124  private:
125  // proj targ had mu of had
127 
129  G4bool use_nresp71_model( const G4ParticleDefinition* aDefinition, const G4int it , const G4ReactionProduct& theTarget , G4ReactionProduct& boosted);
130 
131 };
132 #endif
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void InitGammas(G4double AR, G4double ZR)
void two_body_reaction(G4DynamicParticle *, G4DynamicParticle *, G4DynamicParticle *, G4double mu)
void SetTarget(G4ReactionProduct &aTarget)
virtual G4ParticleHPVector * GetXsec()
virtual G4ParticleHPFinalState * New()=0
G4ParticleHPPhotonDist * theFinalStatePhotons[51]
void SetTarget(const G4ReactionProduct &aTarget)
G4bool use_nresp71_model(const G4ParticleDefinition *aDefinition, const G4int it, const G4ReactionProduct &theTarget, G4ReactionProduct &boosted)
Float_t Z
G4int SelectExitChannel(G4double eKinetic)
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
void SetProjectileRP(const G4ReactionProduct &anIncidentParticleRP)
virtual G4double GetXsec(G4double anEnergy)
G4ErrorTarget * theTarget
Definition: errprop.cc:59
double A(double temperature)
G4ParticleHPAngular * theAngularDistribution[51]
G4ParticleHPEnAngCorrelation * theEnergyAngData[51]
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)=0
void SetProjectileRP(G4ReactionProduct &aIncidentPart)
int G4int
Definition: G4Types.hh:78
void InitDistributionInitialState(G4ReactionProduct &anIncidentPart, G4ReactionProduct &aTarget, G4int it)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aSFType, G4ParticleDefinition *)
G4ParticleHPEnergyDistribution * theEnergyDistribution[51]
void CompositeApply(const G4HadProjectile &theTrack, G4ParticleDefinition *aHadron)