Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ElasticData Class Reference

#include <G4ElasticHadrNucleusHE.hh>

Public Member Functions

 G4ElasticData (const G4ParticleDefinition *h, G4int Z, G4int A, const G4double *e)
 
 ~G4ElasticData ()
 

Friends

class G4ElasticHadrNucleusHE
 

Detailed Description

Definition at line 64 of file G4ElasticHadrNucleusHE.hh.

Constructor & Destructor Documentation

◆ G4ElasticData()

G4ElasticData::G4ElasticData ( const G4ParticleDefinition h,
G4int  Z,
G4int  A,
const G4double e 
)

Definition at line 100 of file G4ElasticHadrNucleusHE.cc.

102{
103 G4double massGeV = p->GetPDGMass()*invGeV;
104 G4double mass2GeV2= massGeV*massGeV;
105
106 DefineNucleusParameters(A);
107 G4double limitQ2 = 35./(R1*R1); // (GeV/c)^2
108
110 massA2 = massA*massA;
111 /*
112 G4cout << " G4ElasticData for " << p->GetParticleName()
113 << " Z= " << Z << " A= " << A << " R1= " << R1
114 << " R2= " << R2 << G4endl;
115 */
116 for(G4int kk = 0; kk<NENERGY; ++kk)
117 {
118 G4double elab = e[kk] + massGeV;
119 G4double plab2= e[kk]*(e[kk] + 2.0*massGeV);
120 G4double Q2m = 4.0*plab2*massA2/(mass2GeV2 + massA2 + 2.*massA*elab);
121
122 if(Z == 1 && p == G4Proton::Proton()) { Q2m *= 0.5; }
123
124 maxQ2[kk] = Q2m;
125 /*
126 G4cout << " Ekin= " << e[kk] << " Q2m= " << Q2m
127 << " limitQ2= " << limitQ2 << G4endl;
128 */
129 }
130
131 dQ2 = limitQ2/(G4double)(ONQ2-2);
132}
const G4double invGeV
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
static G4double GetNuclearMass(const G4double A, const G4double Z)
static G4Proton * Proton()
Definition: G4Proton.cc:92

◆ ~G4ElasticData()

G4ElasticData::~G4ElasticData ( )
inline

Definition at line 74 of file G4ElasticHadrNucleusHE.hh.

74{}

Friends And Related Function Documentation

◆ G4ElasticHadrNucleusHE

friend class G4ElasticHadrNucleusHE
friend

Definition at line 67 of file G4ElasticHadrNucleusHE.hh.


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