00001 // $Id: f_find_peaks.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef F_FIND_PEAKS 00015 #define F_FIND_PEAKS 00016 00017 #define TYPE__SHORT 0 00018 #define TYPE__INT 1 00019 #define TYPE__FLOAT 2 00020 #define TYPE__DOUBLE 3 00021 void f_find_peaks( 00022 void *, // pointer to data 00023 int, // data type: use definitions above 00024 int, // first channel (0,...) 00025 int, // number of channels 00026 int, // channels to sum up (bin size in channels) 00027 double, // noise factor to square root 00028 double, // noise minimum (absolut) 00029 double *, // array with noise (original channels) 00030 int, // Maximum number of peaks. Arrays below must have this size. 00031 int *, // returns number of peaks found 00032 int *, // pointer to array of minima 00033 double *, // pointer to array of minima values 00034 int *, // pointer to array of maxima 00035 int *, // pointer to array of width 00036 double *); // pointer to array of integrals 00037 00038 #endif