led_pulse_selector.hh

Go to the documentation of this file.
00001 
00015 #ifndef LED_PULSE_SELECTOR_HH
00016 #define LED_PULSE_SELECTOR_HH
00017 
00018 #include <TTree.h>
00019 #include <TH1D.h>
00020 #include <TCanvas.h>
00021 #include <TLine.h>
00022 #include <set>
00023 #include <algorithm>
00024 #include <map>
00025 #include <vector>
00026 #include "ana_base.hh"
00027 #include <TH1D.h>
00028 #include <TH2D.h>
00029 #include <math.h>
00030 #include <TGraph.h>
00031 #include <TGraphErrors.h>
00032 
00033 #include "pulse_selector_simple.hh"
00034 
00042 class led_pulse_selector : public pulse_selector_simple {
00043 
00044 public:
00045 
00047   led_pulse_selector();
00048 
00050   virtual ~led_pulse_selector(){};
00051 
00053   virtual bool initialize();
00054 
00056   virtual bool analyze(storage_manager* storage);
00057 
00059   virtual bool finalize();
00060 
00062   void clear_event();
00063 
00064   void set_ref_channel(PMT::ch_number_t ch){_ref_ch=ch;};
00065 
00066   void set_frame_size(PMT::word_t frame_size){_frame_size=frame_size;};
00067 
00068   void set_time_cut(PMT::word_t time_cut){_time_cut = time_cut;};
00069 
00070   virtual bool select_pulse(const pulse_info* data);
00071 
00072 private:
00073 
00074   PMT::ch_number_t _ref_ch;
00075 
00076   PMT::word_t _frame_size;
00077 
00078   PMT::word_t _time_cut;
00079   
00080   std::set<PMT::word_t> _ref_time;
00081   
00082 };
00083 
00084 #endif
00085  // end of doxygen group 

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