Changeset 1507 for trunk/WuerzburgSoft/Thomas/mphys/MCascade.cc
- Timestamp:
- 08/19/02 08:58:09 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WuerzburgSoft/Thomas/mphys/MCascade.cc
r1476 r1507 50 50 } 51 51 52 Double_t RandomTheta (Double_t Eg, Double_t Ep)52 Double_t RandomThetaG(Double_t Eg, Double_t Ep) 53 53 { 54 54 Double_t E0 = 511e-6; // [GeV] … … 59 59 return 0; 60 60 61 static TF1 func("RndTheta ", Sbar_sigmas, 0, 0, 0);61 static TF1 func("RndThetaG", Sbar_sigmas, 0, 0, 0); 62 62 63 63 func.SetRange(0, log10(f)); … … 139 139 } 140 140 141 // WRONG! 142 MPhoton *p = e.DoInvCompton(0); 141 MPhoton *p = e.DoInvCompton(); 143 142 144 143 fBranchElectrons->GetTree()->Fill(); … … 200 199 201 200 Double_t Ep = pow(10, pe); 202 Double_t theta = RandomTheta (Eg, Ep);201 Double_t theta = RandomThetaG(Eg, Ep); 203 202 if (theta==0) 204 203 { … … 316 315 MCascade::MCascade() 317 316 { 317 if (gRandom) 318 delete gRandom; 319 318 320 TRandom r(0); 319 delete gRandom;320 321 gRandom = new TRandom3(r.GetSeed()); 321 322 … … 332 333 { 333 334 delete gRandom; 335 gRandom = 0; 334 336 } 335 337 … … 373 375 374 376 // ------------------------------ 377 378 cout << endl; 375 379 376 380 cout << "R = " << fSrcR << "kpc" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.