obiman
1
Can anyone help me out with TFFTReal? I seem to be having problems with the Init() function.
The class states the following:
I have been trying to run this as follows without success for the DCT-II option…
myTFFTReal->Init(“M”,+1,1);
error: invalid conversion from ‘int’ to ‘const Int_t*’
error: initializing argument 3 of ‘virtual void TFFTReal::Init(const Option_t*, Int_t, const Int_t*)’
I have also tried:
const Int_t knd = 1;
myTFFTReal->Init(“M”,+1,knd);
Clearly I may be doing something daft, but nevertheless it would be great to have a simple working example showing how these functions are declared.
Any help will be greatly appreciated!
moneta
2
Hi,
you need to pass a pointer to an int and not an int (this is because you can have different types for each dimension).
So in your case do
int kind[0] = 1;
myTFFTReal->Init("M",+1,kind);
Best Regards
Lorenzo