Changeset 14205 for trunk


Ignore:
Timestamp:
06/21/12 18:38:49 (12 years ago)
Author:
tbretz
Message:
Fixed a problem with the random time range in case of a invalid extraction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msignal/MExtractTimeAndCharge.cc

    r11568 r14205  
    280280        // FIXME: Defined Out-Of-Range better so that the extractors
    281281        //        know what to return!
     282        // e.g. timehi=-2 in sline extractor means: leading edge not found not found
    282283        if (deltatimehi>-0.5 && (timehi<-1 || timehi>=rangehi))
    283284        {
    284285            // Flag this as unreliable!
    285             timehi = gRandom->Uniform(rangehi+1)-1;
     286            timehi = gRandom->Uniform(rangehi);
    286287            // deltatimehi=-1; // Set PIXEL to UNRELIABLE?
    287288        }
     
    386387            {
    387388                // Flag this as unreliable!
    388                 timelo = gRandom->Uniform(rangelo+1)-1;
     389                timelo = gRandom->Uniform(rangelo);
    389390                //deltatimelo=-1; // Set PIXEL to UNRELIABLE?
    390391            }
Note: See TracChangeset for help on using the changeset viewer.