Ignore:
Timestamp:
06/13/02 16:36:19 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WuerzburgSoft/Thomas/mphys/MPairProduction.cc

    r1358 r1363  
    7979    //  theta: interaction angle [rad]
    8080    //
    81 
    82 
    8381    const Double_t E0     = 511e-6;              // [GeV]
    8482    const Double_t Eg     = gamma->GetEnergy();  // [GeV]
     
    9896    const Double_t GammaH = (Eg+Ep)/sqrt(s);
    9997
    100     Double_t psi = stheta/(GammaH*(ctheta-sqrt(sqrbetah)));
     98    const Double_t psi = stheta/(GammaH*(ctheta-sqrt(sqrbetah)));
    10199
    102100    fAngle->SetParameter(0, sqrt(sqrbetae));
     
    104102    const Double_t alpha = psi-acos(fAngle->GetRandom());
    105103
    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);
    108106
    109107    const Double_t tphi = stheta/(Eg/Ep+ctheta); // tan(phi)
    110108
    111     Double_t bb = sqrt(sqrbetah/sqrbetae);
     109    const Double_t bb = sqrt(sqrbetah/sqrbetae);
    112110
    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;
    115113
    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;
    118116
    119117    const Double_t E = (Eg+Ep)/2;;
Note: See TracChangeset for help on using the changeset viewer.