Ignore:
Timestamp:
04/03/03 13:35:52 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1891 r1897  
    809809    // both Theta and ThetaSmeared are in [radians]
    810810    // 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)
    813813        return theta;
    814814
     
    817817    const Double_t up  = fBinningT->GetEdges()[bin+1];
    818818
    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;
    820821}
    821822
Note: See TracChangeset for help on using the changeset viewer.