source: fact/tools/rootmacros/zerosearch.h@ 12262

Last change on this file since 12262 was 12258, checked in by neise, 13 years ago
zerosearch does now return vector<Region>
  • Property svn:executable set to *
File size: 958 bytes
Line 
1// file zerosearch.h
2#ifndef __ZEROSEARCH_H
3#define __ZEROSEARCH_H
4
5#include "Region.h"
6
7vector<Region> *zerosearch(
8 vector<float> &input,
9 int edge = 1, // search for transitions on rising edge=1, -1:falling
10 unsigned int step = 4, // search in steps of step
11 int VerbosityLevel = 1 // 1 means ... just normal warings are output.
12);
13
14size_t ShiftRegionBy(vector<Region> &src,
15 int Shift,
16 int VerbosityLevel=0);
17
18size_t EnlargeRegion(vector<Region> &src,
19 int Left,
20 int Right,
21 int VerbosityLevel=0);
22
23size_t findAbsMaxInRegions(
24 vector<Region> &regions,
25 vector<float> &data,
26 int VerbosityLevel=0);
27
28bool compMaxPosOfRegions (Region a, Region b);
29
30size_t removeEqualMaxima(
31 vector<Region> &regions,
32 int VerbosityLevel=0);
33
34size_t removeReginWithMaximaOnEdge(
35 vector<Region> &regions,
36 unsigned int EdgeWidth=3,
37 int VerbosityLevel=0);
38
39size_t removeMaximaBelow(
40 vector<Region> &regions,
41 float threshold = 2.0,
42 int VerbosityLevel=0);
43
44#endif
Note: See TracBrowser for help on using the repository browser.