Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DetailedBalancePhaseSpaceIntegral Class Reference

#include <G4DetailedBalancePhaseSpaceIntegral.hh>

Public Member Functions

 G4DetailedBalancePhaseSpaceIntegral (const G4ParticleDefinition *aR)
 
G4double GetPhaseSpaceIntegral (G4double sqrts)
 

Detailed Description

Definition at line 32 of file G4DetailedBalancePhaseSpaceIntegral.hh.

Constructor & Destructor Documentation

G4DetailedBalancePhaseSpaceIntegral::G4DetailedBalancePhaseSpaceIntegral ( const G4ParticleDefinition aR)

Definition at line 112 of file G4DetailedBalancePhaseSpaceIntegral.cc.

113 {
114  G4ResonanceID theID;
115  G4int pdg=aR->GetPDGEncoding();
116  data=0;
117  if(theID.IsDelta1232(pdg)) data = delta;
118  else if(theID.IsDelta1600(pdg)) data = delta1600;
119  else if(theID.IsDelta1620(pdg)) data = delta1620;
120  else if(theID.IsDelta1700(pdg)) data = delta1700;
121  else if(theID.IsDelta1900(pdg)) data = delta1900;
122  else if(theID.IsDelta1905(pdg)) data = delta1905;
123  else if(theID.IsDelta1910(pdg)) data = delta1910;
124  else if(theID.IsDelta1920(pdg)) data = delta1920;
125  else if(theID.IsDelta1930(pdg)) data = delta1930;
126  else if(theID.IsDelta1950(pdg)) data = delta1950;
127 
128  else if(theID.IsN1440(pdg)) data = N1440;
129  else if(theID.IsN1520(pdg)) data = N1520;
130  else if(theID.IsN1535(pdg)) data = N1535;
131  else if(theID.IsN1650(pdg)) data = N1650;
132  else if(theID.IsN1675(pdg)) data = N1675;
133  else if(theID.IsN1680(pdg)) data = N1680;
134  else if(theID.IsN1700(pdg)) data = N1700;
135  else if(theID.IsN1710(pdg)) data = N1710;
136  else if(theID.IsN1720(pdg)) data = N1720;
137  else if(theID.IsN1900(pdg)) data = N1900;
138  else if(theID.IsN1990(pdg)) data = N1990;
139  else if(theID.IsN2090(pdg)) data = N2090;
140  else if(theID.IsN2190(pdg)) data = N2190;
141  else if(theID.IsN2220(pdg)) data = N2220;
142  else if(theID.IsN2250(pdg)) data = N2250;
143 }
G4bool IsDelta1600(G4int pdg)
G4bool IsDelta1930(G4int pdg)
G4bool IsN1650(G4int pdg)
G4bool IsN1700(G4int pdg)
G4bool IsN1990(G4int pdg)
G4bool IsDelta1920(G4int pdg)
G4bool IsN1675(G4int pdg)
int G4int
Definition: G4Types.hh:78
G4bool IsN2220(G4int pdg)
G4bool IsDelta1620(G4int pdg)
G4bool IsN2090(G4int pdg)
const XML_Char const XML_Char * data
Definition: expat.h:268
G4bool IsDelta1950(G4int pdg)
G4bool IsDelta1232(G4int pdg)
G4bool IsN1440(G4int pdg)
G4bool IsDelta1910(G4int pdg)
G4bool IsN1535(G4int pdg)
G4bool IsN1720(G4int pdg)
G4bool IsN1680(G4int pdg)
G4bool IsN2190(G4int pdg)
G4bool IsN1520(G4int pdg)
G4bool IsN1900(G4int pdg)
G4bool IsN2250(G4int pdg)
G4bool IsDelta1700(G4int pdg)
G4bool IsDelta1900(G4int pdg)
G4bool IsN1710(G4int pdg)
G4bool IsDelta1905(G4int pdg)

Here is the call graph for this function:

Member Function Documentation

G4double G4DetailedBalancePhaseSpaceIntegral::GetPhaseSpaceIntegral ( G4double  sqrts)

Definition at line 146 of file G4DetailedBalancePhaseSpaceIntegral.cc.

147 {
148  G4double result = 0;
149  G4int it=0;
150  for(G4int ie=0; ie<119; ie++)
151  {
152  if(sqrts[ie]*GeV>sqs) break;
153  it = ie;
154  }
155  G4double x1=sqrts[it]*GeV;
156  G4double x2=sqrts[it+1]*GeV;
157  G4double y1=data[it];
158  G4double y2=data[it+1];
159  result = y1+(sqs-x1)*(y2-y1)/(x2-x1);
160  return result;
161 }
G4double G4ParticleHPJENDLHEData::G4double result
int G4int
Definition: G4Types.hh:78
const XML_Char const XML_Char * data
Definition: expat.h:268
static constexpr double GeV
Definition: G4SIunits.hh:217
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:


The documentation for this class was generated from the following files: