Changeset 1363 for trunk/WuerzburgSoft/Thomas/mphys/MPairProduction.cc
- Timestamp:
- 06/13/02 16:36:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WuerzburgSoft/Thomas/mphys/MPairProduction.cc
r1358 r1363 79 79 // theta: interaction angle [rad] 80 80 // 81 82 83 81 const Double_t E0 = 511e-6; // [GeV] 84 82 const Double_t Eg = gamma->GetEnergy(); // [GeV] … … 98 96 const Double_t GammaH = (Eg+Ep)/sqrt(s); 99 97 100 Double_t psi = stheta/(GammaH*(ctheta-sqrt(sqrbetah)));98 const Double_t psi = stheta/(GammaH*(ctheta-sqrt(sqrbetah))); 101 99 102 100 fAngle->SetParameter(0, sqrt(sqrbetae)); … … 104 102 const Double_t alpha = psi-acos(fAngle->GetRandom()); 105 103 106 Double_t salpha = sin(alpha);107 Double_t calpha = cos(alpha);104 const Double_t salpha = sin(alpha); 105 const Double_t calpha = cos(alpha); 108 106 109 107 const Double_t tphi = stheta/(Eg/Ep+ctheta); // tan(phi) 110 108 111 Double_t bb = sqrt(sqrbetah/sqrbetae);109 const Double_t bb = sqrt(sqrbetah/sqrbetae); 112 110 113 Double_t s1 = calpha/GammaH;114 Double_t s2 = tphi*s1 - salpha - bb;111 const Double_t s1 = calpha/GammaH; 112 const Double_t s2 = tphi*s1 - salpha - bb; 115 113 116 Double_t tan1 = ((salpha+bb)*tphi+s1)/s2;117 Double_t tan2 = ((salpha-bb)*tphi+s1)/s2;114 const Double_t tan1 = ((salpha+bb)*tphi+s1)/s2; 115 const Double_t tan2 = ((salpha-bb)*tphi+s1)/s2; 118 116 119 117 const Double_t E = (Eg+Ep)/2;;
Note:
See TracChangeset
for help on using the changeset viewer.