00001 #ifndef TV1730RawWaveforms_h 00002 #define TV1730RawWaveforms_h 00003 00004 #include <string> 00005 #include "THistogramArrayBase.h" 00006 00007 /// Class for making histogram of raw V1730Dpp waveforms 00008 class TV1730RawWaveform : public THistogramArrayBase { 00009 public: 00010 TV1730RawWaveform(); 00011 virtual ~TV1730RawWaveform(){}; 00012 00013 /// Update the histogram for this canvas. 00014 /// This method works, but is generally not used; instead, TDeapAnaManager handles filling this histogram. 00015 void UpdateHistograms(TDataContainer& dataContainer); 00016 00017 /// Take actions at begin run 00018 void BeginRun(int transition,int run,int time); 00019 00020 /// Take actions at end run 00021 void EndRun(int transition,int run,int time); 00022 00023 int GetNumSamples() { return numSamples; } 00024 void SetNumSamples(int numSamples) { this->numSamples = numSamples; } 00025 int GetNsecsPerSample() { return nanosecsPerSample; } 00026 void SetNanosecsPerSample(int nsecsPerSample) { this->nanosecsPerSample = nsecsPerSample; } 00027 00028 // Reset the histogram; needed before we re-fill each histo. 00029 void Reset(); 00030 00031 private: 00032 00033 int numSamples; 00034 int nanosecsPerSample; 00035 void CreateHistograms(); 00036 00037 00038 }; 00039 00040 #endif 00041 00042