Ignore:
Timestamp:
03/19/13 09:22:48 (12 years ago)
Author:
Jens Buss
Message:
add comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/FPulseOverlay_filelist.C

    r14941 r15118  
    11701170                if (pos > reg->maxPos + 2)
    11711171                {
     1172                    // check if the current slice is close to the end of the overlay window
    11721173                    if ( pos+5 >= Right )
    11731174                    {
    11741175                        break;
    11751176                    }
     1177                    // check if the next slice is larger than the pulse maximum
     1178                    // i guess it makes more sense to compare the average amplitude of the slices before
     1179                    //to the following  pulse
    11761180                    if (gVcorr[pos+1] > average_of_max)
    11771181                    {
    11781182                        break;
    11791183                    }
     1184
     1185                    // check if the next 5 slices have a steep slope
    11801186                    slope_of_follow = (gVcorr[pos+5] - gVcorr[pos+1])/5;
    1181 
    11821187                    if (slope_of_follow > 1)
    11831188                    {
Note: See TracChangeset for help on using the changeset viewer.