X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FCALO%2FAliHLTCaloFourier.cxx;h=0e5aa0197dab4483717e8553c44c7733a9062b66;hb=380fdeeb9377e76f63b6e3ebfbfab9c443e9da27;hp=82ce3bf4537bfbccfa478daef3b85e49577aeb1d;hpb=4f4b7ba49cd92136f8c935f5c3c7b21ca6b4b86a;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/CALO/AliHLTCaloFourier.cxx b/HLT/CALO/AliHLTCaloFourier.cxx index 82ce3bf4537..0e5aa0197da 100644 --- a/HLT/CALO/AliHLTCaloFourier.cxx +++ b/HLT/CALO/AliHLTCaloFourier.cxx @@ -21,8 +21,12 @@ //#include "AliHLTCaloRcuFFTDataStruct.h" +#include "AliHLTCaloConstants.h" + ClassImp(AliHLTCaloFourier); + + AliHLTCaloFourier::AliHLTCaloFourier() : fFFT_own(0), fFFTInputArray(0), fFFTOutputArray(0), @@ -36,6 +40,8 @@ AliHLTCaloFourier::AliHLTCaloFourier() : fFFT_own(0), } + + AliHLTCaloFourier::AliHLTCaloFourier(const AliHLTCaloFourier&) : fFFT_own(0), fFFTInputArray(0), fFFTOutputArray(0), @@ -49,6 +55,7 @@ AliHLTCaloFourier::AliHLTCaloFourier(const AliHLTCaloFourier&) : fFFT_own(0), } + AliHLTCaloFourier::~AliHLTCaloFourier() { @@ -132,7 +139,7 @@ AliHLTCaloFourier::CheckSignal(const Int_t *data, const int length) cout << "FourierAna::CheckSignal min = "<< tmpMin << " max = " << tmpMax << endl; } - if( (tmpMax >= MAXBINVALUE) || tmpMin < 1 ) + if( (tmpMax >= AliHLTCaloConstants::GetMAXBINVALUE() ) || tmpMin < 1 ) { cout << "ERROR, FourierAna::CheckSignal failed, signal out of range, min= "<< tmpMin << "max = " << tmpMax << endl; return false; @@ -152,7 +159,7 @@ AliHLTCaloFourier::Init() fFFTInputArray = new double[fFixedDataSize]; fFFTOutputArray = new double[fFixedDataSize]; - for(int gain = 0; gain < NGAINS; gain ++) + for(int gain = 0; gain < AliHLTCaloConstants::GetNGAINS(); gain ++) { fFFTOupuStruct.fDataLength = fFixedDataSize; @@ -162,7 +169,7 @@ AliHLTCaloFourier::Init() fFFTOutputArray[k] = 0; } - for(int i=0; i < ALTROMAXSAMPLES ; i++) + for(int i=0; i < AliHLTCaloConstants::GetALTROMAXSAMPLES() ; i++) { fFFTOupuStruct.fGlobalAccumulatedPSD[gain][i] = 0; fFFTOupuStruct.fGlobalLastPSD[gain][i] = 0;