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 #ifndef TDSPFMT_H 00018 #define TDSPFMT_H 00019 00020 00021 #include <TDSPSignal.h> 00022 #include <TDSPFilterMap.h> 00023 00030 class TDSPFMT : public TDSPFilterMap { 00031 00032 private: 00033 00034 // Some more signal-processing typical 00035 // slot-names (implemented as Delegation to the 00036 // original slots) 00037 00038 TString Delegation_Transmit; 00039 TString Delegation_Receive; 00040 00041 TString Delegation_Transmitted; 00042 TString Delegation_Received; 00043 00044 TString& _build_pulse_param_string(TString& start); 00045 00046 protected: 00047 00048 00049 public: 00050 00051 // Constructor / Destructor 00052 // 00053 TDSPFMT(char *name = NULL); 00054 virtual ~TDSPFMT(); 00055 00056 // Set/Get Parameters 00057 // 00058 UInt_t GetNumCarriers() { return GetNumFilters(); }; 00059 void SetNumCarriers(Int_t n) { SetNumFilters(n);}; // Configure the filterbank for the use of "n" carriers 00060 00061 TDSPMatrix* GetTransmitMatrix() { return GetMatrix();}; 00062 TDSPMatrix* GetReceiverMatrix() { return GetInverseMatrix();}; 00063 00064 TDSPVector* GetTransmitPulse(TDSPVector *p=NULL); 00065 TDSPVector* GetReceiverPulse(TDSPVector *p=NULL); 00066 00067 void SetTransmitMatrix(TDSPMatrix *h) { SetMatrix(h); }; 00068 void SetReceiverMatrix(TDSPMatrix *h) { SetInverseMatrix(h); }; 00069 00070 void SetOption(Option_t *opt); 00071 00072 void LoadPulses(char *fname, char *transmitname="TransmitMatrix", char *receivername="ReceiverMatrix"); 00073 void SavePulses(char *fname, char *transmitname="TransmitMatrix", char *receivername="ReceiverMatrix"); 00074 00075 TDSPSignal* Update(TDSPSignal *input); // Calls Synthesize and Emits "Update(TDSPSignal*)" 00076 TDSPSignal* InverseUpdate(TDSPSignal *input); // Calls Analyse and Emits "InverseUpdate(TDSPSignal*)" 00077 00078 ClassDef(TDSPFMT,1) 00079 00080 }; 00081 #endif
1.3.2