reco_wf.hh

Go to the documentation of this file.
00001 
00014 #ifndef RECO_WF_HH
00015 #define RECO_WF_HH
00016 
00017 #include <map>
00018 #include <set>
00019 #include "ana_base.hh"
00020 #include <TH2D.h>
00021 
00028 class reco_wf : public ana_base {
00029 
00030 public:
00031 
00033   reco_wf();
00034   
00036   ~reco_wf(){};
00037 
00039   virtual bool initialize();
00040 
00042   virtual bool analyze(storage_manager* data);
00043 
00045   virtual bool finalize();
00046 
00048   const PMT::ch_waveform_t* get_ch_waveform(UInt_t ch);
00049 
00051   const std::set<UInt_t>* get_ch_set()const {return &_channels;};
00052 
00054   void set_frame_width(PMT::word_t w){_frame_width=w;};
00055 
00057   PMT::word_t get_start_frame() const {return _ref_frame;};
00058 
00060   PMT::word_t get_start_slice() const {return _ref_slice;};
00061 
00063   TH2D* get_histo();
00064 
00065 private:
00066 
00068   void reset();
00069 
00071   void clear_event();
00072 
00074   std::map<UInt_t,PMT::ch_waveform_t> _wf_map; 
00075   std::set<UInt_t> _channels; 
00076   PMT::word_t _frame_width;     
00077 
00078   PMT::word_t _event_id;        
00079   PMT::word_t _ref_slice;       
00080   PMT::word_t _ref_frame;       
00081 
00082   TH2D* _wf_histo;              
00083 
00084 };
00085 
00086 #endif
00087  // end of doxygen group 

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