AverageWaveforms.hh
Go to the documentation of this file.00001
00007 #ifndef AVERAGE_WAVEFORMS_h
00008 #define AVERAGE_WAVEFORMS_h
00009
00010 #include "BaseModule.hh"
00011 #include <map>
00012 #include <string>
00013
00014 #include <fstream>
00015 using namespace std;
00016
00017 class TGraphErrors;
00018
00023 class AverageWaveforms : public BaseModule{
00024 public:
00025 AverageWaveforms();
00026 ~AverageWaveforms();
00027
00028 int Initialize();
00029 int Finalize();
00030 int Process(EventPtr evt);
00031 static const std::string GetDefaultName(){ return "AverageWaveforms";}
00032
00033 bool use_event_list;
00034 string event_list_location;
00035
00036 bool with_s2;
00037 double min_pulse_height;
00038 double max_pulse_height;
00039 double min_fprompt;
00040 double max_fprompt;
00041 bool align_by_peak;
00042 double sum_start_time;
00043 double sum_end_time;
00044 double min_s1_start_time;
00045 double max_s1_start_time;
00046 int bin_size;
00047 double min_s2_start_time;
00048 double max_s2_start_time;
00049 int number_of_base_groups;
00050
00051 int current_event;
00052 int current_run;
00053 ifstream txt;
00054
00055 private:
00056 void Cleanup();
00057 std::map<int,int> _num_event;
00058 std::map<int,TGraphErrors*> _plots;
00059 };
00060
00061 #endif