Ignore:
Timestamp:
08/19/02 08:58:09 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1476 r1507  
    5050}
    5151
    52 Double_t RandomTheta(Double_t Eg, Double_t Ep)
     52Double_t RandomThetaG(Double_t Eg, Double_t Ep)
    5353{
    5454    Double_t E0 = 511e-6; // [GeV]
     
    5959        return 0;
    6060
    61     static TF1 func("RndTheta", Sbar_sigmas, 0, 0, 0);
     61    static TF1 func("RndThetaG", Sbar_sigmas, 0, 0, 0);
    6262
    6363    func.SetRange(0, log10(f));
     
    139139        }
    140140
    141         // WRONG!
    142         MPhoton *p = e.DoInvCompton(0);
     141        MPhoton *p = e.DoInvCompton();
    143142
    144143        fBranchElectrons->GetTree()->Fill();
     
    200199
    201200        Double_t Ep = pow(10, pe);
    202         Double_t theta = RandomTheta(Eg, Ep);
     201        Double_t theta = RandomThetaG(Eg, Ep);
    203202        if (theta==0)
    204203        {
     
    316315MCascade::MCascade()
    317316{
     317    if (gRandom)
     318        delete gRandom;
     319
    318320    TRandom r(0);
    319     delete gRandom;
    320321    gRandom = new TRandom3(r.GetSeed());
    321322
     
    332333{
    333334    delete gRandom;
     335    gRandom = 0;
    334336}
    335337
     
    373375
    374376    // ------------------------------
     377
     378    cout << endl;
    375379
    376380    cout << "R = " << fSrcR << "kpc" << endl;
Note: See TracChangeset for help on using the changeset viewer.