00001 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef TDSPHARMONICGENERATOR_H 00019 #define TDSPHARMONICGENERATOR_H 00020 00021 #include <TDSPGenerator.h> 00022 #include <TDSPSpectrum.h> 00023 #include <TDSPSignal.h> 00024 #include <TDSPOutput1.h> 00025 00030 class TDSPHarmonicGenerator : public TDSPGenerator, public TDSPOutput1 { 00031 00032 00033 // the spectrum 00034 00035 TDSPSpectrum *Spectrum; 00036 00037 protected: 00038 00039 void Fill(void); 00040 // my Slots 00041 00042 TString Slot_Generate; 00043 00044 public: 00045 00046 00047 TDSPHarmonicGenerator(char *name); 00048 ~TDSPHarmonicGenerator(); 00049 00050 void RegisterSignalsAndSlots() { 00051 00052 // Add the Slots 00053 00054 Slot_Generate = AddSlot("Generate()"); 00055 00056 } 00057 00058 TDSPSpectrum* GetSpectrum() { return Spectrum; }; 00059 00060 void SetSignalLength(Int_t num) { GetSignal()->SetLen(num);}; 00061 00062 void Generate() { 00063 Fill(); 00064 Emit(Signal_NewData,GetSignal()); 00065 }; // *SIGNAL* 00066 00067 // here we have to implement a streamer - later !!! 00068 00069 ClassDef(TDSPHarmonicGenerator,1) 00070 00071 }; 00072 00073 #endif
1.3.2