Changeset 15118
- Timestamp:
- 03/19/13 09:22:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay_filelist.C
r14941 r15118 1170 1170 if (pos > reg->maxPos + 2) 1171 1171 { 1172 // check if the current slice is close to the end of the overlay window 1172 1173 if ( pos+5 >= Right ) 1173 1174 { 1174 1175 break; 1175 1176 } 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 1176 1180 if (gVcorr[pos+1] > average_of_max) 1177 1181 { 1178 1182 break; 1179 1183 } 1184 1185 // check if the next 5 slices have a steep slope 1180 1186 slope_of_follow = (gVcorr[pos+5] - gVcorr[pos+1])/5; 1181 1182 1187 if (slope_of_follow > 1) 1183 1188 {
Note:
See TracChangeset
for help on using the changeset viewer.