**************************************************************************/
#include "AliHLTPHOSRawAnalyzerPeakFinderComponent.h"
-#include "AliHLTPHOSRawAnalyzerPeakFinder.h"
-//#include <cstdlib>
-//#include "AliHLTPHOSCommonDefs.h"
-
+#include "AliHLTCaloRawAnalyzerPeakFinder.h"
AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
//___________________________________________________________________________________________________________
AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponentv3()
{
- fAnalyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
+ fAnalyzerPtr = new AliHLTCaloRawAnalyzerPeakFinder();
- if(LoadPFVector() == kFALSE)
+ if(1)//LoadPFVector() == kFALSE)
{
// cout << "Warning, could not load PF vectors" << endl;
}
Bool_t
AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector()
{
- return LoadPFVector(PFDEFAULTSTARTINDEX, PFDEFAULTNSAMPLES, DEFAULTTAU, DEFAULTFS );
+ return LoadPFVector(fCaloConstants->GetPFDEFAULTSTARTINDEX(), fCaloConstants->GetPFDEFAULTNSAMPLES(),
+ fCaloConstants->GetDEFAULTTAU(), fCaloConstants->GetDEFAULTFS() );
}
Bool_t
AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector(int startIndex, int nSamples, int tau, int fs)
{
- char tmpPFPath[PFMAXPATHLENGTH];
+
+ char tmpPFPath[fCaloConstants->GetPFMAXPATHLENGTH()];
Double_t * tmpAVector = new Double_t[nSamples];
Double_t * tmpTVector = new Double_t[nSamples];
sprintf(tmpPFPath,"%s%s/start%dN%dtau%dfs%d.txt", getenv("ALICE_ROOT"), PFVECTORDIR, startIndex, nSamples, tau, fs);
{
res = fscanf(fp, "%lf", &tmpTVector[i]);
}
- fAnalyzerPtr->SetAVector(tmpAVector, nSamples);
- fAnalyzerPtr->SetTVector(tmpTVector, nSamples);
+ // fAnalyzerPtr->SetAVector(tmpAVector, nSamples);
+ // fAnalyzerPtr->SetTVector(tmpTVector, nSamples);
fclose(fp);
delete [] tmpAVector;
delete [] tmpTVector;