Changeset 1897 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 04/03/03 13:35:52 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1891 r1897 809 809 // both Theta and ThetaSmeared are in [radians] 810 810 // the edges are in [degrees] 811 const Int_t bin = fBinningT->FindLoEdge(theta * 180 .0/TMath::Pi());812 if (bin == -1)811 const Int_t bin = fBinningT->FindLoEdge(theta * 180/TMath::Pi()); 812 if (bin<0) 813 813 return theta; 814 814 … … 817 817 const Double_t up = fBinningT->GetEdges()[bin+1]; 818 818 819 return (low + gRandom->Rndm(1) * (up-low)) * TMath::Pi()/180; 819 // "up-": Do not allow the upper edge 820 return (up - gRandom->Uniform() * (up-low)) * TMath::Pi()/180; 820 821 } 821 822
Note:
See TracChangeset
for help on using the changeset viewer.