Changeset 12259 for fact/tools/rootmacros/discriminator.h
- Timestamp:
- 10/25/11 13:52:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/discriminator.h
r12195 r12259 1 // file: discriminator.h 1 2 2 3 3 #ifndef __DISCRIMINATOR_H 4 #define __DISCRIMINATOR_H 4 5 5 typedef struct 6 { 7 int begin; 8 int maxPos; 9 int end; 10 float maxVal; 11 } 12 DiscOut; 6 #include "Region.h" 7 8 #include <vector> 9 10 std::vector<Region> * discriminator( 11 std::vector<float>& input, // vector of floats, the discriminator acts on 12 float thr = 5., // threshold 13 bool clean = true, // choose here, if the discriminator should already discard Regions, which are assumend to sit on the predessesors falling edge 14 int fallingEdge = 100, // number of slices, after the maximum, which should be discarded... 15 bool debug = false 16 ); 17 18 int cleanRegionsOnFallingEdge ( 19 std::vector<Region> &dest, 20 std::vector<Region> &src, 21 int fallingEdgeLen = 100, 22 bool debug = false); 13 23 14 24 15 #endif 16 25 #endif
Note:
See TracChangeset
for help on using the changeset viewer.