1 /**************************************************************************
2 * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
4 * Author: Per Thomas Hille for the ALICE HLT Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliHLTPHOSRawAnalyzerPeakFinderComponent.h"
17 #include "AliHLTPHOSRawAnalyzerPeakFinder.h"
19 //ClassImp(AliHLTPHOSRawAnalyzerPeakFinderComponent)
20 AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
22 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponent()
24 Double_t tmpAVector[70];
25 Double_t tmpTVector[70];
26 analyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
27 analyzerPtr->SetStartIndex(0);
29 fp = fopen("/home/perthi/cern/aliroot/AliRoot_head/HLT/PHOS/PFVectors/start0N70tau2fs10.txt", "r");
33 for(int i=0; i < 70; i++)
35 fscanf(fp, "%lf", &tmpAVector[i]);
40 for(int i=0; i < 70; i++)
42 fscanf(fp, "%lf", &tmpTVector[i]);
45 analyzerPtr->SetAVector(tmpAVector, 70);
46 analyzerPtr->SetTVector(tmpTVector, 70);
54 cout <<"AliHLTPHOSRawAnalyzerPeakFinderComponent, ERROR: could not open PF vector file" << endl;
60 AliHLTPHOSRawAnalyzerPeakFinderComponent::~AliHLTPHOSRawAnalyzerPeakFinderComponent()
67 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent(const AliHLTPHOSRawAnalyzerPeakFinderComponent & ) : AliHLTPHOSRawAnalyzerComponent()
74 AliHLTPHOSRawAnalyzerPeakFinderComponent::GetComponentID()
76 return "PhosRawPeakFinder";
81 AliHLTPHOSRawAnalyzerPeakFinderComponent::Spawn()
83 return new AliHLTPHOSRawAnalyzerPeakFinderComponent;