fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/akutil/analysePulse.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     analysePulse.h  -  description
00003 
00004     begin                : Fri Aug 25 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef ANALYSEPULSE_H
00011 #define ANALYSEPULSE_H
00012 
00013 #include <akutil/statistics.h>
00014 
00021 class analysePulse {
00022 public: 
00023         analysePulse();
00024         ~analysePulse();
00025 
00026   void of(unsigned short *data, int n, statistics *noise);
00027 
00028   int calcWidth(unsigned short *data, int n, float tresh);
00029   unsigned long calcCharge(unsigned short *data, int n, float tresh,
00030        unsigned short pedestal);
00031 
00032   int width;
00033 
00034   unsigned long charge;
00035 
00036   float threshW;
00037 
00038   float threshC;
00039 
00040   unsigned short pedestal;
00041 
00042 };
00043 
00044 #endif