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

Last change on this file since 13459 was 13424, checked in by Jens Buss, 13 years ago
added function findTimeOfHalfMaxLeft
  • Property svn:executable set to *
File size: 1.5 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
59size_t findTimeOfHalfMaxLeft(
60 vector<Region> &regions,
61 vector<float> &data,
62 float baseline = -0.5,
63 int beginRisingEdge = 5,
64 int endRisingEdge = 10,
65 int VerbosityLevel = 1);
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.