00001 00015 #ifndef PULSE_ANALYZER_HH 00016 #define PULSE_ANALYZER_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 00034 #include "ana_base.hh" 00035 00045 class pulse_analyzer : public ana_base{ 00046 00047 public: 00048 00050 pulse_analyzer(); 00051 00053 virtual ~pulse_analyzer(){}; 00054 00056 virtual bool initialize(); 00057 00059 virtual bool analyze(storage_manager* storage); 00060 00062 virtual bool finalize(); 00063 00064 void set_pulse_type(DATA_STRUCT::DATA_TYPE type){_pulse_type=type;}; 00065 00066 private: 00067 00068 PMT::word_t _event_id; 00069 PMT::word_t _ch_frame_id; 00070 PMT::word_t _ch_sample_id; 00071 PMT::word_t _disc_id; 00072 00073 DATA_STRUCT::DATA_TYPE _pulse_type; 00074 00075 TTree *_ch_tree; 00076 00077 int _ch, _nsample; 00078 00079 double _wf_charge, _wf_peak, _wf_ts, _wf_tm, _wf_te, _ped_mean, _ped_rms; 00080 00081 }; 00082 00083 #endif 00084 // end of doxygen group
1.4.7