#include <TDSPFastQpsk.h>
Inheritance diagram for TDSPFastQpsk:

Definition at line 27 of file TDSPFastQpsk.h.
Public Member Functions | |
| TDSPFastQpsk (char *name=NULL) | |
| ~TDSPFastQpsk () | |
Protected Member Functions | |
| void | GenerateSymbols (Int_t, TComplex *) |
| Int_t | GenerateSymbol (TComplex *c) |
| Int_t | DetectSymbol (TComplex &s) |
|
|
|
|
|
|
|
|
Reimplemented from TDSPSymbolGenerator. Definition at line 58 of file TDSPFastQpsk.h. References TComplex::fIm, TComplex::fRe, and NOT_DETECTED.
00058 {
00059
00060
00061 // rotiere um 45 grad entgegen Uhrzeiger
00062
00063 // 1
00064 // 2 0
00065 // 3
00066
00067 Double_t x = s.fRe-s.fIm;
00068 Double_t y = s.fRe+s.fIm;
00069
00070 // 1 0
00071 // 2 3
00072
00073 if (x<0) {
00074 if (y>0) return 1;
00075 if (y<0) return 2;
00076 }
00077 if (x>0) {
00078 if (y>0) return 0;
00079 if (y<0) return 3;
00080 }
00081 return NOT_DETECTED;
00082 }
|
|
|
Reimplemented from TDSPSymbolGenerator. Definition at line 52 of file TDSPFastQpsk.h. References TDSPSymbolGenerator::fSymbols. Referenced by GenerateSymbols().
00052 {
00053 Int_t r = Int_t(gRandom->Rndm()*4.0);
00054 *c = *(fSymbols+r);
00055 return r;
00056 }
|
|
||||||||||||
|
Reimplemented from TDSPSymbolGenerator. Definition at line 45 of file TDSPFastQpsk.h. References TDSPSymbolGenerator::fISymbols, and GenerateSymbol().
00046 {
00047 Int_t *sym = fISymbols;
00048 for(register Int_t i=num;i;--i)
00049 *(sym++) = GenerateSymbol(c++);
00050 }
|
1.3.2