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

Last change on this file since 12426 was 12391, checked in by neise, 13 years ago
initial commit of flightpulser.C with an additional method in zerosearch.C and an entry in README.txt
  • Property svn:executable set to *
File size: 1.2 KB
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 removeRegionOnFallingEdge(
35 vector<Region> &regions,
36 unsigned int FallingEdgeWidth = 100,
37 int VerbosityLevel=0);
38
39
40size_t removeRegionWithMaxOnEdge(
41 vector<Region> &regions,
42 unsigned int EdgeWidth=3,
43 int VerbosityLevel=0);
44
45size_t removeMaximaBelow(
46 vector<Region> &regions,
47 float threshold = 2.0,
48 int VerbosityLevel=0);
49
50size_t removeMaximaAbove(
51 vector<Region> &regions,
52 float threshold= 14.0,
53 int VerbosityLevel=0);
54
55Region FindAbsMax(
56 vector<Region> &regions,
57 int VerbosityLevel=0);
58
59#endif
Note: See TracBrowser for help on using the repository browser.