algo_threshold.hh

Go to the documentation of this file.
00001 
00014 #ifndef ALGO_THRESHOLD_HH
00015 #define ALGO_THRESHOLD_HH
00016 
00017 #include "preco_algo_base.hh"
00018 
00019 
00032 class algo_threshold : public preco_algo_base {
00033 
00034 public:
00035 
00037   algo_threshold();
00038 
00040   virtual ~algo_threshold(){};
00041 
00046   virtual DATA_STRUCT::DATA_TYPE storage_type(){return DATA_STRUCT::THRES_WIN_PULSE_COLLECTION;};
00047 
00049   virtual bool reco(const std::vector<UShort_t> *wf);
00050 
00052   virtual void reset();
00053 
00055   void set_adc_threshold(double v) {_adc_thres = v;};
00056 
00061   void set_nsigma(double v) {_nsigma = v;};
00062   
00063 protected:
00064 
00066   double _adc_thres;
00067 
00069   double _nsigma;
00070 
00071 };
00072 
00073 #endif
00074  // end of doxygen group

Generated on Mon Apr 7 15:35:12 2014 for MyProject by  doxygen 1.4.7